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

support cast as json #8333

Merged
merged 65 commits into from
Nov 27, 2023
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
c769c97
add appendJsonBinary
SeaRise Nov 7, 2023
6d677d9
tmp save
SeaRise Nov 8, 2023
749bc3c
tmp save
SeaRise Nov 8, 2023
bbb96e6
merge master
SeaRise Nov 8, 2023
a2e6f30
revert some useless change
SeaRise Nov 8, 2023
a5ecd2f
revert
SeaRise Nov 8, 2023
c694cfd
cast json as json
SeaRise Nov 8, 2023
137edc5
cast real as json; cast decimal as json
SeaRise Nov 8, 2023
386b886
cast int as json
SeaRise Nov 8, 2023
900030c
cast string as json step1
SeaRise Nov 8, 2023
dbe7506
tmp save
SeaRise Nov 8, 2023
ef05b96
cast string as json
SeaRise Nov 9, 2023
c7f8c2e
cast time as json
SeaRise Nov 9, 2023
1195c88
cast duration as json
SeaRise Nov 9, 2023
a58de3e
add ut for cast json as json
SeaRise Nov 9, 2023
a9e4d29
update
SeaRise Nov 13, 2023
b72f70a
ut finish
SeaRise Nov 13, 2023
71f8116
fix format
SeaRise Nov 13, 2023
40b24d8
tmp save
SeaRise Nov 13, 2023
c981d29
ut ut ut
SeaRise Nov 14, 2023
b8771b6
fmt
SeaRise Nov 14, 2023
7dbde8c
add it
SeaRise Nov 14, 2023
7e398ba
add it for decimal
SeaRise Nov 14, 2023
c82b923
revert
SeaRise Nov 14, 2023
170874f
fix #NO_UNESCAPE
SeaRise Nov 15, 2023
5c4ac21
Update tests/fullstack-test/expr/cast_as_json.test
SeaRise Nov 15, 2023
3cb5df4
Merge branch 'master' into cast_as_json
SeaRise Nov 15, 2023
4f238f7
introduce simdjson
SeaRise Nov 15, 2023
7b613c1
fix it
SeaRise Nov 15, 2023
b70e571
add ut for simdjson
SeaRise Nov 15, 2023
f4a10e1
use simdjson
SeaRise Nov 15, 2023
112558a
fmt
SeaRise Nov 15, 2023
214e992
fix obj
SeaRise Nov 15, 2023
529e402
fmt
SeaRise Nov 15, 2023
eba1300
fix and check deep
SeaRise Nov 16, 2023
cdb48ca
ut
SeaRise Nov 16, 2023
1c7401b
fmt
SeaRise Nov 16, 2023
84fec10
revert
SeaRise Nov 16, 2023
c27dfd4
revert
SeaRise Nov 16, 2023
fcdff44
Update dbms/src/Functions/tests/gtest_cast_as_json.cpp
SeaRise Nov 16, 2023
ce62b37
Update dbms/src/Functions/tests/gtest_cast_as_json.cpp
SeaRise Nov 16, 2023
9995ccb
prepare for optimize
SeaRise Nov 16, 2023
66c5a7c
optimize
SeaRise Nov 16, 2023
e680b94
add ut
SeaRise Nov 17, 2023
fcc7a6d
fmt
SeaRise Nov 17, 2023
c0e6aa8
update
SeaRise Nov 17, 2023
25b2e93
add more uts
SeaRise Nov 17, 2023
9aa59b8
minor refine
SeaRise Nov 20, 2023
b8c2bfa
Update dbms/src/Functions/FunctionsJson.h
SeaRise Nov 21, 2023
5e7717b
Merge branch 'master' into cast_as_json
SeaRise Nov 21, 2023
04bffbb
minior refine for json_array
SeaRise Nov 21, 2023
f0b1781
minior refine for json_array
SeaRise Nov 21, 2023
25195e6
more refine
SeaRise Nov 21, 2023
bc7e55d
tmp save
SeaRise Nov 22, 2023
35e8031
address comments
SeaRise Nov 22, 2023
1a83a58
fix
SeaRise Nov 22, 2023
90ca9ab
format
SeaRise Nov 23, 2023
2163ca7
Update dbms/src/Functions/FunctionsJson.h
SeaRise Nov 23, 2023
b3600ff
address comments
SeaRise Nov 23, 2023
efdeb11
fmt
SeaRise Nov 23, 2023
f662dad
fmt
SeaRise Nov 23, 2023
ae175d6
address comments
SeaRise Nov 27, 2023
2430e09
update
SeaRise Nov 27, 2023
86b2e6e
udpate
SeaRise Nov 27, 2023
8b77518
Merge branch 'master' into cast_as_json
ti-chi-bot[bot] Nov 27, 2023
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
Prev Previous commit
Next Next commit
add it
SeaRise committed Nov 14, 2023
commit 7dbde8c7f4b931c724e4fc6303dd8be82fe4df50
5 changes: 1 addition & 4 deletions dbms/src/Flash/Coprocessor/DAGExpressionAnalyzerHelper.cpp
Original file line number Diff line number Diff line change
@@ -302,7 +302,7 @@ String DAGExpressionAnalyzerHelper::buildCastAsJsonWithInputTiDBField(

const FunctionBuilderPtr & function_builder = FunctionFactory::instance().get(func_name, analyzer->getContext());
auto * function_build_ptr = function_builder.get();
if (auto * function_builder = dynamic_cast<DefaultFunctionBuilder *>(function_build_ptr))
if (auto * function_builder = dynamic_cast<DefaultFunctionBuilder *>(function_build_ptr); function_builder)
{
auto * function_impl = function_builder->getFunctionImpl().get();
if (auto * function_cast_int_as_json = dynamic_cast<FunctionCastIntAsJson *>(function_impl);
@@ -332,9 +332,6 @@ String DAGExpressionAnalyzerHelper::buildCastAsJsonWithInputTiDBField(

const ExpressionAction & action = ExpressionAction::applyFunction(function_builder, {arg}, result_name, collator);
actions->add(action);

const auto & func_action = actions->getActions().back();
RUNTIME_CHECK(func_action.function != nullptr);
return result_name;
}

Loading