Dandandan commented on code in PR #5408:
URL: https://github.com/apache/arrow-datafusion/pull/5408#discussion_r1119828308
##########
datafusion/physical-expr/src/aggregate/count_distinct.rs:
##########
@@ -41,7 +41,7 @@ pub struct DistinctCount {
/// The DataType for the final count
data_type: DataType,
/// The DataType used to hold the state for each input
- state_data_types: Vec<DataType>,
+ state_data_types: DataType,
/// The input arguments
exprs: Vec<Arc<dyn PhysicalExpr>>,
Review Comment:
Yeah, as well.
If you like to do some more refactoring, you could remove `data_type:
DataType` from the `DistinctCount` struct as well and just keep a `int64` in
the `DistinctCountAccumulator` instead of using a scalar value.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]