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

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #6667: fix: correct wrong test and ignore it.

alamb commented on code in PR #6667:
URL: https://github.com/apache/arrow-datafusion/pull/6667#discussion_r1230109489


##########
datafusion/core/tests/dataframe.rs:
##########
@@ -245,7 +248,7 @@ async fn test_count_wildcard_on_where_scalar_subquery() -> Result<()> {
                     .await?
                     .filter(out_ref_col(DataType::UInt32, "t1.a").eq(col("t2.a")))?
                     .aggregate(vec![], vec![count(lit(COUNT_STAR_EXPANSION))])?
-                    .select(vec![count(lit(COUNT_STAR_EXPANSION))])?
+                    .select(vec![col("COUNT(*)")])?

Review Comment:
   Since this is a dataframe test, maybe could use the expr name directly rather than the hard coded string 🤔 
   
   Something like
   
   ```rust
                  let count_star = count(lit(COUNT_STAR_EXPANSION));
                   ctx.table("t2")
                       .await?
                       .filter(out_ref_col(DataType::UInt32, "t1.a").eq(col("t2.a")))?
                       .aggregate(vec![], vec![count_star.clone()])?
                       .select(vec![col(count_star.to_string())])?
   ```



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