-
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
SQL Plugin returns double instead of date type for functions NOW() and CURDATE() [BUG] #260
Labels
Comments
ghost
changed the title
JDBC driver returns null for functions NOW() and CURDATE() [BUG]
SQL Plugin returns double instead of date type for functions NOW() and CURDATE() [BUG]
Nov 2, 2021
The new engine has not supported these functions, looks like the functions are executed in old engine. Should add such support in new query engine to address this issue |
chloe-zh
added
new-engine-gap
and removed
bug
Something isn't working
Beta
untriaged
labels
Nov 13, 2021
related issue: #48 |
This issue affects TDVT tests:
|
12 tasks
6 tasks
I think this is already fixed along with the new impl in v2 engine. Tested in OpenSearch playground as below:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Calling NOW() and CURDATE() returns NULL for the JDBC driver while calling NOW() and CURDATE() on the SQL Plugin returns the expected results
To Reproduce
Steps to reproduce the behavior:
curl -XPOST http://localhost:9200/_plugins/_sql -u admin:admin --insecure -H 'Content-Type: application/json' -d '{"query": "SELECT CURDATE() FROM calcs LIMIT 1"}'
for Windows Subsystem for LinuxExpected behavior
The output should be of some date type like date or datetime
Actual behavior
The output is of type double.
Screenshot
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: