Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24994

Add UnwrapCastInBinaryComparison optimizer to simplify literal types

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: SQL
    • Labels:
      None

      Description

      For this statement: select * from table1 where a = 100;
      the data type of `a` is `smallint` , because the defaut data type of 100 is `int` ,so the data type of  'a' is converted to `int`.
      In this case, it does not support push down to parquet.

      In our business, for our SQL statements, and we generally do not convert 100 to `smallint`, We hope that it can support push down to parquet for this situation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                csun Chao Sun
                Reporter:
                10110346 liuxian
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: