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

SQLServer does not support 1 and 0 as boolean values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.3
    • 4.0.0
    • SQL

    Description

      Sometimes in Spark, when a column that is generated as CASE WHEN structure is used in comparison filter, output of optimized plan will be: CASE WHEN expression THEN (1 or 0)... which is not supported in SQLServer. Exception is thrown by SQLServer that a "non-boolean expression is given when boolean was expected". For now, we should not support CASE WHEN pushdown in SQLServer. 

      Attachments

        Issue Links

          Activity

            People

              stefanbuk-db Stefan Bukorovic
              stefanbuk-db Stefan Bukorovic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: