yoavcloud commented on code in PR #1580:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/1580#discussion_r1875017893


##########
tests/sqlparser_snowflake.rs:
##########
@@ -2952,3 +2950,33 @@ fn test_sf_double_dot_notation() {
 
 #[test]
 fn test_parse_double_dot_notation_wrong_position() {}
+
+#[test]
+fn test_table_sample() {
+    snowflake_and_generic()
+        .verified_stmt("SELECT * FROM testtable AS t TABLESAMPLE BERNOULLI 
(10)");
+
+    // In Snowflake we translate implicit table sample method to bernoulli
+    snowflake().one_statement_parses_to(
+        "SELECT * FROM testtable SAMPLE (10)",
+        "SELECT * FROM testtable TABLESAMPLE BERNOULLI (10)",

Review Comment:
   Not sure if I understand the question, but if you mean whether the variants 
I added as interchangeable are really interchangeable in the dialect, as far as 
I understand yes. If not, please elaborate?



-- 
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