[ 
https://issues.apache.org/jira/browse/CALCITE-6825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939363#comment-17939363
 ] 

xiong duan commented on CALCITE-6825:
-------------------------------------

Fixed in 
[f0ce9ea|https://github.com/apache/calcite/commit/f0ce9ea8987fe7df1a41a5223d6180c6dfeea620].
 Thanks for the review [~suibianwanwan33] and [~mbudiu]. Thanks for the 
contribution [~wangdiao] .

> Add support for ALL, SOME, ANY in RelToSqlConverter
> ---------------------------------------------------
>
>                 Key: CALCITE-6825
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6825
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: suibianwanwan
>            Assignee: wangdiao
>            Priority: Critical
>              Labels: pull-request-available
>
> Add test in RelToSqlConverterTest
> {code:java}
> @Test void testSome() {
>   final String sql = "SELECT 1, \"gross_weight\" < SOME(SELECT 
> \"gross_weight\" "
>       + "FROM \"foodmart\".\"product\") AS \"t\" "
>       + "FROM \"foodmart\".\"product\"";
>   final String expected = "";
>   sql(sql).ok(expected);
> } {code}
> throw AssertionError:
> {code:java}
> java.lang.AssertionError
>     at org.apache.calcite.sql.SqlUtil.unparseBinarySyntax(SqlUtil.java:442)
>     at org.apache.calcite.sql.SqlSyntax$4.unparse(SqlSyntax.java:78)
>     at org.apache.calcite.sql.SqlOperator.unparse(SqlOperator.java:414)
>     at org.apache.calcite.sql.SqlDialect.unparseCall(SqlDialect.java:465)
>     at org.apache.calcite.sql.SqlCall.unparse(SqlCall.java:133)
>     at org.apache.calcite.sql.SqlAsOperator.unparse(SqlAsOperator.java:81)
>     at org.apache.calcite.sql.SqlDialect.unparseCall(SqlDialect.java:465)
>     at org.apache.calcite.sql.SqlCall.unparse(SqlCall.java:133) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to