ibis-project/ibis-substrait

bug: count_distinct is handled incorrectly

gforsyth opened this issue · 2 comments

What happened?

There is no count_distinct scalar or aggregate extension function defined.
Instead, we should call count on an aggregate that specifies unique inputs.

What version of ibis-substrait are you using?

main

What substrait consumer(s) are you using, if any?

No response

Relevant log output

No response

This was most likely fixed in #1034. I was unable to add it to parity tests though, because acero substrait consumer doesn't seem to know the distinction between count and count_distinct.

I'm good closing this out as fixed -- we can revisit if that turns out to be incorrect.