[11051 [HY000j: errCode = 2, detallMessage = (172,120.180,12)[CANCELLEDICANCELLEDjExpected EQ 1 to be returned biexpression (SCALARSUBQUERY) SubqueryExpr ( Queryplan=Logicallimit ( limit=1, offset=0, phase=ORlGIN ), Correlatedslots=l. typeCoercionExpr=nul #35934
Unanswered
jiangxiaoqiang
asked this question in
Q&A
Replies: 1 comment 1 reply
-
which version of your Doris? i test this in version 2.1.3 , and didn't reproduce your issues. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Apache Doris 2.x to do a sql query, the sql look like this:
when the subquery result is null, the sql will shows error:
Am I missing something? I have already tried to add IFNULL function to make it return default value. what should I do to fixed this issue?
I have build the Apache Doris 2.0.3 and run SQL like this:
shows error:
`
SQL Error [1105] [HY000]: errCode = 2, detailMessage = (127.0.0.1)[CANCELLED][CANCELLED]Expected EQ 1 to be returned by expression (SCALARSUBQUERY) SubqueryExpr ( QueryPlan=LogicalLimit ( limit=1, offset=0, phase=ORIGIN ), CorrelatedSlots=[],
`
this is the table DML:
BTW, keep the table's row to 0, do not put data into table. The expect result is null, not throw error. This SQL works fine in MySQL.
Beta Was this translation helpful? Give feedback.
All reactions