Skip to content

Clean up expression placement UDF usage in tests - #20272

Merged
adriangb merged 9 commits into
apache:mainfrom
pydantic:tweak-shared-udf
Feb 11, 2026
Merged

Clean up expression placement UDF usage in tests#20272
adriangb merged 9 commits into
apache:mainfrom
pydantic:tweak-shared-udf

Conversation

@adriangb

Copy link
Copy Markdown
Contributor

Followup to #20238 bringing in the shared test UDFs from #20239

@github-actionsgithub-actionsBot added the optimizer Optimizer rules label Feb 10, 2026
.with_id(2),
));

let expr_a = Expr::ScalarFunction(ScalarFunction::new_udf(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can make this less verbose via expr_a = udf_a.call(vec![col("user"), lit("field")])

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you -- this looks like a nice improvement to me

@adriangb
adriangb added this pull request to the merge queueFeb 11, 2026
Merged via the queue into apache:main with commit f9d37cfFeb 11, 2026
32 checks passed
@adriangb
adriangb deleted the tweak-shared-udf branch February 11, 2026 13:52
de-bgunter pushed a commit to de-bgunter/datafusion that referenced this pull request Mar 24, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizerOptimizer rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriangb@alamb