Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3219

Allow finer control over which expressions get expanded in SqlToRelConverter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • None
    • None
    • None

    Description

      Currently one can control if sub-query expansion happens via SqlToRelConverter.Config.isExpand(). This flag is global to the query and causes expansion of all supported expression types. For some systems it is required that one can dynamically narrow the set of expressions that should be expanded.

      In order to allow this, I would propose a new setter with a default implementation that returns the above flag.

      // a BiPredicate in order to pass both the original query and the expression in question for expansion
      java.util.function.BiPredicate<SqlNode, SqlNode> SqlToRelConverter.Config.getExpandPredicate()
      

      If this is OK, I would provide a PR with the relevant changes.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              psockali Pressenna
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m