You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Xiening Dai (Jira)" <ji...@apache.org> on 2020/05/05 21:55:00 UTC

[jira] [Created] (CALCITE-3972) Allow RelBuilder to create RelNode with convention and use it for trait convert

Xiening Dai created CALCITE-3972:
------------------------------------

             Summary: Allow RelBuilder to create RelNode with convention and use it for trait convert
                 Key: CALCITE-3972
                 URL: https://issues.apache.org/jira/browse/CALCITE-3972
             Project: Calcite
          Issue Type: Bug
            Reporter: Xiening Dai


1. Provide Convention.transformRelBuilder() to transform an existing RelBuilder into one with specific convention.
2. RelBuilder provides withRelFactories() method to allow caller swap the underlying RelFactories and create a new builder. 
3. Use the new interface in RelCollationTraitDef for converting into RelCollation traits

We can avoid ~1/3 of total rule firings in a N way join case with this change.



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