mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Review fixes
This commit is contained in:
parent
65c6605c2c
commit
4d2b34a7f0
@ -1378,7 +1378,7 @@ public:
|
|||||||
auto & col_tuple = assert_cast<ColumnTuple &>(col_arr.getData());
|
auto & col_tuple = assert_cast<ColumnTuple &>(col_arr.getData());
|
||||||
auto & col_key = assert_cast<ColumnString &>(col_tuple.getColumn(0));
|
auto & col_key = assert_cast<ColumnString &>(col_tuple.getColumn(0));
|
||||||
|
|
||||||
for (auto [key, value] : object)
|
for (const auto & [key, value] : object)
|
||||||
{
|
{
|
||||||
col_key.insertData(key.data(), key.size());
|
col_key.insertData(key.data(), key.size());
|
||||||
}
|
}
|
||||||
|
@ -233,9 +233,9 @@ SELECT JSONExtractKeysAndValuesRaw('{"a": "hello", "b": [-100, 200.0, 300], "c":
|
|||||||
|
|
||||||
SELECT '--JSONExtractKeys--';
|
SELECT '--JSONExtractKeys--';
|
||||||
SELECT JSONExtractKeys('{"a": "hello", "b": [-100, 200.0, 300]}');
|
SELECT JSONExtractKeys('{"a": "hello", "b": [-100, 200.0, 300]}');
|
||||||
SELECT JSONExtractKeysAndValuesRaw('{"a": "hello", "b": [-100, 200.0, 300]}', 'b');
|
SELECT JSONExtractKeys('{"a": "hello", "b": [-100, 200.0, 300]}', 'b');
|
||||||
SELECT JSONExtractKeysAndValuesRaw('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');
|
SELECT JSONExtractKeys('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');
|
||||||
SELECT JSONExtractKeysAndValuesRaw('{"a": "hello", "b": [-100, 200.0, 300], "c":{"d":[121,144]}}', 'c');
|
SELECT JSONExtractKeys('{"a": "hello", "b": [-100, 200.0, 300], "c":{"d":[121,144]}}', 'c');
|
||||||
|
|
||||||
SELECT '--const/non-const mixed--';
|
SELECT '--const/non-const mixed--';
|
||||||
SELECT JSONExtractString('["a", "b", "c", "d", "e"]', idx) FROM (SELECT arrayJoin([1,2,3,4,5]) AS idx);
|
SELECT JSONExtractString('["a", "b", "c", "d", "e"]', idx) FROM (SELECT arrayJoin([1,2,3,4,5]) AS idx);
|
||||||
|
Loading…
Reference in New Issue
Block a user