xinyiZzz commented on issue #6327:
URL:
https://github.com/apache/incubator-doris/issues/6327#issuecomment-892751618
When the child of the Union on the right side of the join is not a constant,
it is ScanNode:
```
SELECT a.x
FROM (SELECT '01' x) a
INNER JOIN
(SELECT C_CUSTKEY from CUSTOMER
UNION all
SELECT C_CUSTKEY from CUSTOMER) b;
```
The `Preconditions.checkState` in the FE will report an error
```
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.planner.DataPartition.<init>(DataPartition.java:62)
~[palo-fe.jar:3.4.0]
at
org.apache.doris.planner.DistributedPlanner.createSetOperationNodeFragment(DistributedPlanner.java:815)
~[palo-fe.jar:3.4.0]
at
org.apache.doris.planner.DistributedPlanner.createPlanFragments(DistributedPlanner.java:213)
~[palo-fe.jar:3.4.0]
at
org.apache.doris.planner.DistributedPlanner.createPlanFragments(DistributedPlanner.java:196)
~[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:214)
~[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:630)
~[palo-fe.jar:3.4.0]
at org.apache.doris.qe.StmtExecutor.analyze(StmtExecutor.java:514)
~[palo-fe.jar:3.4.0]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:302)
~[palo-fe.jar:3.4.0]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:275)
~[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:545)
~[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_252]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[?:1.8.0_252]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]