initial distinct support

This commit is contained in:
2022-09-20 22:17:56 +08:00
parent ff63be720c
commit ed58c13dc9
4 changed files with 92 additions and 7 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ def count_behavior(op:OperatorBase, c_code, x, distinct = False):
if not c_code:
return f'{op.sqlname}({"distinct " if distinct else ""}{x})'
elif distinct:
return 'count_'+base62uuid()
return '({x}).distinct_size()'
else:
return '{count()}'