Skip to content

Apache DataFusion SQL Query Engine

fix: Enable WASM compilation by making sqlparser's recursive-protection optional (#16418)

Jon Mease87218a1e656f
diff --git a/Cargo.toml b/Cargo.toml
index 93d64cb6b6..f2cd6f72c7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -167,7 +167,7 @@ recursive = "0.1.1"
regex = "1.8"
rstest = "0.25.0"
serde_json = "1"
-sqlparser = { version = "0.55.0", features = ["visitor"] }
+sqlparser = { version = "0.55.0", default-features = false, features = ["std", "visitor"] }
tempfile = "3"
tokio = { version = "1.45", features = ["macros", "rt", "sync"] }
url = "2.5.4"
diff --git a/datafusion/core/Cargo.toml b/datafusion/core/Cargo.toml
index f3aa7b1e7c..6d4c18df3d 100644
--- a/datafusion/core/Cargo.toml
+++ b/datafusion/core/Cargo.toml
@@ -78,6 +78,7 @@ recursive_protection = [
"datafusion-optimizer/recursive_protection",
"datafusion-physical-optimizer/recursive_protection",
"datafusion-sql/recursive_protection",
+ "sqlparser/recursive-protection",
]
serde = [
"dep:serde",