Dandandan commented on a change in pull request #1063:
URL: https://github.com/apache/arrow-datafusion/pull/1063#discussion_r750457702
##########
File path: datafusion/src/physical_optimizer/aggregate_statistics.rs
##########
@@ -250,38 +289,41 @@ mod tests {
}
/// Checks that the count optimization was applied and we still get the
right result
- async fn assert_count_optim_success(plan: HashAggregateExec) -> Result<()>
{
+ async fn assert_count_optim_success(
+ plan: HashAggregateExec,
+ nulls: bool,
+ ) -> Result<()> {
let conf = ExecutionConfig::new();
let optimized = AggregateStatistics::new().optimize(Arc::new(plan),
&conf)?;
+ let (col, count) = match nulls {
+ false => (Field::new("COUNT(Uint8(1))", DataType::UInt64, false),
3),
Review comment:
```suggestion
false => (Field::new("COUNT(UInt8(1))", DataType::UInt64,
false), 3),
```
--
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]