-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Support date and time functions #722
Labels
Comments
This was referenced Aug 12, 2022
6 tasks
This was referenced Sep 22, 2022
This was referenced Sep 28, 2022
This was referenced Nov 18, 2022
This was referenced Dec 1, 2022
6 tasks
6 tasks
This was referenced Dec 15, 2022
6 tasks
This was referenced Dec 19, 2022
Merged
This was referenced Jan 25, 2023
This was referenced Jan 27, 2023
This was referenced Feb 6, 2023
This was referenced Feb 15, 2023
This was referenced Feb 23, 2023
Date_format may need to be fixed to deprecate legacy. There are legacy tests which fail in the new engine if legacy is disabled (possibly due to the lack of support for a 3rd argument for a timezone). These include the following in
|
This was referenced Feb 27, 2023
This was referenced Mar 9, 2023
This was referenced Mar 17, 2023
Closed as completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copied from opendistro-for-elasticsearch/sql#709.
Implementation should match MySQL standard: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html
maketime
andmakedate
datetime functions #755maketime
andmakedate
datetime functions #755ADDTIME
andSUBTIME
. (#132) #1194DATE_ADD
/ADDDATE
andDATE_SUB
/SUBDATE
functions. (#122) #1182CONVERT_TZ
andDATETIME
functions to SQL and PPL #848now
,sysdate
,localtime
and similar functions #754now
,sysdate
,localtime
and similar functions #754now
,sysdate
,localtime
and similar functions #754now
,sysdate
,localtime
and similar functions #754now
,sysdate
,localtime
and similar functions #754TIMEDIFF
andDATEDIFF
functions. (#131) #1195CONVERT_TZ
andDATETIME
functions to SQL and PPL #848DATE_ADD
/ADDDATE
andDATE_SUB
/SUBDATE
functions. (#122) #1182DATE_ADD
/ADDDATE
andDATE_SUB
/SUBDATE
functions. (#122) #1182EXTRACT
Function To OpenSearch SQL Plugin #1421FROM_UNIXTIME
andUNIX_TIMESTAMP
#835GET_FORMAT
Function To OpenSearch SQL Plugin #1299GET_FORMAT
Function #1343last_day
Function To OpenSearch SQL Plugin #1344now
,sysdate
,localtime
and similar functions #754now
,sysdate
,localtime
and similar functions #754now
,sysdate
,localtime
and similar functions #754PERIOD_ADD
andPERIOD_DIFF
. #933PERIOD_ADD
andPERIOD_DIFF
. #933sec_to_time
Function To OpenSearch SQL #1378STR_TO_DATE
Function To The SQL Plugin #1420DATE_ADD
/ADDDATE
andDATE_SUB
/SUBDATE
functions. (#122) #1182ADDTIME
andSUBTIME
. (#132) #1194now
,sysdate
,localtime
and similar functions #754TIMEDIFF
andDATEDIFF
functions. (#131) #1195TIMESTAMP
function implementation and signatures. #1254TIMESTAMPADD
Function To OpenSearch SQL Plugin #1451Timestampdiff
Function To OpenSearch SQL #1467TIME_FORMAT()
Function To SQL Plugin #1301TO_SECONDS
Function To The SQL Plugin #1419FROM_UNIXTIME
andUNIX_TIMESTAMP
#835WEEKDAY
Function to SQL Plugin #1418YEARWEEK
Function To OpenSearch SQL #1417>=
/>
/=
/!=
/<
/<=
(comparison operators for datetime types) - Extend comparison methods to accept different datetime types. (#129) #1196min
/max
/avg
aggregations on datetime types - Datetime aggregation fixes. #1061DATE_FORMAT
Function Missing Support For 3rd Optional Field For Timezone #1436Further improvements:
UNIT
#861PERIOD
#862CAST ( ... AS DATETIME)
#853 (Fix type cast to datetime #1328)TIME
? #852yyyy-MM-dd HH:mm:ss.SSSSSS
#126The text was updated successfully, but these errors were encountered: