Details

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

    Description

      PostgreSQL supports subtraction dates and timestamps:

      maxim=# select date'2020-01-01' - timestamp'2019-10-06 10:11:12.345678';
              ?column?         
      -------------------------
       86 days 13:48:47.654322
      (1 row)
      
      maxim=# select timestamp'2019-10-06 10:11:12.345678' - date'2020-01-01';
               ?column?          
      ---------------------------
       -86 days -13:48:47.654322
      (1 row)
      

      Need to provide the same feature in Spark SQL.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: