1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-785 Implement DISTRIBUTED JSON functions

The following functions are created:
Create function JSON_VALID and test cases
Create function JSON_DEPTH and test cases
Create function JSON_LENGTH and test cases
Create function JSON_EQUALS and test cases
Create function JSON_NORMALIZE and test cases
Create function JSON_TYPE and test cases
Create function JSON_OBJECT and test cases
Create function JSON_ARRAY and test cases
Create function JSON_KEYS and test cases
Create function JSON_EXISTS and test cases
Create function JSON_QUOTE/JSON_UNQUOTE and test cases
Create function JSON_COMPACT/DETAILED/LOOSE and test cases
Create function JSON_MERGE and test cases
Create function JSON_MERGE_PATCH and test cases
Create function JSON_VALUE and test cases
Create function JSON_QUERY and test cases
Create function JSON_CONTAINS and test cases
Create function JSON_ARRAY_APPEND and test cases
Create function JSON_ARRAY_INSERT and test cases
Create function JSON_INSERT/REPLACE/SET and test cases
Create function JSON_REMOVE and test cases
Create function JSON_CONTAINS_PATH and test cases
Create function JSON_OVERLAPS and test cases
Create function JSON_EXTRACT and test cases
Create function JSON_SEARCH and test cases

Note:
Some functions output differs from MDB because session variables that affects functions output,e.g JSON_QUOTE/JSON_UNQUOTE
This depends on MCOL-5212
This commit is contained in:
Ziy1-Tan
2022-06-23 10:49:29 +08:00
parent b5d8e0324b
commit cdd41f05f3
82 changed files with 8645 additions and 2 deletions

View File

@ -57,6 +57,32 @@ set(funcexp_LIB_SRCS
func_insert.cpp
func_instr.cpp
func_isnull.cpp
func_json_array.cpp
func_json_array_append.cpp
func_json_array_insert.cpp
func_json_contains.cpp
func_json_contains_path.cpp
func_json_depth.cpp
func_json_equals.cpp
func_json_exists.cpp
func_json_extract.cpp
func_json_format.cpp
func_json_insert.cpp
func_json_keys.cpp
func_json_length.cpp
func_json_merge.cpp
func_json_merge_patch.cpp
func_json_normalize.cpp
func_json_object.cpp
func_json_overlaps.cpp
func_json_query.cpp
func_json_quote.cpp
func_json_remove.cpp
func_json_search.cpp
func_json_type.cpp
func_json_unquote.cpp
func_json_valid.cpp
func_json_value.cpp
func_last_day.cpp
func_lcase.cpp
func_least.cpp
@ -117,6 +143,7 @@ set(funcexp_LIB_SRCS
func_weekday.cpp
func_year.cpp
func_yearweek.cpp
jsonhelpers.cpp
sql_crypt.cpp)
add_library(funcexp SHARED ${funcexp_LIB_SRCS})