mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
ce7eca0615
* Add ReadBufferFromFileBase::isRegularLocalFile() * DWARF input format * Review comments * Changed things around ENABLE_EMBEDDED_COMPILER build setting * Added 'ranges' column * no-msan no-ubsan
19 lines
850 B
Bash
Executable File
19 lines
850 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Tags: no-fasttest, no-msan, no-ubsan
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
for file in tiny_dwarf4 tiny_dwarf5
|
|
do
|
|
$CLICKHOUSE_LOCAL -q "select * from file('$CURDIR/data_dwarf/$file', DWARF) order by cityHash64(offset) limit 10"
|
|
$CLICKHOUSE_LOCAL -q "select sum(cityHash64(*)) from file('$CURDIR/data_dwarf/$file', DWARF)"
|
|
|
|
# Select each column individually to make sure we didn't mess up any of the `if (need[COL_WHATEVER])` checks in the code.
|
|
for c in `$CLICKHOUSE_LOCAL -q "desc file('$CURDIR/data_dwarf/$file', DWARF)" | cut -f1`
|
|
do
|
|
$CLICKHOUSE_LOCAL -q "select '$c', sum(cityHash64($c) as h), argMin($c, h) as random_value_to_sanity_check_visually from file('$CURDIR/data_dwarf/$file', DWARF)"
|
|
done
|
|
done
|