Skip to content

Commit ceb14fa

Browse files
feat(duckdb): Add transpilation unsupported for SOUNDEX function (#7517)
1 parent 18231ca commit ceb14fa

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

sqlglot-integration-tests

sqlglot/generators/duckdb.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2480,6 +2480,10 @@ def show_sql(self, expression: exp.Show) -> str:
24802480
from_ = f" FROM {from_}" if from_ else ""
24812481
return f"SHOW {expression.name}{from_}"
24822482

2483+
def soundex_sql(self, expression: exp.Soundex) -> str:
2484+
self.unsupported("SOUNDEX is not supported in DuckDB")
2485+
return self.func("SOUNDEX", expression.this)
2486+
24832487
def sortarray_sql(self, expression: exp.SortArray) -> str:
24842488
arr = expression.this
24852489
asc = expression.args.get("asc")

0 commit comments

Comments
 (0)