[
https://issues.apache.org/jira/browse/CALCITE-5100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528783#comment-17528783
]
Benchao Li commented on CALCITE-5100:
-------------------------------------
[~rrrrrr111] , I cannot reproduce your case in {{{}RelToSqlConverterTest{}}},
how did you use Calcite to meet this problem?
FYI, my reproduce test case:
[https://github.com/libenchao/calcite/commit/77637377cf182efa57252b963b2b1decd6abeaae]
> Incorrect syntax in sub-query, unsupported LISTAGG
> --------------------------------------------------
>
> Key: CALCITE-5100
> URL: https://issues.apache.org/jira/browse/CALCITE-5100
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.30.0
> Reporter: Roman Churganov
> Priority: Blocker
>
> Execute query like:
> {code:sql}
> select C11, LISTAGG( distinct C12, ', ' )
> from FOO
> group by C11
> {code}
> In case of JDBC driver doesn't support LISTAGG function (Postresql), JDBC
> adapter creates subquery:
> {code:sql}
> SELECT "C11", "C12", ', ' AS "$f2"
> FROM "FOO"
> GROUP BY "C11", "C12", ', '
> {code}
> which cannot be executed on Postresql and gives error :
> {noformat}
> [42601] ERROR: non-integer constant in GROUP BY
> {noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)