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

UnwrapCastInBinaryComparison fail when in.list contain CheckOverflow expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      UnwrapCastInBinaryComparison fail with the following case
       

      CREATE TABLE tbl (d decimal(33, 27)) USING PARQUET 
      SELECT d FROM tbl WHERE d NOT IN (d + 1)

       
      Here in.list can be a CheckOverflow expression:

       cast(d#240 as decimal(34,27)) IN (CheckOverflow((promote_precision(cast(d#240 as decimal(34,27))) + 1.000000000000000000000000000), DecimalType(34,27), true))

      {{}}

      Attachments

        Issue Links

          Activity

            People

              fchen Fu Chen
              fchen Fu Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: