Skip to content

missing crypto functions in all_default_functions? #11844

@zhuliquan

Description

@zhuliquan

Describe the bug

Hello, I'am Arroyo (which is Distributed stream processing engine based on DataFusion) user. Arroyo upgrade datafusion version latest (i.e. 0.40) recently. But I meet below error

2024-08-06T08:28:28.674123Z DEBUG datafusion_functions: /home/zhuliquan/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/datafusion-functions-40.0.0/src/lib.rs:179: Overwrite existing UDF: contains    
test arrow::expression_match::test::test_execuator_process_batch ... FAILED

failures:

---- arrow::expression_match::test::test_execuator_process_batch stdout ----
thread 'arrow::expression_match::test::test_execuator_process_batch' panicked at crates/arroyo-worker/src/arrow/expression_match.rs:64:88:
called `Result::unwrap()` on an `Err` value: Execution error: UDF sha256 not found

according to error info, sha256 udf is missing and not registry. Meanwhile, I found other crypto udfs are not available. It's seems that missing some builtin udfs in all_default_functions

pub fn all_default_functions() -> Vec<Arc<ScalarUDF>> {
core::functions()
.into_iter()
.chain(datetime::functions())
.chain(encoding::functions())
.chain(math::functions())
.chain(regex::functions())
.chain(crypto::functions())
.chain(unicode::functions())
.chain(string::functions())
.collect::<Vec<_>>()
}

I click crypto::functions, then jump to below code (
crypto
), but others jump to own package (
math
).
#[cfg(feature = "crypto_expressions")]
pub mod crypto;
make_stub_package!(crypto, "crypto_expressions");

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions