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

Introducing more ReduceExpressionRules

    XMLWordPrintableJSON

Details

    Description

      It is useful to have rules reducing Exchange/Sort/SortExchange keys, e.g.,

      SELECT key,value FROM (SELECT 1 AS key, value FROM src) r DISTRIBUTE BY key;

      can be reduced to

      SELECT 1 AS key, value FROM src; # Since singleton requirement may already required by SELECT.

      SELECT key,value FROM (SELECT 1 AS key, value FROM src) r ORDER BY key;

      can be reduced to

      SELECT 1 AS key, value FROM src; # Since ordering on constant is useless.

      Attachments

        Issue Links

          Activity

            People

              Chunwei Lei Chunwei Lei
              Chunwei Lei Chunwei Lei
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 2h 20m
                  2h 20m