fix: stabilize ingest wiki references

This commit is contained in:
Andrey Avtomonov 2026-05-13 13:18:50 +02:00
parent 53c9a1eefa
commit 7e7795859b
29 changed files with 502 additions and 111 deletions

View file

@ -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