Skip to content
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

chore: Add SessionState to MockContextProvider just like SessionContextProvider #11940

Merged
merged 7 commits into from
Aug 12, 2024

Conversation

dharanad
Copy link
Contributor

Which issue does this PR close?

Closes #11531

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the sql SQL Planner label Aug 11, 2024
@dharanad dharanad marked this pull request as ready for review August 11, 2024 16:29
@dharanad
Copy link
Contributor Author

Cleaning up some backlog
cc: @jayzhan211

Copy link
Contributor

@jayzhan211 jayzhan211 left a comment

Choose a reason for hiding this comment

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

👍

datafusion/sql/tests/common/mod.rs Outdated Show resolved Hide resolved
datafusion/sql/tests/common/mod.rs Outdated Show resolved Hide resolved
dharanad and others added 4 commits August 12, 2024 11:33
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

I think this looks really nice to me -- thank you @dharanad and @jayzhan211

.with_udf(string::concat().as_ref().clone())
.with_udf(make_udf(
let state = MockSessionState::default()
.with_scalar_function(Arc::new(unicode::character_length().as_ref().clone()))
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@jayzhan211
Copy link
Contributor

Thanks @dharanad @alamb

@jayzhan211 jayzhan211 merged commit 18193e6 into apache:main Aug 12, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: Add SessionState to MockContextProvider just like SessionContextProvider
3 participants