XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      PostgreSQL return NULL for the NULL field from the date_part() function:

      maxim=# select date_part(null, date'2019-09-20');
       date_part 
      -----------
                
      (1 row)
      

      but Spark fails with the error:

      spark-sql> select date_part(null, date'2019-09-20');
      Error in query: null; line 1 pos 7
      

      Attachments

        Issue Links

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: