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: Casting a timestamp as a number uses secs instead of millis #37655

Closed
matriv opened this issue Jan 21, 2019 · 1 comment
Closed

SQL: Casting a timestamp as a number uses secs instead of millis #37655

matriv opened this issue Jan 21, 2019 · 1 comment
Assignees
Labels

Comments

@matriv
Copy link
Contributor

matriv commented Jan 21, 2019

SELECT CAST(hire_date AS LONG) FROM test_emp WHERE emp_no = 10001;

gives:

CAST(hire_date AS LONG)
-----------------------
520128000              
@matriv matriv added >bug :Analytics/SQL SQL querying labels Jan 21, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@matriv matriv self-assigned this Jan 21, 2019
matriv added a commit to matriv/elasticsearch that referenced this issue Jan 25, 2019
Previously casting from a DATE[TIME] type to a numeric (DOUBLE, LONG,
INT, etc. used seconds instead of the epoch millis.

Fixes: elastic#37655
matriv added a commit that referenced this issue Jan 25, 2019
Previously casting from a DATE[TIME] type to a numeric (DOUBLE, LONG,
INT, etc. used seconds instead of the epoch millis.

Fixes: #37655
matriv added a commit that referenced this issue Jan 25, 2019
Previously casting from a DATE[TIME] type to a numeric (DOUBLE, LONG,
INT, etc. used seconds instead of the epoch millis.

Fixes: #37655
matriv added a commit that referenced this issue Jan 25, 2019
Previously casting from a DATE[TIME] type to a numeric (DOUBLE, LONG,
INT, etc. used seconds instead of the epoch millis.

Fixes: #37655
matriv added a commit that referenced this issue Jan 25, 2019
Previously casting from a DATE[TIME] type to a numeric (DOUBLE, LONG,
INT, etc. used seconds instead of the epoch millis.

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

No branches or pull requests

2 participants