Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
amorynan committed Dec 24, 2024
1 parent 0647b20 commit c404d14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion be/src/vec/functions/function_jsonb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,13 +1307,14 @@ struct JsonbExtractString : public JsonbExtractStringImpl<JsonbTypeString> {
static constexpr auto name = "json_extract_string";
static constexpr auto alias = "jsonb_extract_string";
static constexpr auto name2 = "get_json_string";
static constexpr auto name3 = "json_extract";
static DataTypes get_variadic_argument_types_impl() {
return {std::make_shared<DataTypeJsonb>(), std::make_shared<DataTypeString>()};
}
};

struct JsonbExtractJsonb : public JsonbExtractStringImpl<JsonbTypeJson> {
static constexpr auto name = "json_extract";
static constexpr auto name = "jsonb_extract";
static constexpr auto alias = "jsonb_extract";
};

Expand Down Expand Up @@ -2011,6 +2012,8 @@ void register_function_jsonb(SimpleFunctionFactory& factory) {
factory.register_function<FunctionJsonbExtractString>();
factory.register_alias(FunctionJsonbExtractString::name, FunctionJsonbExtractString::alias);
factory.register_function<FunctionJsonbExtractString>(JsonbExtractString::name2);
factory.register_function<FunctionJsonbExtractString>(JsonbExtractString::name3);

factory.register_function<FunctionJsonbExtractJsonb>();
// factory.register_alias(FunctionJsonbExtractJsonb::name, FunctionJsonbExtractJsonb::alias);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@ public class BuiltinScalarFunctions implements FunctionHelper {
scalar(JsonSet.class, "json_set"),
scalar(JsonbExistsPath.class, "json_exists_path"),
scalar(JsonbExistsPath.class, "jsonb_exists_path"),
scalar(JsonbExtract.class, "json_extract"),
scalar(JsonbExtract.class, "jsonb_extract"),
scalar(JsonbExtractBigint.class, "json_extract_bigint"),
scalar(JsonbExtractBigint.class, "jsonb_extract_bigint"),
Expand All @@ -724,6 +723,7 @@ public class BuiltinScalarFunctions implements FunctionHelper {
scalar(JsonbExtractInt.class, "jsonb_extract_int"),
scalar(JsonbExtractIsnull.class, "json_extract_isnull"),
scalar(JsonbExtractIsnull.class, "jsonb_extract_isnull"),
scalar(JsonbExtractString.class, "json_extract"),
scalar(JsonbExtractString.class, "json_extract_string"),
scalar(JsonbExtractString.class, "jsonb_extract_string"),
scalar(JsonbParse.class, "json_parse"),
Expand Down

0 comments on commit c404d14

Please sign in to comment.