Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Support date and time functions for new engine #709

Open
5 of 60 tasks
chloe-zh opened this issue Aug 25, 2020 · 0 comments
Open
5 of 60 tasks

Support date and time functions for new engine #709

chloe-zh opened this issue Aug 25, 2020 · 0 comments
Labels
BI integration Issues for integration with BI tools PPL SQL

Comments

@chloe-zh
Copy link
Member

chloe-zh commented Aug 25, 2020

The date and time functions we are planning to support can be referring to MySQL Reference Manual. For those with implicit definitions or argument/return types, refer to BigQuery reference manual for DATE, DATETIME, TIME, and TIMESTAMP functions. For cases about null and missing values as the arguments, typically returns missing value if there is missing value in argument, else returns null if there is null value in argument, refer to AsterixDB for more details.

Work for each function includes:

Example pull request: #713

Except the functions we have already implemented in our code, pending work includes: (click to check if the function is finished)

Prioritized:

  • date
  • time
  • timestamp
  • microsecond
  • second
  • minute
  • hour
  • day
  • week
  • month
  • quarter
  • year
  • adddate
  • date_add
  • date_format
  • date_sub
  • dayname
  • dayofweek
  • dayofmonth
  • dayofyear
  • from_days
  • monthname
  • subdate
  • time_to_sec
  • to_days

  • addtime
  • convert_tz
  • curdate
  • current_date
  • current_time
  • current_timestamp
  • curtime
  • datediff
  • extract
  • from_unixtime
  • get_format
  • last_day
  • localtime
  • localtimestamp
  • makedate
  • maketime
  • now
  • period_add
  • period_diff
  • sec_to_time
  • str_to_date
  • subtime
  • sysdate
  • time_format
  • timediff
  • timestampadd
  • timestampdiff
  • to_seconds
  • unix_timestamp
  • utc_date
  • utc_time
  • utc_timestamp
  • weekday
  • weekofyear
  • yearweek
@chloe-zh chloe-zh changed the title [draft] Support date and time functions for new engine Support date and time functions for new engine Aug 25, 2020
@chloe-zh chloe-zh added BI integration Issues for integration with BI tools PPL SQL labels Aug 25, 2020
@chloe-zh chloe-zh pinned this issue Sep 8, 2020
@chloe-zh chloe-zh unpinned this issue Oct 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
BI integration Issues for integration with BI tools PPL SQL
Projects
None yet
Development

No branches or pull requests

1 participant