-
Notifications
You must be signed in to change notification settings - Fork 72
[DF] Enable some distinct agg tests #786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DF] Enable some distinct agg tests #786
Conversation
| let alias = format!("__dask_sql_count__{}", optimizer_config.next_id()); | ||
| let aggr_expr = vec![count(Expr::Literal(ScalarValue::UInt64(Some(1)))).alias(&alias)]; | ||
| let expr_name = expr.name()?; | ||
| let count_expr = Expr::Column(Column::from_qualified_name(&expr_name)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main fix - COUNT(col) instead of COUNT(1)
| a = make_rand_df( | ||
| 100, a=(int, 50), b=(str, 50), c=(int, 30), d=(str, 40), e=(float, 40) | ||
| ) | ||
| # note that this test repeats the expression `COUNT(DISTINCT a)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to open an issue to follow up on the dupe case later on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: #787
charlesbluca
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @andygrove 😄
Follows on from #784