You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default precision for timestamp was chosen as 3 and it was decided to make it 6 in future as specified by SQL standard as specified by comment here: #1284 (comment). Code link:
publicstaticfinalintDEFAULT_PRECISION = 3; // TODO: should be 6 per SQL spec
.
The text was updated successfully, but these errors were encountered:
amoghmargoor
changed the title
Change the default precision of timestamp to micros (6)
Change the default precision of timestamp to micros (6) as specified by SQL standard.
Jan 8, 2024
We will need to break this work down. The support for higher precision varies across data sources, and for table formats also depends on the file format, metastore and other factors.
As such we might have to figure out how to enable this on a fine-grained basis. Maybe per catalog with a catalog configuration property. And if we do a global configuration .. what do we do - fail queries?
Essentially this requires more thought and work before we can ship this, but to be clear. We do want to proceed.
The default precision for timestamp was chosen as 3 and it was decided to make it 6 in future as specified by SQL standard as specified by comment here: #1284 (comment). Code link:
trino/core/trino-spi/src/main/java/io/trino/spi/type/TimestampType.java
Line 36 in 75854f4
The text was updated successfully, but these errors were encountered: