Skip to content

Commit 32e3f8a

Browse files
fivetran-ashashankargeorgesittas
authored andcommitted
Add transpilation support for ENCRYPT, and test cases for ENCRYPT
1 parent 1e83bca commit 32e3f8a

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
@@ -2259,6 +2259,10 @@ def compress_sql(self, expression: exp.Compress) -> str:
22592259
self.unsupported("DuckDB does not support the COMPRESS() function")
22602260
return self.function_fallback_sql(expression)
22612261

2262+
def encrypt_sql(self, expression: exp.Encrypt) -> str:
2263+
self.unsupported("ENCRYPT is not supported in DuckDB")
2264+
return self.function_fallback_sql(expression)
2265+
22622266
def nthvalue_sql(self, expression: exp.NthValue) -> str:
22632267
from_first = expression.args.get("from_first", True)
22642268
if not from_first:

0 commit comments

Comments
 (0)