Skip to content

Commit 4ac6389

Browse files
feat(snowflake): mark ENCRYPT_RAW as unsupported in DuckDB (#7485)
- Add encryptraw_sql method to DuckDB generator - Mark ENCRYPT_RAW as unsupported with appropriate warning - Add test case validating UnsupportedError is raised Resolves RD-1069384
1 parent 224e64d commit 4ac6389

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
@@ -2273,6 +2273,10 @@ def decryptraw_sql(self, expression: exp.DecryptRaw) -> str:
22732273
self.unsupported(f"{func_name} is not supported in DuckDB")
22742274
return self.function_fallback_sql(expression)
22752275

2276+
def encryptraw_sql(self, expression: exp.EncryptRaw) -> str:
2277+
self.unsupported("ENCRYPT_RAW is not supported in DuckDB")
2278+
return self.function_fallback_sql(expression)
2279+
22762280
def nthvalue_sql(self, expression: exp.NthValue) -> str:
22772281
from_first = expression.args.get("from_first", True)
22782282
if not from_first:

0 commit comments

Comments
 (0)