Skip to content

Snowflake: TIMESTAMP precision regression #1861

Open
@psukys

Description

@psukys

For Snowflake time formats support precision parameter (from Snowflake documentation):

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.

Note: this comes from using Python wrapper sqloxide

Query that fails:

create table hello(test timestamp_ntz(6))

Error:

sql parser error: Expected: ',' or ')' after column definition, found: ( at Line: 1, Column: 38

removing precision from timestamp_ntz passes through

Unfortunately I cannot directly link which version (not visible throughintroduced this regression, but it seems to be recent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions