Skip to content

Conversation

@andygrove
Copy link
Member

@andygrove andygrove commented Mar 2, 2024

Which issue does this PR close?

N/A

Rationale for this change

What changes are included in this PR?

  • Use DataFusion 36
  • Remove references to functions that are no longer built-in
  • Add support for the UDFs that were previously built-in
  • Generate changelog
  • Improve some error handling

Are there any user-facing changes?

@andygrove andygrove self-assigned this Mar 2, 2024
/// Extracts the Expr value into a PyObject that can be shared with Python
pub fn python_value(&self, py: Python) -> PyResult<PyObject> {
match &self.expr {
Expr::Literal(scalar_value) => Ok(match scalar_value {
Copy link
Member Author

Choose a reason for hiding this comment

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

The main change here was to remove the Ok wrapping the result of the match and moving into the match arms so that we can have some of them return Err instead.

@andygrove andygrove marked this pull request as ready for review March 2, 2024 20:02
@andygrove andygrove merged commit dd4ed97 into apache:main Mar 2, 2024
@andygrove andygrove deleted the prep-36 branch March 2, 2024 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant