-
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
DRAFT: arrow_cast function as UDF #9235
Conversation
|
||
pub const ARROW_CAST_NAME: &str = "arrow_cast"; | ||
#[derive(Debug)] |
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 looks just about perfect. Thank you @brayanjuls
I plan to get #8985 merged shortly and then this PR should be possible.
🙏
…ScalarStructBuilder` (apache#9229) * Improve documentation on how to build `ScalarValue::Struct` and add `ScalarStructBuilder` * Update datafusion/common/src/scalar/struct_builder.rs * Improved docs * update test --------- Co-authored-by: comphead <[email protected]>
…e#9225) * Initial commit * Update plan
…aTypes) (apache#8985) * ScalarValue return types from argument values * change file name * try using ?Sized * use Ok * move method default impl outside trait * Use type trait for ExprSchemable * fix nit * Proposed Return Type from Expr suggestions (apache#1) * Improve return_type_from_args * Rework example * Update datafusion/core/tests/user_defined/user_defined_scalar_functions.rs --------- Co-authored-by: Junhao Liu <[email protected]> * Apply suggestions from code review Co-authored-by: Alex Huang <[email protected]> * Fix tests + clippy * rework types to use dyn trait * fmt * docs * Apply suggestions from code review Co-authored-by: Jeffrey Vo <[email protected]> * Add docs explaining what happens when both `return_type` and `return_type_from_exprs` are called * clippy * fix doc -- comedy of errors --------- Co-authored-by: Andrew Lamb <[email protected]> Co-authored-by: Alex Huang <[email protected]> Co-authored-by: Jeffrey Vo <[email protected]>
Now that #8985 is merged, I think this PR can proceed. |
* Dont call multiunzip when no stats * Update docstring
* GROUP-BY prioritizes input columns in case of ambiguity * Update datafusion/sqllogictest/test_files/aggregate.slt Co-authored-by: Andrew Lamb <[email protected]> * Update datafusion/sqllogictest/test_files/aggregate.slt Co-authored-by: Andrew Lamb <[email protected]> --------- Co-authored-by: Andrew Lamb <[email protected]>
…l` `ScalarValue::Struct` (apache#9238) * Minor: Add example for `ScalarStructBuilder::new_null` * Fix null display * fix docs * tweak
…join (apache#9154) * fix: issue apache#9130 substitute redundant columns when doing cross join * add test * fix:bugs * optimize code * optimize code * deleting extra debug info * adding test and optimized code * fix test * fix test
…w_cast to be resolved when added to an expression.
…into feat/migrate_arrow_cast_to_udf # Conflicts: # datafusion/functions/src/core/arrow_cast.rs
I messed the merge of the latest changes and somehow now they all appear in this PR. I will try to fix it, otherwise I will open a new PR. |
Thanks @brayanjuls -- I also filed #9287 to track this issue. I thought of a potential issue we may hit as well which I will link to #9287 as well |
Which issue does this PR close?
Closes #9143
Closes #9287
Rationale for this change
Migration of core functions to UDF.
What changes are included in this PR?
arrow_cast function migration.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.