-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58186 from ClickHouse/backport/23.3/58181
Backport #58181 to 23.3: Remove parallel parsing for JSONCompactEachRow
- Loading branch information
Showing
5 changed files
with
64 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
1 change: 1 addition & 0 deletions
1
tests/queries/0_stateless/02951_parallel_parsing_json_compact_each_row.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
15021837090950060251 |
63 changes: 63 additions & 0 deletions
63
tests/queries/0_stateless/02951_parallel_parsing_json_compact_each_row.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/usr/bin/env bash | ||
# Tags: no-parallel | ||
|
||
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | ||
# shellcheck source=../shell_config.sh | ||
. "$CUR_DIR"/../shell_config.sh | ||
|
||
${CLICKHOUSE_LOCAL} --input-format-parallel-parsing 1 --query " | ||
SELECT sum(cityHash64(*)) FROM file('$CUR_DIR/02951_data.jsonl.zst', JSONCompactEachRow, ' | ||
time_offset Decimal64(3), | ||
lat Float64, | ||
lon Float64, | ||
altitude String, | ||
ground_speed Float32, | ||
track_degrees Float32, | ||
flags UInt32, | ||
vertical_rate Int32, | ||
aircraft Tuple( | ||
alert Int64, | ||
alt_geom Int64, | ||
gva Int64, | ||
nac_p Int64, | ||
nac_v Int64, | ||
nic Int64, | ||
nic_baro Int64, | ||
rc Int64, | ||
sda Int64, | ||
sil Int64, | ||
sil_type String, | ||
spi Int64, | ||
track Float64, | ||
type String, | ||
version Int64, | ||
category String, | ||
emergency String, | ||
flight String, | ||
squawk String, | ||
baro_rate Int64, | ||
nav_altitude_fms Int64, | ||
nav_altitude_mcp Int64, | ||
nav_modes Array(String), | ||
nav_qnh Float64, | ||
geom_rate Int64, | ||
ias Int64, | ||
mach Float64, | ||
mag_heading Float64, | ||
oat Int64, | ||
roll Float64, | ||
tas Int64, | ||
tat Int64, | ||
true_heading Float64, | ||
wd Int64, | ||
ws Int64, | ||
track_rate Float64, | ||
nav_heading Float64 | ||
), | ||
source LowCardinality(String), | ||
geometric_altitude Int32, | ||
geometric_vertical_rate Int32, | ||
indicated_airspeed Int32, | ||
roll_angle Float32, | ||
hex String | ||
')" |