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

Add DATE_ADD function (enabled in Spark library)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.37.0
    • 1.38.0
    • core

    Description

      https://spark.apache.org/docs/3.5.2/sql-ref-functions-builtin.html#date-and-timestamp-functions

      > SELECT date_add('2016-07-30', 1);
       2016-07-31
      

      Currently, date_add supports the addition of year, month, day and other types, but in Spark, only day date type is supported.

      date_add(start_date, num_days)	Returns the date that is `num_days` after `start_date`.
      

      The start_date type is the same as the case start_date type in https://issues.apache.org/jira/browse/CALCITE-6396
      The num_days type is the day type of date

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: