-
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
[BUG] Fix CAST ( ... AS DATETIME)
#853
Comments
@Yury-Fridlyand I can send a small PR for this if you're working on other issues. |
@dai-chen, you're welcome! |
@Yury-Fridlyand @MaxKsyunz Thanks for preview the draft PR! However when I tried to add comparison test, I found out and recall that there is actually no |
@dai-chen, just to recall that this works in legacy engine. |
How can one reproduce the bug?
Exception comes from legacy engine. V2 error:
sql/sql/src/main/antlr/OpenSearchSQLParser.g4
Lines 342 to 353 in fa8d5bd
I tried to fix this
Unfortunately, this fix damages few ITs (test report):
For example, error log from one of these tests:
The test itself:
sql/integ-test/src/test/java/org/opensearch/sql/legacy/SQLFunctionsIT.java
Line 332 in 7bb52a8
So,
CAST( ... AS DATETIME)
partially works even now, but proposed fix might be a breaking change.What is the expected behavior?
What is your host/environment?
2.x
@ fa8d5bdThe text was updated successfully, but these errors were encountered: