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

Generate right SQL for FLOOR&SUBSTRING functions in SparkSqlDialect

    XMLWordPrintableJSON

Details

    Description

      The FLOOR and SUBSTRING functions are currently broken when generating query for Spark SQL[1].

      FLOOR ->  DATE_TRUNC
      SUBSTRING('Hello World' FROM 5 FOR 1) -> SUBSTRING('Hello World', 5, 1)
      

      [1] https://spark.apache.org/docs/latest/api/sql/index.html

      Attachments

        Issue Links

          Activity

            People

              danny0405 Danny Chen
              donnyzone Feng Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m