EmmyMiao87 opened a new issue #6017:
URL: https://github.com/apache/incubator-doris/issues/6017


   **Describe the bug**
   When  'disable_colocate_join'= true, the group by query will thrown 
'NullPointerException' using pymysql.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1.  set disable_colocate_plan=true;
   2. first query by python
   ```
   select k1, 1 from unique_table  where k1 in ("752643143190597632") group by 
k1
   ```
   3.  ```pymysql.err.ProgrammingError: (1064, 'errCode = 2, detailMessage = 
Unexpected exception: null')```
   4. fe log
   ```
   2021-06-11 11:16:05,363 WARN (doris-mysql-nio-pool-9|4275) 
[StmtExecutor.analyze():539] Analyze failed because
   java.lang.NullPointerException: null
           at 
org.apache.doris.planner.DistributedPlanner.canColocateAgg(DistributedPlanner.java:941)
 ~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.planner.DistributedPlanner.createAggregationFragment(DistributedPlanner.java:924)
 ~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.planner.DistributedPlanner.createPlanFragments(DistributedPlanner.java:216)
 ~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.planner.DistributedPlanner.createPlanFragments(DistributedPlanner.java:103)
 ~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.planner.Planner.createPlanFragments(Planner.java:216) 
~[palo-fe.jar:3.4.0]
           at org.apache.doris.planner.Planner.plan(Planner.java:84) 
~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.qe.StmtExecutor.analyzeAndGenerateQueryPlan(StmtExecutor.java:642)
 ~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.analyze(StmtExecutor.java:527) 
~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:314) 
~[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:206) 
~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.qe.ConnectProcessor.dispatch(ConnectProcessor.java:344) 
~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:546) 
~[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_161]
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_161]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
   ```
   
   **Expected behavior**
   Result  correct.
   
   **Desktop (please complete the following information):**
   1. python + pymysql
   2. Doris 0.14.12
   
   
   


-- 
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.

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



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

Reply via email to