Closed lpoulain closed 1 year ago
one question - why can this new behaviour not be exposed for cursors without experimental_python_types=true
?
@lpoulain Can you please update behavior to match the JDBC driver (rounding instead of truncation)? Other than that (and possibly allowing using this with experimental_python_types disabled) this seems good to me.
@hashhar done.
@lpoulain Please try using fixup commits when addressing review comments otherwise it's impossible to see what changed between the force push and before that.
@lpoulain : can you rebase your changes on latest master?
Closing PR as too many things have changed since. Will file a new PR
Add variable precision time and timestamp support for the experimental_python_types flag by passing the
X-Trino-Client-Capabilities: PARAMETRIC_DATETIME
header in the query request, just like the Trino JDBC and ODBC drivers do.Updates the tests/integration/test_types_integration.py accordingly.