Skip to content

SNOW-2380579: TimestampType(s) should support precision argument #3823

@ctc-andot

Description

@ctc-andot

What is the current behavior?

TimestampType only take timezone argument, not the precision argument that is available on the underlying snowflake type. https://docs.snowflake.com/en/sql-reference/data-types-datetime

What is the desired behavior?

They should take both, e.g. TimestampType(precision=6) to get a microsecond rather than nanosecond precision time.

How would this improve snowflake-snowpark-python?

Better mapping onto the full set of snowflake types. Additionally, with iceberg v2 only supporting microsecond precision, it is easy to accidentally lose precision when writing to iceberg table. This helps make that more explicit.

References, Other Background

Metadata

Metadata

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