viirya opened a new issue, #267:
URL: https://github.com/apache/arrow-datafusion-comet/issues/267

   ### Describe the bug
   
   A few Spark tests with distinct count failed while working on #250: 
https://github.com/apache/arrow-datafusion-comet/actions/runs/8681807652/job/23805034669?pr=250
   
   ```
   [info] TwoLevelAggregateHashMapSuite:
   [info] - multiple column distinct count *** FAILED *** (530 milliseconds)
   [info]   Results do not match for query:
   ...
   [info]   == Results ==
   [info]   !== Correct Answer - 1 ==   == Spark Answer - 1 ==
   [info]   !struct<>                   struct<count(key1, key2, key3):bigint>
   [info]   ![3]                        [4] (QueryTest.scala:243)
   ```
   
   Spark distinct count aggregation doesn't count null inputs. I.e.,
   
   ```scala
   override lazy val updateExpressions = {
     ..
     Seq(
       /* count = */ If(nullableChildren.map(IsNull).reduce(Or), count, count + 
1L)
     )
   }
   ```
   
   But seems DataFusion `count` aggregation function behaves differently.
   
   ### Steps to reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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]

Reply via email to