diff options
Diffstat (limited to 'sqlglot/dialects/tableau.py')
-rw-r--r-- | sqlglot/dialects/tableau.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlglot/dialects/tableau.py b/sqlglot/dialects/tableau.py index e8ff249..b736918 100644 --- a/sqlglot/dialects/tableau.py +++ b/sqlglot/dialects/tableau.py @@ -34,8 +34,8 @@ class Tableau(Dialect): def count_sql(self, expression: exp.Count) -> str: this = expression.this if isinstance(this, exp.Distinct): - return f"COUNTD({self.expressions(this, flat=True)})" - return f"COUNT({self.sql(expression, 'this')})" + return self.func("COUNTD", *this.expressions) + return self.func("COUNT", this) class Parser(parser.Parser): FUNCTIONS = { |