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

Julian Hyde commented on CALCITE-1339:
--------------------------------------

[~yingyu], Your problem concerns deeply nested relational expressions, not 
scalar expressions. Can you open a separate jira case? Mark it related to this 
one.

> Allow deeply nested scalar expressions
> --------------------------------------
>
>                 Key: CALCITE-1339
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1339
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Priority: Major
>
> Allow deeply nested scalar expressions. Currently an expression '0 * deptno + 
> 1 * deptno + ...' causes a {{StackOverflowError}} at about 600 (depth 1,200).
> I suspect we need to change some recursive functions (or visitors) into 
> dynamic programming. The attached workspace 
> https://github.com/julianhyde/calcite/tree/1339-deep-expressions adds 
> {{SqlToRelConverterTest.testLarge}} (based on {{SqlValidatorTest.testLarge}}) 
> and flattens some recursive calls but is not yet complete.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to