Skip to content

Commit

Permalink
just test jsonb_extract same with json_extract
Browse files Browse the repository at this point in the history
  • Loading branch information
amorynan committed Dec 23, 2024
1 parent f772baa commit 0647b20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion be/src/vec/functions/function_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ struct FunctionJsonQuoteImpl {
};

struct FunctionJsonExtractImpl {
static constexpr auto name = "json_extract";
static constexpr auto name = "json_extract_old";

static rapidjson::Value parse_json(const ColumnString* json_col, const ColumnString* path_col,
rapidjson::Document::AllocatorType& allocator,
Expand Down
2 changes: 1 addition & 1 deletion be/src/vec/functions/function_jsonb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ struct JsonbExtractString : public JsonbExtractStringImpl<JsonbTypeString> {
};

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,12 +705,12 @@ public class BuiltinScalarFunctions implements FunctionHelper {
scalar(JsonObject.class, "json_object"),
scalar(JsonQuote.class, "json_quote"),
scalar(JsonUnQuote.class, "json_unquote"),
scalar(JsonExtract.class, "json_extract"),
scalar(JsonInsert.class, "json_insert"),
scalar(JsonReplace.class, "json_replace"),
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 Down

0 comments on commit 0647b20

Please sign in to comment.