You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Dandandan (via GitHub)" <gi...@apache.org> on 2023/03/10 14:07:40 UTC

[GitHub] [arrow-datafusion] Dandandan commented on issue #5547: Improve the performance of COUNT DISTINCT queries for high cardinality groups

Dandandan commented on issue #5547:
URL: https://github.com/apache/arrow-datafusion/issues/5547#issuecomment-1463855313

   Another option which I suggested earlier would be similar to dictionary array builder (https://docs.rs/arrow-array/34.0.0/src/arrow_array/builder/primitive_dictionary_builder.rs.html#82) - without maintaining the actual values.
   
   This would probably be a bit faster than (though compared to `HashSet<ScalarValue>` both probably are far more efficient) than using the row format (as we don't need to do the conversion plus hashing on primitive values can be a bit faster and specialized). For `COUNT DISTINCT` we only need to support single columns. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org