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

feat: add respective get_by_path UDFs for JSON type #4720

Merged
merged 4 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/common/function/src/scalars/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
// limitations under the License.

use std::sync::Arc;
mod get_by_path;
mod json_to_string;
mod to_json;

use get_by_path::{GetByPathBool, GetByPathFloat, GetByPathInt, GetByPathString};
use json_to_string::JsonToStringFunction;
use to_json::ToJsonFunction;

Expand All @@ -27,5 +29,10 @@ impl JsonFunction {
pub fn register(registry: &FunctionRegistry) {
registry.register(Arc::new(JsonToStringFunction));
registry.register(Arc::new(ToJsonFunction));

registry.register(Arc::new(GetByPathInt));
registry.register(Arc::new(GetByPathFloat));
registry.register(Arc::new(GetByPathString));
registry.register(Arc::new(GetByPathBool));
}
}
Loading