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:40:20 UTC
[jira] [Updated] (CALCITE-1339) Allow deeply nested scalar
expressions
[ https://issues.apache.org/jira/browse/CALCITE-1339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde updated CALCITE-1339:
---------------------------------
Description:
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.
was:
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.
> 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 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
(v6.3.4#6332)