Fix patition test.

This commit is contained in:
Vasily Okunev 2017-07-13 11:03:32 +03:00
parent d61ad166e9
commit 13c8fe2400

View File

@ -13,14 +13,14 @@ $chl "INSERT INTO test.partition_428 (p, k) VALUES(toDate(31), 1)"
$chl "INSERT INTO test.partition_428 (p, k) VALUES(toDate(1), 2)" $chl "INSERT INTO test.partition_428 (p, k) VALUES(toDate(1), 2)"
for part in `$chl "SELECT name FROM system.parts WHERE database='test' AND table='partition_428'"`; do for part in `$chl "SELECT name FROM system.parts WHERE database='test' AND table='partition_428'"`; do
cat $ch_dir/data/test/partition_428/$part/columns.txt | wc -l # 2 header lines + 3 columns sudo cat $ch_dir/data/test/partition_428/$part/columns.txt | wc -l # 2 header lines + 3 columns
done done
$chl "ALTER TABLE test.partition_428 DETACH PARTITION 197001" $chl "ALTER TABLE test.partition_428 DETACH PARTITION 197001"
$chl "ALTER TABLE test.partition_428 ATTACH PARTITION 197001" $chl "ALTER TABLE test.partition_428 ATTACH PARTITION 197001"
for part in `$chl "SELECT name FROM system.parts WHERE database='test' AND table='partition_428'"`; do for part in `$chl "SELECT name FROM system.parts WHERE database='test' AND table='partition_428'"`; do
cat $ch_dir/data/test/partition_428/$part/columns.txt | wc -l # 2 header lines + 3 columns sudo cat $ch_dir/data/test/partition_428/$part/columns.txt | wc -l # 2 header lines + 3 columns
done done
$chl "ALTER TABLE test.partition_428 MODIFY COLUMN v1 Int8" $chl "ALTER TABLE test.partition_428 MODIFY COLUMN v1 Int8"