Weijun-H commented on code in PR #10260:
URL: https://github.com/apache/datafusion/pull/10260#discussion_r1581828836


##########
datafusion/core/src/dataframe/mod.rs:
##########
@@ -534,7 +534,7 @@ impl DataFrame {
                 vec![],
                 original_schema_fields
                     .clone()
-                    .map(|f| count(is_null(col(f.name()))).alias(f.name()))
+                    .map(|f| count_null(col(f.name())).alias(f.name()))

Review Comment:
   When using `count`, it sums all `non-null` Expr while `is_null` converts 
`Expr` to a boolean expression, which is why it doesn't work.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to