You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2016/08/02 05:07:20 UTC

[jira] [Created] (CALCITE-1339) Allow deeply nested scalar expressions

Julian Hyde created CALCITE-1339:
------------------------------------

             Summary: 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
            Assignee: Julian Hyde


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 adds SqlToRelConverterTest.testLarge (based on SqlValidatorTest.testLarge) and flattens some recursive calls.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)