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: TIME and DATE types metadata attributes corrections #41086
Labels
Comments
Pinging @elastic/es-search |
Could I work on this? Thanks. |
@ithompson4 Feel free to work on it. The class to start with is: https://github.com/elastic/elasticsearch/blob/master/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/type/DataTypes.java |
Fixed by #55316 |
matriv
added a commit
that referenced
this issue
Apr 16, 2020
matriv
added a commit
that referenced
this issue
Apr 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The values returned by
SYS TYPES
for the time data types needs adjusting for the following attributes:MINIMUM_SCALE
,MAXIMUM_SCALE
andSQL_DATETIME_SUB
as follows:DATE
andTIME
must have the values swapped forMINIMUM_SCALE
andMAXIMUM_SCALE
attributes (sinceDATE
has no seconds component);SQL_DATETIME_SUB
must have these subcode values:DATE
:1
;TIME
:2
.Current values (for convenience):
The text was updated successfully, but these errors were encountered: