[
https://issues.apache.org/jira/browse/CALCITE-6847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17929535#comment-17929535
]
xiong duan commented on CALCITE-6847:
-------------------------------------
Fixed in
[9a52add|https://github.com/apache/calcite/commit/9a52add23eef1c1e175e293e92160d479a7dde97].
Thanks for the contribution [~xuzifu666]. Thanks for the review
[~suibianwanwan33] .
> ClickHouse doesn't support TRUE/FALSE keywords in its Join predicate
> --------------------------------------------------------------------
>
> Key: CALCITE-6847
> URL: https://issues.apache.org/jira/browse/CALCITE-6847
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.38.0
> Reporter: Yu Xu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.39.0
>
>
> Currently ClickHouseSQL Dialect not support join on boolean type in
> Calcite,but most system support with the syntax, so need to support it.
> syntax like:
> select A.id, B.name, B.address from A left join B on true;
> *query as on true:*
> default> select a.id
> from
> `default`.example_table2 as a
> left join `default`.example_table2 as b on true;
> [2025-02-19 23:36:04] Code: 403, e.displayText() = DB::Exception: Cannot get
> JOIN keys from JOIN ON section: true (version 21.8.7.22 (official build))
>
> *query as on 1=1:*
> default> select a.id
> from
> `default`.example_table1 as a
> left join `default`.example_table2 as b on 1 =1
> [2025-02-20 00:04:20] 18 rows retrieved starting from 1 in 63 ms (execution:
> 40 ms, fetching: 23 ms)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)