Skip to content

Commit 397a613

Browse files
Added support for star
1 parent b1b37c7 commit 397a613

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sqlglot/dialects/duckdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2880,9 +2880,9 @@ def minhash_sql(self, expression: exp.Minhash) -> str:
28802880
k = expression.this
28812881
exprs = expression.expressions
28822882

2883-
if len(exprs) != 1:
2883+
if len(exprs) != 1 or isinstance(exprs[0], exp.Star):
28842884
self.unsupported(
2885-
"MINHASH with multiple expressions requires manual query restructuring"
2885+
"MINHASH with multiple expressions or * requires manual query restructuring"
28862886
)
28872887
return self.func("MINHASH", k, *exprs)
28882888

0 commit comments

Comments
 (0)