You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/20 15:32:19 UTC

[GitHub] [incubator-doris] morningman opened a new issue, #9141: [Bug] query thrown NPE when query a restore table

morningman opened a new issue, #9141:
URL: https://github.com/apache/incubator-doris/issues/9141

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   trunk
   
   ### What's Wrong?
   
   Can not query table:
   
   ```
   2022-04-20 21:23:54,153 WARN (doris-mysql-nio-pool-173|18520) [StmtExecutor.analyze():536] Analyze failed because
   java.lang.IllegalStateException: null
           at com.google.common.base.Preconditions.checkState(Preconditions.java:492) ~[spark-dpp-1.0.0.jar:1.0.0]
           at org.apache.doris.catalog.ColocateTableIndex.getGroup(ColocateTableIndex.java:332) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.planner.DistributedPlanner.canBucketShuffleJoin(DistributedPlanner.java:626) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.planner.DistributedPlanner.canBucketShuffleJoin(DistributedPlanner.java:600) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.planner.DistributedPlanner.createHashJoinFragment(DistributedPlanner.java:333) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.planner.DistributedPlanner.createPlanFragments(DistributedPlanner.java:205) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.planner.DistributedPlanner.createPlanFragments(DistributedPlanner.java:104) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.planner.Planner.createPlanFragments(Planner.java:220) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.planner.Planner.plan(Planner.java:88) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.analyzeAndGenerateQueryPlan(StmtExecutor.java:640) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.analyze(StmtExecutor.java:524) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:315) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:288) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:217) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.ConnectProcessor.dispatch(ConnectProcessor.java:355) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:556) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.mysql.nio.ReadListener.lambda$handleEvent$0(ReadListener.java:50) ~[palo-fe.jar:3.4.0]
   ```
   
   Can not modify table's colocate_with property:
   ```
   2022-04-20 21:48:18,608 WARN (doris-mysql-nio-pool-179|18822) [StmtExecutor.handleDdlStmt():1442] DDL statement(/* ApplicationName=DataGrip 2020.2.3 */ ALTER TABLE ads_fin.dim_org SET ("colocate_with" = "")) process failed.
   java.lang.NullPointerException: null
           at org.apache.doris.catalog.Catalog.modifyTableColocate(Catalog.java:5394) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.alter.SchemaChangeHandler.process(SchemaChangeHandler.java:1644) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.alter.Alter.processAlterOlapTable(Alter.java:150) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.alter.Alter.processAlterTable(Alter.java:362) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.catalog.Catalog.alterTable(Catalog.java:5202) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.DdlExecutor.execute(DdlExecutor.java:139) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.handleDdlStmt(StmtExecutor.java:1432) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:385) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:288) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:217) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.ConnectProcessor.dispatch(ConnectProcessor.java:355) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:556) ~[palo-fe.jar:3.4.0]
           at org.apache.doris.mysql.nio.ReadListener.lambda$handleEvent$0(ReadListener.java:50) ~[palo-fe.jar:3.4.0]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_271]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_271]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_271]
   ```
   
   ### What You Expected?
   
   Works well
   
   ### How to Reproduce?
   
   This is because the table is from a Restore job. So it contains the `colocate_with` property.
   And the Backup job does not save the colocation group info.
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] morningman closed issue #9141: [Bug] query thrown NPE when query a restore table

Posted by GitBox <gi...@apache.org>.
morningman closed issue #9141: [Bug] query thrown NPE when query a restore table
URL: https://github.com/apache/incubator-doris/issues/9141


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org