diff --git a/sqlglot-integration-tests b/sqlglot-integration-tests index 62db1cbd3b..a879857276 160000 --- a/sqlglot-integration-tests +++ b/sqlglot-integration-tests @@ -1 +1 @@ -Subproject commit 62db1cbd3ba829132a84b40fad5dcc6a9683cc83 +Subproject commit a879857276c9171b32ac193c65856662474af08d diff --git a/sqlglot/generators/duckdb.py b/sqlglot/generators/duckdb.py index 287168f94a..7142908428 100644 --- a/sqlglot/generators/duckdb.py +++ b/sqlglot/generators/duckdb.py @@ -1581,6 +1581,7 @@ class DuckDBGenerator(generator.Generator): f"CAST(STRFTIME({self.sql(e, 'this')}, {self.dialect.DATEINT_FORMAT}) AS INT)" ), exp.Decode: lambda self, e: encode_decode_sql(self, e, "DECODE", replace=False), + exp.HexDecodeString: lambda self, e: self.sql(exp.Decode(this=exp.Unhex(this=e.this))), exp.DiToDate: lambda self, e: ( f"CAST(STRPTIME(CAST({self.sql(e, 'this')} AS TEXT), {self.dialect.DATEINT_FORMAT}) AS DATE)" ),