-
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] JDBC Driver doesn't return TIMESTAMP fractional seconds #924
Comments
Test data: |
The problem is here. This is the definition of The correct solution should use the formatter specified in the mapping for the field or whatever is set as the default formatter in OpenSearch[*]. Here are the docs for date field formatters. [*] I thought I read somewhere it's a setting, but I can't find it. Default formatters used by OpenSearch are here. |
|
I believe this was actually a red herring - it appears to have invoked the v1 SQLEngine which doesn't have timestamp, and thus couldn't return the precision. It's now working correctly after some other changes. |
What is the bug?
Timestamps with fractional seconds have the fractions stripped through the JDBC driver.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Fractional seconds match the inserted values
What is your host/environment?
The text was updated successfully, but these errors were encountered: