qdrant-datafusion 0.1.1

Qdrant integration for Apache DataFusion
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `datafusion-functions-json` and other functions relevant for Qdrant.

use datafusion::execution::FunctionRegistry;
// Re-export
pub use datafusion_functions_json;

use crate::error::Result;

/// Register JSON-related UDFs with the given function registry.
///
/// # Errors
/// - Returns an error if any of the JSON-related UDFs fail to register.
pub fn register_json_udfs(ctx: &mut dyn FunctionRegistry) -> Result<()> {
    datafusion_functions_json::register_all(ctx)?;
    Ok(())
}