diff --git a/sqlglot-integration-tests b/sqlglot-integration-tests index 3dd541d7ff..a71fa23791 160000 --- a/sqlglot-integration-tests +++ b/sqlglot-integration-tests @@ -1 +1 @@ -Subproject commit 3dd541d7ff97c1851218a47c48af1e258cecd7a9 +Subproject commit a71fa2379128e68091408e82aa322189fabf71d4 diff --git a/sqlglot/generators/duckdb.py b/sqlglot/generators/duckdb.py index 5639b53736..adbafaa9af 100644 --- a/sqlglot/generators/duckdb.py +++ b/sqlglot/generators/duckdb.py @@ -2263,6 +2263,11 @@ def encrypt_sql(self, expression: exp.Encrypt) -> str: self.unsupported("ENCRYPT is not supported in DuckDB") return self.function_fallback_sql(expression) + def decrypt_sql(self, expression: exp.Decrypt) -> str: + func_name = "TRY_DECRYPT" if expression.args.get("safe") else "DECRYPT" + self.unsupported(f"{func_name} is not supported in DuckDB") + return self.function_fallback_sql(expression) + def nthvalue_sql(self, expression: exp.NthValue) -> str: from_first = expression.args.get("from_first", True) if not from_first: