-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
SQL: support date_nanos
data type
#38562
Comments
Pinging @elastic/es-search |
Once this is introduced the CURRENT_TIMESTAMP(x)/CURRENT_TIME(x) x > 3 should be also fixed and this comment should be removed: https://github.com/elastic/elasticsearch/pull/40669/files#diff-b91ca24147aa7c0d4371fa129d3e51bdR190 Also, currently the |
Use an internal new DataType DATETIME_NANOS which is not exposed and therefore cannot be used for CASTing. DATETIME is used instead and the precision of both DATETIME and TIME has been promoted from 3 to 9, providing transparency to all datetime functionality regardless of millis or nano precision. Moreover, CURRENT_TIMESTAMP/CURRENT_TIME can now return precision up to 6 fractional digits of a second with the use of Clock. Closes: elastic#38562
Use an internal new DataType DATETIME_NANOS which is not exposed and therefore cannot be used for CASTing. DATETIME is used instead and the precision of both DATETIME and TIME has been promoted from 3 to 9, providing transparency to all datetime functionality regardless of millis or nano precision. Moreover, CURRENT_TIMESTAMP/CURRENT_TIME can now return precision up to 6 fractional digits of a second with the use of Clock. Closes: elastic#38562
Use an internal new DataType DATETIME_NANOS which is not exposed and therefore cannot be used for CASTing. DATETIME is used instead and the precision of both DATETIME and TIME has been promoted from 3 to 9, providing transparency to all datetime functionality regardless of millis or nanos precision. Moreover, CURRENT_TIMESTAMP/CURRENT_TIME can now return precision up to 6 fractional digits of a second with the use of Clock. Closes: #38562 Co-authored-by: Bogdan Pintea <bogdan.pintea@elastic.co>
Use an internal new DataType DATETIME_NANOS which is not exposed and therefore cannot be used for CASTing. DATETIME is used instead and the precision of both DATETIME and TIME has been promoted from 3 to 9, providing transparency to all datetime functionality regardless of millis or nanos precision. Moreover, CURRENT_TIMESTAMP/CURRENT_TIME can now return precision up to 6 fractional digits of a second with the use of Clock. Closes: elastic#38562 Co-authored-by: Bogdan Pintea <bogdan.pintea@elastic.co> (cherry picked from commit bbf3cbf)
* QL: Implement support for date_nanos ES type. (#67666) Use an internal new DataType DATETIME_NANOS which is not exposed and therefore cannot be used for CASTing. DATETIME is used instead and the precision of both DATETIME and TIME has been promoted from 3 to 9, providing transparency to all datetime functionality regardless of millis or nanos precision. Moreover, CURRENT_TIMESTAMP/CURRENT_TIME can now return precision up to 6 fractional digits of a second with the use of Clock. Closes: #38562 Co-authored-by: Bogdan Pintea <bogdan.pintea@elastic.co> (cherry picked from commit bbf3cbf)
Dates with nanoseconds precision are now supported in ES and a new data type has been introduced (
date_nanos
).SQL needs to support this type - likely, not by adding a different type (at least for the user) but by extending the precision of a particular date.
The text was updated successfully, but these errors were encountered: