mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Update FunctionsJSON.h
This commit is contained in:
parent
8ea7cab7e4
commit
21a7a53491
@ -1106,15 +1106,15 @@ public:
|
||||
return false;
|
||||
}
|
||||
ColumnArray & col_res = assert_cast<ColumnArray &>(dest);
|
||||
Iterator it2 = it;
|
||||
Iterator array_it = it;
|
||||
size_t size = 0;
|
||||
if (JSONParser::firstArrayElement(it2))
|
||||
if (JSONParser::firstArrayElement(array_it))
|
||||
{
|
||||
do
|
||||
{
|
||||
JSONExtractRawImpl<JSONParser>::addValueToColumn(col_res.getData(), it2);
|
||||
size++;
|
||||
} while (JSONParser::nextArrayElement(it2));
|
||||
JSONExtractRawImpl<JSONParser>::addValueToColumn(col_res.getData(), array_it);
|
||||
++size;
|
||||
} while (JSONParser::nextArrayElement(array_it));
|
||||
}
|
||||
|
||||
col_res.getOffsets().push_back(col_res.getOffsets().back() + size);
|
||||
|
Loading…
Reference in New Issue
Block a user