Skip to content

SNOW-1761247: Support TIME and TIMESTAMP second-precision #2500

Open
@tvdboom

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.

image

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.

Metadata

Assignees

Labels

featureNew feature or requeststatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions