Skip to content
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

ADDDATE for the JDBC driver unexpectedly returns null [BUG] #252

Closed
ghost opened this issue Oct 28, 2021 · 0 comments
Closed

ADDDATE for the JDBC driver unexpectedly returns null [BUG] #252

ghost opened this issue Oct 28, 2021 · 0 comments
Labels
bug Something isn't working tdvt Tableau test framework

Comments

@ghost
Copy link

ghost commented Oct 28, 2021

Describe the bug
ADDDATE function for the JDBC driver returns null for all values while the SQL Plugin returns non-null values

To Reproduce
Steps to reproduce the behavior:

  1. Load the calcs table on to the server
  2. Run a query with ADDDATE to the SQL Plugin for example curl -XPOST http://localhost:9200/_plugins/_sql -u admin:admin --insecure -H 'Content-Type: application/json' -d '{"query": "SELECT adddate(date(calcs.datetime0), INTERVAL 1 day) FROM calcs GROUP BY 1"}' for Windows Subsystem for Linux
  3. Run the same query using a tool like DBVisualizer to test the query on the JDBC driver.

Expected behavior
The expected behaviour should be values that match the output of the SQL Plugin. For example, the output for the query above is
image

Actual behavior
The output from the JDBC driver are all null.
image

Host/Environment:

  • OS: Windows 10
  • Version 21H1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tdvt Tableau test framework
Projects
None yet
Development

No branches or pull requests

2 participants