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

SQL: incorrect interval reading with more than 3 fractional second digits #37423

Closed
bpintea opened this issue Jan 14, 2019 · 2 comments
Closed

Comments

@bpintea
Copy link
Contributor

bpintea commented Jan 14, 2019

The interval parsing yields incorrect results when fractional second part is on more than 3 digits:

sql> select interval -'22 22:21:20.19182' day to second;
INTERVAL '22 22:21:20.19182' DAY TO SECOND
------------------------------------------
PT-550H-21M-39.182S

instead of expected result: PT-550H-21M-20.191S.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@astefan
Copy link
Contributor

astefan commented Feb 5, 2019

master (7.0.0): cea81b1
6.x (6.7.0): d0fb8dc
6.6 (6.6.1): ffd3aa1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants