StarRocks / starrocks

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
https://starrocks.io
Apache License 2.0
9.14k stars 1.82k forks source link

show create starrocks external table fail #43496

Closed blanklin030 closed 1 month ago

blanklin030 commented 7 months ago

Steps to reproduce the behavior (Required)

Expected behavior (Required)

get show create table resource

Real behavior (Required)

2024-03-26 16:42:07,858 WARN (starrocks-mysql-nio-pool-1|174) [StmtExecutor.execute():549] execute Exception, sql show create table target_dup_sr_external
java.lang.NullPointerException: null
        at com.starrocks.catalog.RangePartitionInfo.toSql(RangePartitionInfo.java:503) ~[starrocks-fe.jar:?]
        at com.starrocks.server.GlobalStateMgr.getDdlStmt(GlobalStateMgr.java:2246) ~[starrocks-fe.jar:?]
        at com.starrocks.server.GlobalStateMgr.getDdlStmt(GlobalStateMgr.java:2139) ~[starrocks-fe.jar:?]
        at com.starrocks.qe.ShowExecutor.showCreateInternalCatalogTable(ShowExecutor.java:852) ~[starrocks-fe.jar:?]
        at com.starrocks.qe.ShowExecutor.handleShowCreateTable(ShowExecutor.java:742) ~[starrocks-fe.jar:?]
        at com.starrocks.qe.ShowExecutor.execute(ShowExecutor.java:223) ~[starrocks-fe.jar:?]
        at com.starrocks.qe.StmtExecutor.handleShow(StmtExecutor.java:1118) ~[starrocks-fe.jar:?]
        at com.starrocks.qe.StmtExecutor.execute(StmtExecutor.java:507) ~[starrocks-fe.jar:?]
        at com.starrocks.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:327) ~[starrocks-fe.jar:?]
        at com.starrocks.qe.ConnectProcessor.dispatch(ConnectProcessor.java:444) ~[starrocks-fe.jar:?]
        at com.starrocks.qe.ConnectProcessor.processOnce(ConnectProcessor.java:702) ~[starrocks-fe.jar:?]
        at com.starrocks.mysql.nio.ReadListener.lambda$handleEvent$0(ReadListener.java:55) ~[starrocks-fe.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_144]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_144]
        at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_144]

StarRocks version (Required)

github-actions[bot] commented 1 month ago

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!