mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
fix tests
This commit is contained in:
parent
1628f50e51
commit
e1ab0ad383
@ -125,7 +125,7 @@ void MergeTreeDataPartCompact::loadIndexGranularity()
|
||||
|
||||
bool MergeTreeDataPartCompact::hasColumnFiles(const NameAndTypePair & column) const
|
||||
{
|
||||
if (!getColumnPosition(column.name))
|
||||
if (!getColumnPosition(column.getNameInStorage()))
|
||||
return false;
|
||||
|
||||
auto bin_checksum = checksums.files.find(DATA_FILE_NAME_WITH_EXTENSION);
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
|
||||
bool isStoredOnDisk() const override { return false; }
|
||||
bool isStoredOnRemoteDisk() const override { return false; }
|
||||
bool hasColumnFiles(const NameAndTypePair & column) const override { return !!getColumnPosition(column.name); }
|
||||
bool hasColumnFiles(const NameAndTypePair & column) const override { return !!getColumnPosition(column.getNameInStorage()); }
|
||||
String getFileNameForColumn(const NameAndTypePair & /* column */) const override { return ""; }
|
||||
void renameTo(const String & new_relative_path, bool remove_new_dir_if_exists) const override;
|
||||
void makeCloneInDetached(const String & prefix, const StorageMetadataPtr & metadata_snapshot) const override;
|
||||
|
@ -1,4 +1,4 @@
|
||||
83
|
||||
84
|
||||
1
|
||||
46
|
||||
1
|
||||
|
@ -1 +1 @@
|
||||
20000101_1_1_0 test_00961 21d49af89b4905a5d1c76d4f1b02e20e d816caf0abffc3f9aabdb4f92bcf7bfb da96ff1e527a8a1f908ddf2b1d0af239
|
||||
20000101_1_1_0 test_00961 b5fce9c4ef1ca42ce4ed027389c208d2 fc3b062b646cd23d4c23d7f5920f89ae da96ff1e527a8a1f908ddf2b1d0af239
|
||||
|
@ -100,6 +100,11 @@ all_2_2_0 u Default
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
======
|
||||
id Default
|
||||
s Sparse
|
||||
u Sparse
|
||||
======
|
||||
990 990
|
||||
980 980 980
|
||||
970 970
|
||||
|
@ -92,6 +92,14 @@ SYSTEM START MERGES t_sparse_full;
|
||||
|
||||
OPTIMIZE TABLE t_sparse_full FINAL;
|
||||
|
||||
SELECT '======';
|
||||
|
||||
SELECT column, serialization_kind
|
||||
FROM system.parts_columns WHERE table = 't_sparse_full' AND database = currentDatabase() AND active
|
||||
ORDER BY name, column;
|
||||
|
||||
SELECT '======';
|
||||
|
||||
SELECT id, u, s FROM t_sparse_full ORDER BY u DESC LIMIT 3;
|
||||
|
||||
DROP TABLE t_sparse_full;
|
||||
|
Loading…
Reference in New Issue
Block a user