-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
test: add regression test for unnesting dictionary encoded columns #14395
test: add regression test for unnesting dictionary encoded columns #14395
Conversation
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.
Thanks @duongcongtoai
cc @crepererum
let make_array_udf_expr1 = Expr::ScalarFunction(ScalarFunction::new_udf( | ||
make_array_udf(), | ||
vec![col("column1")], | ||
)); |
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.
If we rewrote this test to use the DataFrame API I think it would belong here nicely
For example:
let make_array_udf_expr1 = Expr::ScalarFunction(ScalarFunction::new_udf( | |
make_array_udf(), | |
vec![col("column1")], | |
)); | |
let make_array_udf_expr1 =make_array_udf() | |
.call(vec![col("column1")])); |
Then instead of LogicalPlanBuilder, use the methods on DataFrame 🤔
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.
thanks, i applied the suggestion
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.
Thanks @duongcongtoai
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.
Thanks again @duongcongtoai
…pache#14395) * chore: add regression test for unnest dict encoded cols * chore: use dataframe api for testing * chore: rm unused dep
Which issue does this PR close?
make_array
->unnest
w/ dict-encoded strings fails #6057 was fixed long ago, this PR is only to add regression testmake_array
->unnest
w/ dict-encoded strings fails #6057Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?