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

Implement BigQuery functions for DATE, TIME, TIMESTAMP, DATETIME

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Implement missing BigQuery functions for DATE, TIME, TIMESTAMP, DATETIME.

      Functions include:

      • CURRENT_DATE, CURRENT_DATETIME, CURRENT_TIME with timezone;
      • EXTRACT with time unit values WEEK(weekday), DATE, TIME;
      • various DATE, TIME, TIMESTAMP, DATETIME constructor functions;
      • DATE_ADD, DATETIME_ADD, TIME_ADD, TIMESTAMP_ADD;
      • DATE_SUB, DATETIME_SUB, TIME_SUB, TIMESTAMP_SUB;
      • DATE_DIFF, DATETIME_DIFF, TIME_DIFF, TIMESTAMP_DIFF;
      • DATE_TRUNC, DATETIME_TRUNC, TIME_TRUNC, TIMESTAMP_TRUNC;
      • LAST_DAY;
      • FORMAT_DATE, FORMAT_DATETIME, FORMAT_TIME, FORMAT_TIMESTAMP;
      • PARSE_DATE, PARSE_DATETIME, PARSE_TIME, PARSE_TIMESTAMP.

      The following functions are already implemented: CURRENT_DATETME, DATE(string), DATE_FROM_UNIX_DATE, TIMESTAMP_MICROS, TIMESTAMP_MILLIS, TIMESTAMP_SECONDS, UNIX_MICROS, UNIX_MILLIS, UNIX_SECONDS, UNIX_DATE.

      Attachments

        Issue Links

          Activity

            People

              wnoble Will Noble
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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