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 2020/11/09 01:18:00 UTC

[jira] [Assigned] (CALCITE-4383) In RelBuilder, optimize Union(all, Values, Values) to Values

     [ https://issues.apache.org/jira/browse/CALCITE-4383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde reassigned CALCITE-4383:
------------------------------------

    Assignee: Julian Hyde

> In RelBuilder, optimize Union(all, Values, Values) to Values
> ------------------------------------------------------------
>
>                 Key: CALCITE-4383
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4383
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>
> In {{RelBuilder}}, optimize {{Union(all, Values, Values)}} to {{Values}}. Similarly optimize {{Project(Values)}} to {{Values}} if the projected expressions are all literals.
> This pattern occurs frequently, if someone writes {{SELECT 1, 'a' UNION ALL SELECT 2, 'b'}} for instance.
> Enable this rewrite with a new property {{boolean RelBuilder.Config.simplifyValues()}}, default true.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)