Skip to content

Conversation

@romanoff
Copy link
Contributor

Adding support for optional precision for TIMESTAMP_NTZ type in snowflake. Example: TIMESTAMP_NTZ(9)
It's supported in spec: https://docs.snowflake.com/en/sql-reference/data-types-datetime
Specifically

All timestamp variations, as well as the TIMESTAMP alias, support an optional precision parameter for
fractional seconds (for example, TIMESTAMP(3)). Timestamp precision can range from 0 (seconds) 
to 9 (nanoseconds). The default precision is 9.

Example of sql:

SELECT CAST(TO_CHAR(CURRENT_DATE, 'YYYY-MM-DD')||' 01:00:00' AS TIMESTAMP_NTZ(9))

Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @romanoff!

@iffyio iffyio added this pull request to the merge queue Oct 30, 2025
Merged via the queue into apache:main with commit bc6e1d6 Oct 30, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants