Skip to content

Commit ae415a3

Browse files
authored
fix ApproxDistinct snowflake transpilation (#3334)
1 parent 9de1494 commit ae415a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlglot/dialects/snowflake.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ class Generator(generator.Generator):
749749

750750
TRANSFORMS = {
751751
**generator.Generator.TRANSFORMS,
752+
exp.ApproxDistinct: rename_func("APPROX_COUNT_DISTINCT"),
752753
exp.ArgMax: rename_func("MAX_BY"),
753754
exp.ArgMin: rename_func("MIN_BY"),
754755
exp.Array: inline_array_sql,

0 commit comments

Comments
 (0)