mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-06 14:32:22 +00:00
0ab0f76737
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
103 lines
4.0 KiB
Plaintext
103 lines
4.0 KiB
Plaintext
flat
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_flat ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_flat ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_flat ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
flat/custom
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_flat_custom ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_flat_custom ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_flat_custom ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
hashed
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_hashed ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_hashed ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_hashed ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
hashed/custom
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
complex_key_hashed
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_complex_key_hashed ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_complex_key_hashed ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_complex_key_hashed ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
complex_key_hashed/custom
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_complex_key_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_complex_key_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) FORMAT Null;
|
|
SELECT key, value FROM dict_complex_key_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|