mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Minor changes 2
This commit is contained in:
parent
1a487f88d6
commit
621347ed21
@ -6,7 +6,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
export NO_SHELL_CONFIG=1
|
export NO_SHELL_CONFIG=1
|
||||||
|
|
||||||
for _ in {1..4}; do
|
for _ in {1..4}; do
|
||||||
$CURDIR/00097_long_storage_buffer_race_condition.sh > /dev/null 2>&1 &
|
"$CURDIR"/00097_long_storage_buffer_race_condition.sh > /dev/null 2>&1 &
|
||||||
done
|
done
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
@ -5,5 +5,5 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# We should have correct env vars from shell_config.sh to run this test
|
# We should have correct env vars from shell_config.sh to run this test
|
||||||
|
|
||||||
python $CURDIR/00386_long_in_pk.python
|
python "$CURDIR"/00386_long_in_pk.python
|
||||||
|
|
||||||
|
@ -5,4 +5,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# We should have correct env vars from shell_config.sh to run this test
|
# We should have correct env vars from shell_config.sh to run this test
|
||||||
|
|
||||||
python $CURDIR/00411_long_accurate_number_comparison.python float
|
python "$CURDIR"/00411_long_accurate_number_comparison.python float
|
||||||
|
@ -5,4 +5,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# We should have correct env vars from shell_config.sh to run this test
|
# We should have correct env vars from shell_config.sh to run this test
|
||||||
|
|
||||||
python $CURDIR/00411_long_accurate_number_comparison.python int1
|
python "$CURDIR"/00411_long_accurate_number_comparison.python int1
|
||||||
|
@ -5,4 +5,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# We should have correct env vars from shell_config.sh to run this test
|
# We should have correct env vars from shell_config.sh to run this test
|
||||||
|
|
||||||
python $CURDIR/00411_long_accurate_number_comparison.python int2
|
python "$CURDIR"/00411_long_accurate_number_comparison.python int2
|
||||||
|
@ -5,4 +5,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# We should have correct env vars from shell_config.sh to run this test
|
# We should have correct env vars from shell_config.sh to run this test
|
||||||
|
|
||||||
python $CURDIR/00411_long_accurate_number_comparison.python int3
|
python "$CURDIR"/00411_long_accurate_number_comparison.python int3
|
||||||
|
@ -5,4 +5,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# We should have correct env vars from shell_config.sh to run this test
|
# We should have correct env vars from shell_config.sh to run this test
|
||||||
|
|
||||||
python $CURDIR/00411_long_accurate_number_comparison.python int4
|
python "$CURDIR"/00411_long_accurate_number_comparison.python int4
|
||||||
|
@ -4,4 +4,4 @@ set -e
|
|||||||
|
|
||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
|
||||||
env CLICKHOUSE_CLIENT_OPT="--merge_tree_uniform_read_distribution=0" bash $CURDIR/00443_optimize_final_vertical_merge.sh
|
env CLICKHOUSE_CLIENT_OPT="--merge_tree_uniform_read_distribution=0" bash "$CURDIR"/00443_optimize_final_vertical_merge.sh
|
||||||
|
@ -30,8 +30,8 @@ $CLICKHOUSE_CLIENT_SECURE -q "SELECT 4;"
|
|||||||
|
|
||||||
# TODO: can test only on unchanged port. Possible solutions: generate config or pass shard port via command line
|
# TODO: can test only on unchanged port. Possible solutions: generate config or pass shard port via command line
|
||||||
if [[ "$CLICKHOUSE_PORT_TCP_SECURE" = "$CLICKHOUSE_PORT_TCP_SECURE" ]]; then
|
if [[ "$CLICKHOUSE_PORT_TCP_SECURE" = "$CLICKHOUSE_PORT_TCP_SECURE" ]]; then
|
||||||
cat $CURDIR/00505_distributed_secure.data | $CLICKHOUSE_CLIENT_SECURE -n -m
|
cat "$CURDIR"/00505_distributed_secure.data | $CLICKHOUSE_CLIENT_SECURE -n -m
|
||||||
else
|
else
|
||||||
tail -n 13 $CURDIR/00505_secure.reference
|
tail -n 13 "$CURDIR"/00505_secure.reference
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5,6 +5,6 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# Server should not crash on any function trash calls
|
# Server should not crash on any function trash calls
|
||||||
|
|
||||||
cat $CURDIR/00534_filimonov.data | $CLICKHOUSE_CLIENT -n --ignore-error >/dev/null 2>&1
|
cat "$CURDIR"/00534_filimonov.data | $CLICKHOUSE_CLIENT -n --ignore-error >/dev/null 2>&1
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"
|
$CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_;'
|
test_variant 'SELECT $_;'
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_([NULL],[NULL]);'
|
test_variant 'SELECT $_([NULL],[NULL]);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_(NULL, NULL, NULL);'
|
test_variant 'SELECT $_(NULL, NULL, NULL);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_([], [], []);'
|
test_variant 'SELECT $_([], [], []);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_([NULL], [NULL], [NULL]);'
|
test_variant 'SELECT $_([NULL], [NULL], [NULL]);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_();'
|
test_variant 'SELECT $_();'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_(NULL);'
|
test_variant 'SELECT $_(NULL);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_([]);'
|
test_variant 'SELECT $_([]);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_([NULL]);'
|
test_variant 'SELECT $_([NULL]);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_(-1);'
|
test_variant 'SELECT $_(-1);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant "SELECT \$_('');"
|
test_variant "SELECT \$_('');"
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_(NULL, NULL);'
|
test_variant 'SELECT $_(NULL, NULL);'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/00534_functions_bad_arguments.lib
|
. "$CURDIR"/00534_functions_bad_arguments.lib
|
||||||
|
|
||||||
test_variant 'SELECT $_([], []);'
|
test_variant 'SELECT $_([], []);'
|
||||||
|
@ -5,4 +5,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# We should have correct env vars from shell_config.sh to run this test
|
# We should have correct env vars from shell_config.sh to run this test
|
||||||
|
|
||||||
python $CURDIR/00646_url_engine.python
|
python "$CURDIR"/00646_url_engine.python
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations"
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS alter_update"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS alter_update"
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --multiquery << EOF
|
${CLICKHOUSE_CLIENT} --multiquery << EOF
|
||||||
DROP TABLE IF EXISTS mutations;
|
DROP TABLE IF EXISTS mutations;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --multiquery << EOF
|
${CLICKHOUSE_CLIENT} --multiquery << EOF
|
||||||
DROP TABLE IF EXISTS mutations_r1;
|
DROP TABLE IF EXISTS mutations_r1;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_r1"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_r1"
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_r2"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_r2"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS ordinary_00682"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS ordinary_00682"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
echo "INSERT INTO test FORMAT CSV" | ${CLICKHOUSE_CLIENT} -n 2>/dev/null
|
echo "INSERT INTO test FORMAT CSV" | ${CLICKHOUSE_CLIENT} -n 2>/dev/null
|
||||||
echo $?
|
echo $?
|
||||||
|
@ -4,7 +4,7 @@ set -e
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --multiquery --query="
|
${CLICKHOUSE_CLIENT} --multiquery --query="
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} -n --query="
|
${CLICKHOUSE_CLIENT} -n --query="
|
||||||
|
@ -13,7 +13,7 @@ $CLICKHOUSE_CLIENT -q "select name from system.table_functions format TSV;" > $S
|
|||||||
# if you want long run use: env SQL_FUZZY_RUNS=100000 clickhouse-test sql_fuzzy
|
# if you want long run use: env SQL_FUZZY_RUNS=100000 clickhouse-test sql_fuzzy
|
||||||
|
|
||||||
for SQL_FUZZY_RUN in $(seq ${SQL_FUZZY_RUNS:=10}); do
|
for SQL_FUZZY_RUN in $(seq ${SQL_FUZZY_RUNS:=10}); do
|
||||||
env SQL_FUZZY_RUN=$SQL_FUZZY_RUN $CURDIR/00746_sql_fuzzy.pl | $CLICKHOUSE_CLIENT --format Null --max_execution_time 10 -n --ignore-error >/dev/null 2>&1
|
env SQL_FUZZY_RUN=$SQL_FUZZY_RUN "$CURDIR"/00746_sql_fuzzy.pl | $CLICKHOUSE_CLIENT --format Null --max_execution_time 10 -n --ignore-error >/dev/null 2>&1
|
||||||
if [[ `$CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"` != 'Still alive' ]]; then
|
if [[ `$CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"` != 'Still alive' ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
@ -43,7 +43,7 @@ EOF
|
|||||||
# To generate the file 00825_protobuf_format_input.insh use the following commands:
|
# To generate the file 00825_protobuf_format_input.insh use the following commands:
|
||||||
# ninja ProtobufDelimitedMessagesSerializer
|
# ninja ProtobufDelimitedMessagesSerializer
|
||||||
# build/utils/test-data-generator/ProtobufDelimitedMessagesSerializer
|
# build/utils/test-data-generator/ProtobufDelimitedMessagesSerializer
|
||||||
source $CURDIR/00825_protobuf_format_input.insh
|
source "$CURDIR"/00825_protobuf_format_input.insh
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query "SELECT * FROM in_persons_00825 ORDER BY uuid;"
|
$CLICKHOUSE_CLIENT --query "SELECT * FROM in_persons_00825 ORDER BY uuid;"
|
||||||
$CLICKHOUSE_CLIENT --query "SELECT * FROM in_squares_00825 ORDER BY number;"
|
$CLICKHOUSE_CLIENT --query "SELECT * FROM in_squares_00825 ORDER BY number;"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation"
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation_r1"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation_r1"
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation_r2"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation_r2"
|
||||||
|
@ -11,8 +11,8 @@ $CLICKHOUSE_CLIENT --query="INSERT INTO template VALUES
|
|||||||
('', 'zx\ncv\tbn m', 'qwe,rty', 'as\"df''gh', 9876543210, '2016-01-03'),\
|
('', 'zx\ncv\tbn m', 'qwe,rty', 'as\"df''gh', 9876543210, '2016-01-03'),\
|
||||||
('zx\ncv\tbn m', 'qwe,rty', 'as\"df''gh', '', 789, '2016-01-04')";
|
('zx\ncv\tbn m', 'qwe,rty', 'as\"df''gh', '', 789, '2016-01-04')";
|
||||||
|
|
||||||
echo -ne '{prefix} \n${data:None}\n------\n${totals:}\n------\n${min}\n------\n${max}\n${rows:Escaped} rows\nbefore limit ${rows_before_limit:XML}\nread ${rows_read:Escaped} $$ suffix $$' > $CURDIR/00937_template_output_format_resultset.tmp
|
echo -ne '{prefix} \n${data:None}\n------\n${totals:}\n------\n${min}\n------\n${max}\n${rows:Escaped} rows\nbefore limit ${rows_before_limit:XML}\nread ${rows_read:Escaped} $$ suffix $$' > "$CURDIR"/00937_template_output_format_resultset.tmp
|
||||||
echo -ne 'n:\t${n:JSON}, s1:\t${0:Escaped}, s2:\t${s2:Quoted}, s3:\t${`s 3`:JSON}, s4:\t${"s 4":CSV}, d:\t${d:Escaped}, n:\t${n:Raw}\t' > $CURDIR/00937_template_output_format_row.tmp
|
echo -ne 'n:\t${n:JSON}, s1:\t${0:Escaped}, s2:\t${s2:Quoted}, s3:\t${`s 3`:JSON}, s4:\t${"s 4":CSV}, d:\t${d:Escaped}, n:\t${n:Raw}\t' > "$CURDIR"/00937_template_output_format_row.tmp
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM template GROUP BY s1, s2, \`s 3\`, \"s 4\", n, d WITH TOTALS ORDER BY n LIMIT 4 FORMAT Template SETTINGS extremes = 1,\
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM template GROUP BY s1, s2, \`s 3\`, \"s 4\", n, d WITH TOTALS ORDER BY n LIMIT 4 FORMAT Template SETTINGS extremes = 1,\
|
||||||
format_template_resultset = '$CURDIR/00937_template_output_format_resultset.tmp', \
|
format_template_resultset = '$CURDIR/00937_template_output_format_resultset.tmp', \
|
||||||
@ -20,4 +20,4 @@ format_template_row = '$CURDIR/00937_template_output_format_row.tmp', \
|
|||||||
format_template_rows_between_delimiter = ';\n'";
|
format_template_rows_between_delimiter = ';\n'";
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="DROP TABLE template";
|
$CLICKHOUSE_CLIENT --query="DROP TABLE template";
|
||||||
rm $CURDIR/00937_template_output_format_resultset.tmp $CURDIR/00937_template_output_format_row.tmp
|
rm "$CURDIR"/00937_template_output_format_resultset.tmp $CURDIR/00937_template_output_format_row.tmp
|
||||||
|
@ -9,8 +9,8 @@ $CLICKHOUSE_CLIENT --query="CREATE TABLE template1 (s1 String, s2 String, s3 Str
|
|||||||
$CLICKHOUSE_CLIENT --query="CREATE TABLE template2 (s1 String, s2 String, s3 String, s4 String, n UInt64, d Date) ENGINE = Memory";
|
$CLICKHOUSE_CLIENT --query="CREATE TABLE template2 (s1 String, s2 String, s3 String, s4 String, n UInt64, d Date) ENGINE = Memory";
|
||||||
|
|
||||||
echo "==== check escaping ===="
|
echo "==== check escaping ===="
|
||||||
echo -ne '{prefix} \n${data}\n $$ suffix $$\n' > $CURDIR/00938_template_input_format_resultset.tmp
|
echo -ne '{prefix} \n${data}\n $$ suffix $$\n' > "$CURDIR"/00938_template_input_format_resultset.tmp
|
||||||
echo -ne 'n:\t${n:Escaped}, s1:\t${0:Escaped}\t, s2:\t${1:Quoted}, s3:\t${s3:JSON}, s4:\t${3:CSV}, d:\t${d:Escaped}\t' > $CURDIR/00938_template_input_format_row.tmp
|
echo -ne 'n:\t${n:Escaped}, s1:\t${0:Escaped}\t, s2:\t${1:Quoted}, s3:\t${s3:JSON}, s4:\t${3:CSV}, d:\t${d:Escaped}\t' > "$CURDIR"/00938_template_input_format_row.tmp
|
||||||
|
|
||||||
echo "{prefix}
|
echo "{prefix}
|
||||||
n: 123, s1: qwe,rty , s2: 'as\"df\\'gh', s3: \"\", s4: \"zx
|
n: 123, s1: qwe,rty , s2: 'as\"df\\'gh', s3: \"\", s4: \"zx
|
||||||
@ -26,8 +26,8 @@ format_template_rows_between_delimiter = ';\n'";
|
|||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM template1 ORDER BY n FORMAT CSV";
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM template1 ORDER BY n FORMAT CSV";
|
||||||
|
|
||||||
echo "==== parse json (sophisticated template) ===="
|
echo "==== parse json (sophisticated template) ===="
|
||||||
echo -ne '{${:}"meta"${:}:${:}[${:}{${:}"name"${:}:${:}"s1"${:},${:}"type"${:}:${:}"String"${:}}${:},${:}{${:}"name"${:}:${:}"s2"${:},${:}"type"${:}:${:}"String"${:}}${:},${:}{${:}"name"${:}:${:}"s3"${:},${:}"type"${:}:${:}"String"${:}}${:},${:}{${:}"name"${:}:${:}"s4"${:},${:}"type"${:}:${:}"String"${:}}${:},${:}{${:}"name"${:}:${:}"n"${:},${:}"type"${:}:${:}"UInt64"${:}}${:},${:}{${:}"name"${:}:${:}"d"${:},${:}"type"${:}:${:}"Date"${:}}${:}]${:},${:}"data"${:}:${:}[${data}]${:},${:}"rows"${:}:${:}${:CSV}${:},${:}"statistics"${:}:${:}{${:}"elapsed"${:}:${:}${:CSV}${:},${:}"rows_read"${:}:${:}${:CSV}${:},${:}"bytes_read"${:}:${:}${:CSV}${:}}${:}}' > $CURDIR/00938_template_input_format_resultset.tmp
|
echo -ne '{${:}"meta"${:}:${:}[${:}{${:}"name"${:}:${:}"s1"${:},${:}"type"${:}:${:}"String"${:}}${:},${:}{${:}"name"${:}:${:}"s2"${:},${:}"type"${:}:${:}"String"${:}}${:},${:}{${:}"name"${:}:${:}"s3"${:},${:}"type"${:}:${:}"String"${:}}${:},${:}{${:}"name"${:}:${:}"s4"${:},${:}"type"${:}:${:}"String"${:}}${:},${:}{${:}"name"${:}:${:}"n"${:},${:}"type"${:}:${:}"UInt64"${:}}${:},${:}{${:}"name"${:}:${:}"d"${:},${:}"type"${:}:${:}"Date"${:}}${:}]${:},${:}"data"${:}:${:}[${data}]${:},${:}"rows"${:}:${:}${:CSV}${:},${:}"statistics"${:}:${:}{${:}"elapsed"${:}:${:}${:CSV}${:},${:}"rows_read"${:}:${:}${:CSV}${:},${:}"bytes_read"${:}:${:}${:CSV}${:}}${:}}' > "$CURDIR"/00938_template_input_format_resultset.tmp
|
||||||
echo -ne '{${:}"s1"${:}:${:}${s1:JSON}${:},${:}"s2"${:}:${:}${s2:JSON}${:},${:}"s3"${:}:${:}${s3:JSON}${:},${:}"s4"${:}:${:}${s4:JSON}${:},${:}"n"${:}:${:}${n:JSON}${:},${:}"d"${:}:${:}${d:JSON}${:}${:}}' > $CURDIR/00938_template_input_format_row.tmp
|
echo -ne '{${:}"s1"${:}:${:}${s1:JSON}${:},${:}"s2"${:}:${:}${s2:JSON}${:},${:}"s3"${:}:${:}${s3:JSON}${:},${:}"s4"${:}:${:}${s4:JSON}${:},${:}"n"${:}:${:}${n:JSON}${:},${:}"d"${:}:${:}${d:JSON}${:}${:}}' > "$CURDIR"/00938_template_input_format_row.tmp
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM template1 ORDER BY n FORMAT JSON" | $CLICKHOUSE_CLIENT --query="INSERT INTO template2 FORMAT TemplateIgnoreSpaces SETTINGS \
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM template1 ORDER BY n FORMAT JSON" | $CLICKHOUSE_CLIENT --query="INSERT INTO template2 FORMAT TemplateIgnoreSpaces SETTINGS \
|
||||||
format_template_resultset = '$CURDIR/00938_template_input_format_resultset.tmp', \
|
format_template_resultset = '$CURDIR/00938_template_input_format_resultset.tmp', \
|
||||||
@ -39,8 +39,8 @@ $CLICKHOUSE_CLIENT --query="TRUNCATE TABLE template2";
|
|||||||
|
|
||||||
echo "==== parse json ===="
|
echo "==== parse json ===="
|
||||||
|
|
||||||
echo -ne '{${:}"meta"${:}:${:JSON},${:}"data"${:}:${:}[${data}]${:},${:}"rows"${:}:${:JSON},${:}"statistics"${:}:${:JSON}${:}}' > $CURDIR/00938_template_input_format_resultset.tmp
|
echo -ne '{${:}"meta"${:}:${:JSON},${:}"data"${:}:${:}[${data}]${:},${:}"rows"${:}:${:JSON},${:}"statistics"${:}:${:JSON}${:}}' > "$CURDIR"/00938_template_input_format_resultset.tmp
|
||||||
echo -ne '{${:}"s1"${:}:${:}${s3:JSON}${:},${:}"s2"${:}:${:}${:JSON}${:},${:}"s3"${:}:${:}${s1:JSON}${:},${:}"s4"${:}:${:}${:JSON}${:},${:}"n"${:}:${:}${n:JSON}${:},${:}"d"${:}:${:}${d:JSON}${:}${:}}' > $CURDIR/00938_template_input_format_row.tmp
|
echo -ne '{${:}"s1"${:}:${:}${s3:JSON}${:},${:}"s2"${:}:${:}${:JSON}${:},${:}"s3"${:}:${:}${s1:JSON}${:},${:}"s4"${:}:${:}${:JSON}${:},${:}"n"${:}:${:}${n:JSON}${:},${:}"d"${:}:${:}${d:JSON}${:}${:}}' > "$CURDIR"/00938_template_input_format_row.tmp
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM template1 ORDER BY n FORMAT JSON" | $CLICKHOUSE_CLIENT --query="INSERT INTO template2 FORMAT TemplateIgnoreSpaces SETTINGS \
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM template1 ORDER BY n FORMAT JSON" | $CLICKHOUSE_CLIENT --query="INSERT INTO template2 FORMAT TemplateIgnoreSpaces SETTINGS \
|
||||||
format_template_resultset = '$CURDIR/00938_template_input_format_resultset.tmp', \
|
format_template_resultset = '$CURDIR/00938_template_input_format_resultset.tmp', \
|
||||||
format_template_row = '$CURDIR/00938_template_input_format_row.tmp', \
|
format_template_row = '$CURDIR/00938_template_input_format_row.tmp', \
|
||||||
@ -50,4 +50,4 @@ $CLICKHOUSE_CLIENT --query="SELECT * FROM template2 ORDER BY n FORMAT CSV";
|
|||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="DROP TABLE template1";
|
$CLICKHOUSE_CLIENT --query="DROP TABLE template1";
|
||||||
$CLICKHOUSE_CLIENT --query="DROP TABLE template2";
|
$CLICKHOUSE_CLIENT --query="DROP TABLE template2";
|
||||||
rm $CURDIR/00938_template_input_format_resultset.tmp $CURDIR/00938_template_input_format_row.tmp
|
rm "$CURDIR"/00938_template_input_format_resultset.tmp $CURDIR/00938_template_input_format_row.tmp
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS minmax_idx;"
|
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS minmax_idx;"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS minmax_idx;"
|
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS minmax_idx;"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS indices_mutaions1;"
|
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS indices_mutaions1;"
|
||||||
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS indices_mutaions2;"
|
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS indices_mutaions2;"
|
||||||
|
@ -5,4 +5,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
|
|
||||||
# We should have correct env vars from shell_config.sh to run this test
|
# We should have correct env vars from shell_config.sh to run this test
|
||||||
|
|
||||||
python $CURDIR/00990_hasToken.python | ${CLICKHOUSE_CLIENT} --max_query_size 1048576 -nm
|
python "$CURDIR"/00990_hasToken.python | ${CLICKHOUSE_CLIENT} --max_query_size 1048576 -nm
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS table_with_empty_part"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS table_with_empty_part"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS json_test"
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS json_test"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
# that test is failing on versions <= 19.11.12
|
# that test is failing on versions <= 19.11.12
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
. $CURDIR/mergetree_mutations.lib
|
. "$CURDIR"/mergetree_mutations.lib
|
||||||
|
|
||||||
function wait_mutation_to_start()
|
function wait_mutation_to_start()
|
||||||
{
|
{
|
||||||
|
@ -10,11 +10,11 @@ $CLICKHOUSE_CLIENT --query="CREATE TABLE msgpack (uint8 UInt8, uint16 UInt16, ui
|
|||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="INSERT INTO msgpack VALUES (255, 65535, 4294967295, 100000000000, -128, -32768, -2147483648, -100000000000, 2.02, 10000.0000001, 'String', 18980, 1639872000, 1639872000000, [1,2,3,4,5]), (4, 1234, 3244467295, 500000000000, -1, -256, -14741221, -7000000000, 100.1, 14321.032141201, 'Another string', 20000, 1839882000, 1639872891123, [5,4,3,2,1]), (42, 42, 42, 42, 42, 42, 42, 42, 42.42, 42.42, '42', 42, 42, 42, [42])";
|
$CLICKHOUSE_CLIENT --query="INSERT INTO msgpack VALUES (255, 65535, 4294967295, 100000000000, -128, -32768, -2147483648, -100000000000, 2.02, 10000.0000001, 'String', 18980, 1639872000, 1639872000000, [1,2,3,4,5]), (4, 1234, 3244467295, 500000000000, -1, -256, -14741221, -7000000000, 100.1, 14321.032141201, 'Another string', 20000, 1839882000, 1639872891123, [5,4,3,2,1]), (42, 42, 42, 42, 42, 42, 42, 42, 42.42, 42.42, '42', 42, 42, 42, [42])";
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack FORMAT MsgPack" > $CURDIR/tmp_msgpac_test_all_types.msgpk;
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack FORMAT MsgPack" > "$CURDIR"/tmp_msgpac_test_all_types.msgpk;
|
||||||
|
|
||||||
cat $CURDIR/tmp_msgpac_test_all_types.msgpk | $CLICKHOUSE_CLIENT --query="INSERT INTO msgpack FORMAT MsgPack";
|
cat "$CURDIR"/tmp_msgpac_test_all_types.msgpk | $CLICKHOUSE_CLIENT --query="INSERT INTO msgpack FORMAT MsgPack";
|
||||||
|
|
||||||
rm $CURDIR/tmp_msgpac_test_all_types.msgpk
|
rm "$CURDIR"/tmp_msgpac_test_all_types.msgpk
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack";
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack";
|
||||||
|
|
||||||
@ -25,10 +25,10 @@ $CLICKHOUSE_CLIENT --query="CREATE TABLE msgpack (array1 Array(Array(UInt32)), a
|
|||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="INSERT INTO msgpack VALUES ([[1,2,3], [1001, 2002], [3167]], [[['one'], ['two']], [['three']],[['four'], ['five']]])";
|
$CLICKHOUSE_CLIENT --query="INSERT INTO msgpack VALUES ([[1,2,3], [1001, 2002], [3167]], [[['one'], ['two']], [['three']],[['four'], ['five']]])";
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack FORMAT MsgPack" > $CURDIR/tmp_msgpack_test_nested_arrays.msgpk;
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack FORMAT MsgPack" > "$CURDIR"/tmp_msgpack_test_nested_arrays.msgpk;
|
||||||
|
|
||||||
cat $CURDIR/tmp_msgpack_test_nested_arrays.msgpk | $CLICKHOUSE_CLIENT --query="INSERT INTO msgpack FORMAT MsgPack";
|
cat "$CURDIR"/tmp_msgpack_test_nested_arrays.msgpk | $CLICKHOUSE_CLIENT --query="INSERT INTO msgpack FORMAT MsgPack";
|
||||||
rm $CURDIR/tmp_msgpack_test_nested_arrays.msgpk;
|
rm "$CURDIR"/tmp_msgpack_test_nested_arrays.msgpk;
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack";
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack";
|
||||||
|
|
||||||
@ -39,14 +39,14 @@ $CLICKHOUSE_CLIENT --query="CREATE TABLE msgpack (array Array(UInt8)) ENGINE = M
|
|||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="INSERT INTO msgpack VALUES ([0, 1, 2, 3, 42, 253, 254, 255]), ([255, 254, 253, 42, 3, 2, 1, 0])";
|
$CLICKHOUSE_CLIENT --query="INSERT INTO msgpack VALUES ([0, 1, 2, 3, 42, 253, 254, 255]), ([255, 254, 253, 42, 3, 2, 1, 0])";
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack FORMAT MsgPack" > $CURDIR/tmp_msgpack_type_conversion.msgpk;
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack FORMAT MsgPack" > "$CURDIR"/tmp_msgpack_type_conversion.msgpk;
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="DROP TABLE msgpack";
|
$CLICKHOUSE_CLIENT --query="DROP TABLE msgpack";
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="CREATE TABLE msgpack (array Array(Int64)) ENGINE = Memory";
|
$CLICKHOUSE_CLIENT --query="CREATE TABLE msgpack (array Array(Int64)) ENGINE = Memory";
|
||||||
|
|
||||||
cat $CURDIR/tmp_msgpack_type_conversion.msgpk | $CLICKHOUSE_CLIENT --query="INSERT INTO msgpack FORMAT MsgPack";
|
cat "$CURDIR"/tmp_msgpack_type_conversion.msgpk | $CLICKHOUSE_CLIENT --query="INSERT INTO msgpack FORMAT MsgPack";
|
||||||
rm $CURDIR/tmp_msgpack_type_conversion.msgpk;
|
rm "$CURDIR"/tmp_msgpack_type_conversion.msgpk;
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack";
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM msgpack";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ $CLICKHOUSE_CLIENT --query="CREATE TABLE orc (uint8 UInt8, uint16 UInt16, uint32
|
|||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="INSERT INTO orc VALUES (255, 65535, 4294967295, 100000000000, -128, -32768, -2147483648, -100000000000, 2.02, 10000.0000001, 'String', '2020', 18980, 1639872000, 1.0001, 1.00000001, 100000.00000000000001, 1), (4, 1234, 3244467295, 500000000000, -1, -256, -14741221, -7000000000, 100.1, 14321.032141201, 'Another string', '2000', 20000, 1839882000, 34.1234, 123123.123123123, 123123123.123123123123123, NULL), (42, 42, 42, 42, 42, 42, 42, 42, 42.42, 42.42, '42', '4242', 42, 42, 42.42, 42.42424242, 424242.42424242424242, 42)";
|
$CLICKHOUSE_CLIENT --query="INSERT INTO orc VALUES (255, 65535, 4294967295, 100000000000, -128, -32768, -2147483648, -100000000000, 2.02, 10000.0000001, 'String', '2020', 18980, 1639872000, 1.0001, 1.00000001, 100000.00000000000001, 1), (4, 1234, 3244467295, 500000000000, -1, -256, -14741221, -7000000000, 100.1, 14321.032141201, 'Another string', '2000', 20000, 1839882000, 34.1234, 123123.123123123, 123123123.123123123123123, NULL), (42, 42, 42, 42, 42, 42, 42, 42, 42.42, 42.42, '42', '4242', 42, 42, 42.42, 42.42424242, 424242.42424242424242, 42)";
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM orc FORMAT ORC" > $CURDIR/tmp_orc_test_all_types.orc;
|
$CLICKHOUSE_CLIENT --query="SELECT * FROM orc FORMAT ORC" > "$CURDIR"/tmp_orc_test_all_types.orc;
|
||||||
|
|
||||||
cat "$CURDIR/tmp_orc_test_all_types.orc" | $CLICKHOUSE_CLIENT --query="INSERT INTO orc FORMAT ORC";
|
cat "$CURDIR/tmp_orc_test_all_types.orc" | $CLICKHOUSE_CLIENT --query="INSERT INTO orc FORMAT ORC";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user