-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Update documentation to mention PARAMETRIC_DATETIME client capabilities header #5068
Comments
When we added this feature, we had to preserve backward compatibility for old clients that did not support arbitrary precision. In order to get the new behaviors, client have to declare they support the |
ah I see, thanks for the clarification. do you think it makes sense to add this advice to either https://prestosql.io/docs/current/functions/datetime.html or https://prestosql.io/docs/current/language/timestamp.html?highlight=timestamp? or will this be a non-issue in 341 now that the PR breaking backcompat with legacy semantics is landed? |
to close the loop I can confirm that the full results are returned when |
No, that should be mentioned in the Clients or Developer section. It's something users shouldn't be concerned with, as it's an implementation detail of the client itself. We don't have any place for that information right now, so we'll have to create something. cc @mosabua |
@alec-heif curious, do you use a client library or interact with REST API directly? |
@findepi I use the pyhive client library |
@alec-heif i created dropbox/PyHive#363 as a follow up to this discussion. |
The following query
SELECT cast(TIMESTAMP '2020-09-01 12:00:00.123456789' as TIMESTAMP(9))
gives the following result when run against the
<coordinator_host>/v1/statement
endpoint:"2020-09-01 12:00:00.123"
on prestosql 340
This is in contrast to the documentation here which states that the result should be
"2020-09-01 12:00:00.123456789"
FWIW the presto CLI handles this query correctly:
and even handles the non-parameterized version correctly as well:
The text was updated successfully, but these errors were encountered: