[
https://issues.apache.org/jira/browse/CALCITE-4758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17409161#comment-17409161
]
Julian Hyde commented on CALCITE-4758:
--------------------------------------
I don't believe that {code} select * from "scott".emp
where sal > some (4000, 2000){code} is valid SQL. SOME is either an aggregate
function (that takes one boolean argument) or a prefix operator that takes a
sub-query.
I think that {code} select * from "scott".emp
where sal > some (values 4000, 2000){code} is a valid query. Does it give the
results you expect?
> When sub-query is SqlNodeList, Calcite returns wrong result
> ------------------------------------------------------------
>
> Key: CALCITE-4758
> URL: https://issues.apache.org/jira/browse/CALCITE-4758
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.27.0
> Reporter: duan xiong
> Assignee: duan xiong
> Priority: Major
>
> When inSubQueryThreshold is less than the SqlNodeList Size, The SqlNodeList
> can't convert to OR condition. Then the result is wrong sometimes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)