romanoff opened a new pull request, #2080:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2080

   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:
   ```sql
   SELECT CAST(TO_CHAR(CURRENT_DATE, 'YYYY-MM-DD')||' 01:00:00' AS 
TIMESTAMP_NTZ(9))
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to