mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Fix patition test.
This commit is contained in:
parent
d61ad166e9
commit
13c8fe2400
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user