SNOW-1761247: Support TIME and TIMESTAMP second-precision #2500
Open
Description
What is the current behavior?
Currently, Snowpark's TimeType
and TimestampType
types are converted to Snowflake's time
and timestamp
types with the default 9 decimals (nanosecond) precision. There is no possibility to specify the precision like we can do in Snowflake.
What is the desired behavior?
Support second precision in these types. API would probably look like this TimeType(6)
.
How would this improve snowflake-snowpark-python
?
It would make it easier to work with iceberg tables, since they only support microseconds precision.