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

Spark's ifnull function has only one parameter and the return value is Boolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 1.36.0
    • 1.37.0
    • core
    • None

    Description

      Spark's ifnull function has only one parameter and the return value is Boolean

      https://spark.apache.org/docs/2.3.0/api/sql/index.html#isnull

       
      But calcite's ifnull has two parameters and returns expr

      | b s | IFNULL(value1, value2)                       | Equivalent to `NVL(value1, value2)`

       
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            caicancai Caican Cai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: