You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/02/10 15:08:57 UTC

(datafusion-sqlparser-rs) branch gh-readonly-queue/main/pr-2203-3a42e6527d9072d953dd01e2ba3e3fc91cc0063d created (now 8e36e8ee)

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch gh-readonly-queue/main/pr-2203-3a42e6527d9072d953dd01e2ba3e3fc91cc0063d
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git


      at 8e36e8ee Updated Fuzzer harness to address all dialects (#2203)

This branch includes the following new commits:

     new 8e36e8ee Updated Fuzzer harness to address all dialects (#2203)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org


(datafusion-sqlparser-rs) 01/01: Updated Fuzzer harness to address all dialects (#2203)

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch gh-readonly-queue/main/pr-2203-3a42e6527d9072d953dd01e2ba3e3fc91cc0063d
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git

commit 8e36e8ee85e8d24c3bd6948298a4675e341a1db3
Author: Alex <45...@users.noreply.github.com>
AuthorDate: Tue Feb 10 23:08:33 2026 +0800

    Updated Fuzzer harness to address all dialects (#2203)
---
 fuzz/fuzz_targets/fuzz_parse_sql.rs | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/fuzz/fuzz_targets/fuzz_parse_sql.rs b/fuzz/fuzz_targets/fuzz_parse_sql.rs
index 446b036c..15c198cb 100644
--- a/fuzz/fuzz_targets/fuzz_parse_sql.rs
+++ b/fuzz/fuzz_targets/fuzz_parse_sql.rs
@@ -16,14 +16,35 @@
 // under the License.
 
 use honggfuzz::fuzz;
-use sqlparser::dialect::GenericDialect;
+use sqlparser::dialect::{
+    AnsiDialect, BigQueryDialect, ClickHouseDialect, DatabricksDialect, DuckDbDialect,
+    GenericDialect, HiveDialect, MsSqlDialect, MySqlDialect, OracleDialect, PostgreSqlDialect,
+    RedshiftSqlDialect, SQLiteDialect, SnowflakeDialect,
+};
 use sqlparser::parser::Parser;
 
 fn main() {
+    let dialects: Vec<Box<dyn sqlparser::dialect::Dialect>> = vec![
+        Box::new(AnsiDialect::default()),
+        Box::new(BigQueryDialect::default()),
+        Box::new(ClickHouseDialect::default()),
+        Box::new(DatabricksDialect::default()),
+        Box::new(DuckDbDialect::default()),
+        Box::new(GenericDialect::default()),
+        Box::new(HiveDialect::default()),
+        Box::new(MsSqlDialect::default()),
+        Box::new(MySqlDialect::default()),
+        Box::new(OracleDialect::default()),
+        Box::new(PostgreSqlDialect::default()),
+        Box::new(RedshiftSqlDialect::default()),
+        Box::new(SQLiteDialect::default()),
+        Box::new(SnowflakeDialect::default()),
+    ];
     loop {
         fuzz!(|data: String| {
-            let dialect = GenericDialect {};
-            let _ = Parser::parse_sql(&dialect, &data);
+            for dialect in &dialects {
+                let _ = Parser::parse_sql(dialect.as_ref(), &data);
+            }
         });
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org