[
https://issues.apache.org/jira/browse/CALCITE-5845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yu Xu resolved CALCITE-5845.
----------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/81ec38a19198b2e410d3fee443512f0c9142c8f1]
Thank you reported this Jira [~shenlang]
Thank you for the review [~mbudiu]
> Select a very large predicate throw threw 'java.lang.StackOverflowError'
> exception in SqlNode to RelNode phase
> --------------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-5845
> URL: https://issues.apache.org/jira/browse/CALCITE-5845
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.34.0
> Reporter: LakeShen
> Assignee: Yu Xu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.43.0
>
> Attachments: image-2023-07-13-16-10-19-643.png,
> image-2023-07-13-16-17-37-600.png
>
>
> When I run an SQL and it selects a very large predicate that has one thousand
> 1 = 1 predicate, all of them connected AND, the sql like this :
> {code:java}
> select 1 = 1 and 1 = 1 and 1 = 1 and 1 = 1 ......(one thousand 1 = 1){code}
> At the SqlNode to RelNode phase,Calcite throw StackOverflowError exception:
> !image-2023-07-13-16-10-19-643.png|width=949,height=186!
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)