mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-13 08:15:14 +02:00
fix: stabilize ingest wiki references
This commit is contained in:
parent
53c9a1eefa
commit
7e7795859b
29 changed files with 502 additions and 111 deletions
|
|
@ -687,6 +687,12 @@ class SqlGenerator:
|
|||
if isinstance(node, exp.AggFunc):
|
||||
if isinstance(node, exp.Count):
|
||||
count_arg = node.this
|
||||
if isinstance(count_arg, exp.Star):
|
||||
node.set(
|
||||
"this",
|
||||
_make_case(exp.Literal.number(1)),
|
||||
)
|
||||
return node
|
||||
if (
|
||||
isinstance(count_arg, exp.Distinct)
|
||||
and count_arg.expressions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue