You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Jungtaek Lim (JIRA)" <ji...@apache.org> on 2016/10/13 23:01:20 UTC

[jira] [Created] (CALCITE-1438) RelOptUtils.toString() throws StackOverflowError when RelSubset and input makes cycle

Jungtaek Lim created CALCITE-1438:
-------------------------------------

             Summary: RelOptUtils.toString() throws StackOverflowError when RelSubset and input makes cycle
                 Key: CALCITE-1438
                 URL: https://issues.apache.org/jira/browse/CALCITE-1438
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Jungtaek Lim
            Assignee: Julian Hyde
            Priority: Critical


I found that one of rels in Relsub has parent Relsub as 'input' (Relsub and Project). Fortunately it was not selected to 'best', but Relsub print out first occurence of rel which match the trait, and unfortunately it's first one.

Query is really simple, INSERT INTO BAR SELECT ID, NAME, ADDR FROM FOO WHERE ID > 3. I didn't see this when I directly uses Calcite logical.



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