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

Add UnwrapCastInBinaryComparison optimizer to simplify literal types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: