ClickHouse/tests/queries
Azat Khuzhin 27d4fbd13b Compare Block itself for distributed async INSERT batches
INSERT into Distributed with insert_distributed_sync=1 stores the
distributed batches on the disk for sending in background.

But types may be a little bit different for the Distributed and it's
underlying table, so the initiator need to know whether conversion is
required or not.

Before this patch those on disk distributed batches contains header,
which includes dumpStructure() for the block in that batch, however it
checks not only names and types and plus dumpStructure() is a debug
method.

So instead of storing string representation for the block header we
should store empty block in the file header (note, that we cannot store
the empty block not in header, since this will require reading all
blocks from file, due to some trickery of the readers interface).

Note, that this patch also contains tiny refactoring:
- s/header/distributed_header/

v1: dumpNamesAndTypes()
v2: dump empty block into the batch itself
v3: move empty block into the header
2021-04-06 10:05:21 +03:00
..
0_stateless Compare Block itself for distributed async INSERT batches 2021-04-06 10:05:21 +03:00
1_stateful Lower scale of a test 2021-04-01 18:27:24 +03:00
bugs Moved "max_result_rows" test to bugs 2021-01-04 17:52:23 +03:00
__init__.py Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
.gitignore Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
conftest.py Update Pytest check (#18972) 2021-02-10 21:09:13 +03:00
query_test.py Merge pull request #21696 from azat/stress-tests-fixes 2021-03-14 12:31:57 +03:00
server.py Update Pytest check (#18972) 2021-02-10 21:09:13 +03:00
shell_config.sh Add $CLICKHOUSE_TEST_ZOOKEEPER_PREFIX (for *.sh stateless tests) 2021-03-16 07:22:32 +03:00
skip_list.json Merge pull request #22479 from kitaisreal/clickhouse-dictionary-source-loop-fix 2021-04-04 13:29:17 +03:00