chenkovsky commented on code in PR #1971:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/1971#discussion_r2229741103


##########
tests/sqlparser_bigquery.rs:
##########
@@ -2566,3 +2566,101 @@ fn test_struct_trailing_and_nested_bracket() {
         )
     );
 }
+
+#[test]
+fn test_datetime_granularity() {
+    let stmt = bigquery().verified_stmt(concat!(
+        "SELECT ",
+        "DATE_TRUNC(CURRENT_DATE, DAY), ",
+        "DATE_TRUNC(CURRENT_DATE, WEEK(MONDAY)) ",
+        "FROM my_table",
+    ));

Review Comment:
   thanks. if it's out of scope, i will close this pr. it can also be solved 
with a postprocessor.



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to