From db30080b21c9e653f17031e9946c8a6478afb2d6 Mon Sep 17 00:00:00 2001 From: strtgbb <146047128+strtgbb@users.noreply.github.com> Date: Wed, 11 Feb 2026 11:07:02 -0500 Subject: [PATCH 1/8] increase max time for hits_s3 further to avoid tsan timeout --- ci/jobs/scripts/clickhouse_proc.py | 2 +- tests/config/users.d/limits.yaml | 2 +- tests/docker_scripts/stress_runner.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/jobs/scripts/clickhouse_proc.py b/ci/jobs/scripts/clickhouse_proc.py index acd8a1c0b8ae..77003c576292 100644 --- a/ci/jobs/scripts/clickhouse_proc.py +++ b/ci/jobs/scripts/clickhouse_proc.py @@ -634,7 +634,7 @@ def prepare_stateful_data(self, with_s3_storage, is_db_replicated): fi clickhouse-client --query "CREATE TABLE test.hits_s3 (WatchID UInt64, JavaEnable UInt8, Title String, GoodEvent Int16, EventTime DateTime, EventDate Date, CounterID UInt32, ClientIP UInt32, ClientIP6 FixedString(16), RegionID UInt32, UserID UInt64, CounterClass Int8, OS UInt8, UserAgent UInt8, URL String, Referer String, URLDomain String, RefererDomain String, Refresh UInt8, IsRobot UInt8, RefererCategories Array(UInt16), URLCategories Array(UInt16), URLRegions Array(UInt32), RefererRegions Array(UInt32), ResolutionWidth UInt16, ResolutionHeight UInt16, ResolutionDepth UInt8, FlashMajor UInt8, FlashMinor UInt8, FlashMinor2 String, NetMajor UInt8, NetMinor UInt8, UserAgentMajor UInt16, UserAgentMinor FixedString(2), CookieEnable UInt8, JavascriptEnable UInt8, IsMobile UInt8, MobilePhone UInt8, MobilePhoneModel String, Params String, IPNetworkID UInt32, TraficSourceID Int8, SearchEngineID UInt16, SearchPhrase String, AdvEngineID UInt8, IsArtifical UInt8, WindowClientWidth UInt16, WindowClientHeight UInt16, ClientTimeZone Int16, ClientEventTime DateTime, SilverlightVersion1 UInt8, SilverlightVersion2 UInt8, SilverlightVersion3 UInt32, SilverlightVersion4 UInt16, PageCharset String, CodeVersion UInt32, IsLink UInt8, IsDownload UInt8, IsNotBounce UInt8, FUniqID UInt64, HID UInt32, IsOldCounter UInt8, IsEvent UInt8, IsParameter UInt8, DontCountHits UInt8, WithHash UInt8, HitColor FixedString(1), UTCEventTime DateTime, Age UInt8, Sex UInt8, Income UInt8, Interests UInt16, Robotness UInt8, GeneralInterests Array(UInt16), RemoteIP UInt32, RemoteIP6 FixedString(16), WindowName Int32, OpenerName Int32, HistoryLength Int16, BrowserLanguage FixedString(2), BrowserCountry FixedString(2), SocialNetwork String, SocialAction String, HTTPError UInt16, SendTiming Int32, DNSTiming Int32, ConnectTiming Int32, ResponseStartTiming Int32, ResponseEndTiming Int32, FetchTiming Int32, RedirectTiming Int32, DOMInteractiveTiming Int32, DOMContentLoadedTiming Int32, DOMCompleteTiming Int32, LoadEventStartTiming Int32, LoadEventEndTiming Int32, NSToDOMContentLoadedTiming Int32, FirstPaintTiming Int32, RedirectCount Int8, SocialSourceNetworkID UInt8, SocialSourcePage String, ParamPrice Int64, ParamOrderID String, ParamCurrency FixedString(3), ParamCurrencyID UInt16, GoalsReached Array(UInt32), OpenstatServiceName String, OpenstatCampaignID String, OpenstatAdID String, OpenstatSourceID String, UTMSource String, UTMMedium String, UTMCampaign String, UTMContent String, UTMTerm String, FromTag String, HasGCLID UInt8, RefererHash UInt64, URLHash UInt64, CLID UInt32, YCLID UInt64, ShareService String, ShareURL String, ShareTitle String, ParsedParams Nested(Key1 String, Key2 String, Key3 String, Key4 String, Key5 String, ValueDouble Float64), IslandID FixedString(16), RequestNum UInt32, RequestTry UInt8) ENGINE = MergeTree() PARTITION BY toYYYYMM(EventDate) ORDER BY (CounterID, EventDate, intHash32(UserID)) SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='s3_cache'" # AWS S3 is very inefficient, so increase memory even further: -clickhouse-client --max_execution_time 900 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0, write_through_distributed_cache=0, max_insert_threads=16" +clickhouse-client --max_execution_time 1000 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0, write_through_distributed_cache=0, max_insert_threads=16" clickhouse-client --query "SHOW TABLES FROM test" clickhouse-client --query "SELECT count() FROM test.hits" diff --git a/tests/config/users.d/limits.yaml b/tests/config/users.d/limits.yaml index 0f70a332cb03..bf9a3821a81a 100644 --- a/tests/config/users.d/limits.yaml +++ b/tests/config/users.d/limits.yaml @@ -23,7 +23,7 @@ profiles: max_execution_speed: 100G max_execution_speed_bytes: 10T timeout_before_checking_execution_speed: 300 - max_estimated_execution_time: 600 + max_estimated_execution_time: 1000 max_columns_to_read: 20K max_temporary_columns: 20K max_temporary_non_const_columns: 20K diff --git a/tests/docker_scripts/stress_runner.sh b/tests/docker_scripts/stress_runner.sh index 4f8e22e9986a..cce14bcc9efe 100755 --- a/tests/docker_scripts/stress_runner.sh +++ b/tests/docker_scripts/stress_runner.sh @@ -213,7 +213,7 @@ clickhouse-client --query "CREATE TABLE test.visits (CounterID UInt32, StartDat ENGINE = CollapsingMergeTree(Sign) PARTITION BY toYYYYMM(StartDate) ORDER BY (CounterID, StartDate, intHash32(UserID), VisitID) SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='$TEMP_POLICY'" -clickhouse-client --max_execution_time 600 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16" +clickhouse-client --max_execution_time 1000 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16" clickhouse-client --max_execution_time 600 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16" clickhouse-client --max_execution_time 600 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.visits SELECT * FROM datasets.visits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16" From 70547798acb09908a8adaabef7d14ece5b78076d Mon Sep 17 00:00:00 2001 From: strtgbb <146047128+strtgbb@users.noreply.github.com> Date: Wed, 11 Feb 2026 11:26:16 -0500 Subject: [PATCH 2/8] increase default memory limit for stateless tests --- ci/jobs/functional_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/jobs/functional_tests.py b/ci/jobs/functional_tests.py index 375fff69e0b9..00ab7baaccd4 100644 --- a/ci/jobs/functional_tests.py +++ b/ci/jobs/functional_tests.py @@ -92,7 +92,7 @@ def run_tests( if "--no-zookeeper" not in extra_args: extra_args += " --zookeeper" # Remove --report-logs-stats, it hides sanitizer errors in def reportLogStats(args): clickhouse_execute(args, "SYSTEM FLUSH LOGS") - command = f"clickhouse-test --testname --check-zookeeper-session --hung-check --memory-limit {5*2**30} --trace \ + command = f"clickhouse-test --testname --check-zookeeper-session --hung-check --memory-limit {10*2**30} --trace \ --capture-client-stacktrace --queries ./tests/queries --test-runs {rerun_count} \ {extra_args} \ --queries ./tests/queries {('--order=random' if random_order else '')} -- {' '.join(tests) if tests else ''} | ts '%Y-%m-%d %H:%M:%S' \ From 4083ad6b57bcd79768203f50b56757a8e329230a Mon Sep 17 00:00:00 2001 From: strtgbb <146047128+strtgbb@users.noreply.github.com> Date: Wed, 11 Feb 2026 11:28:37 -0500 Subject: [PATCH 3/8] cross out 03206_no_exceptions_clickhouse_local and 02815_no_throw_in_simple_queries --- tests/broken_tests.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/broken_tests.yaml b/tests/broken_tests.yaml index 2723601dcb1b..8cdd84bd50cf 100644 --- a/tests/broken_tests.yaml +++ b/tests/broken_tests.yaml @@ -136,6 +136,12 @@ - name: test_storage_s3_queue/test_4.py::test_list_and_delete_race reason: 'KNOWN - Unstable upstream' message: AssertionError +- name: 03206_no_exceptions_clickhouse_local + reason: 'KNOWN - Unstable upstream' + message: 'return code: 134' +- name: 02815_no_throw_in_simple_queries + reason: 'KNOWN - Unstable upstream' + message: 'spawn id exp5 not open' - name: test_storage_s3_queue/test_5.py::test_failed_startup reason: 'INVESTIGATE: Unstable on tsan' check_types: From 4e94c89db063ff3ac9afbe2e6be56119f44808b8 Mon Sep 17 00:00:00 2001 From: strtgbb <146047128+strtgbb@users.noreply.github.com> Date: Wed, 11 Feb 2026 14:10:49 -0500 Subject: [PATCH 4/8] cross out hetzner arm specific fails --- tests/broken_tests.yaml | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/tests/broken_tests.yaml b/tests/broken_tests.yaml index 8cdd84bd50cf..859f6e601831 100644 --- a/tests/broken_tests.yaml +++ b/tests/broken_tests.yaml @@ -84,6 +84,40 @@ - name: 03644_object_storage_correlated_subqueries reason: KNOWN - Unstable in upstream 25.8. message: Timeout! Processes left in process group +- name: 03206_no_exceptions_clickhouse_local + reason: 'KNOWN - Unstable upstream' + message: 'return code: 134' +- name: 02815_no_throw_in_simple_queries + reason: 'KNOWN - Unstable upstream' + message: 'spawn id exp5 not open' +- name: 03367_l2_distance_transposed_1 + reason: INVESTIGATE - Float precision issue on Hetzner ARM + check_types: + - arm_binary +- name: 03369_l2_distance_transposed_variadic + reason: INVESTIGATE - Float precision issue on Hetzner ARM + check_types: + - arm_binary +- name: 03367_l2_distance_transposed_2 + reason: INVESTIGATE - Float precision issue on Hetzner ARM + check_types: + - arm_binary +- name: 03377_qbit_parameters + reason: INVESTIGATE - Float precision issue on Hetzner ARM + check_types: + - arm_binary +- name: 03370_l2_distance_transposed_negative + reason: INVESTIGATE - Float precision issue on Hetzner ARM + check_types: + - arm_binary +- name: 03375_l2_distance_transposed_partial_reads_pass + reason: INVESTIGATE - Float precision issue on Hetzner ARM + check_types: + - arm_binary +- name: 03378_cosine_distance_transposed + reason: INVESTIGATE - Float precision issue on Hetzner ARM + check_types: + - arm_binary - name: test_storage_s3_queue/test_5.py::test_migration[1-s3queue_] reason: KNOWN - Sometimes fails due to test order message: 'Failed: Timeout >900.0s' @@ -136,12 +170,6 @@ - name: test_storage_s3_queue/test_4.py::test_list_and_delete_race reason: 'KNOWN - Unstable upstream' message: AssertionError -- name: 03206_no_exceptions_clickhouse_local - reason: 'KNOWN - Unstable upstream' - message: 'return code: 134' -- name: 02815_no_throw_in_simple_queries - reason: 'KNOWN - Unstable upstream' - message: 'spawn id exp5 not open' - name: test_storage_s3_queue/test_5.py::test_failed_startup reason: 'INVESTIGATE: Unstable on tsan' check_types: From 499acba44c6802a95a3ddab7a5bec6418d1f0faf Mon Sep 17 00:00:00 2001 From: strtgbb <146047128+strtgbb@users.noreply.github.com> Date: Wed, 11 Feb 2026 15:24:21 -0500 Subject: [PATCH 5/8] arm flag is different now for stateless tests --- tests/broken_tests.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/broken_tests.yaml b/tests/broken_tests.yaml index 859f6e601831..f39adcba8781 100644 --- a/tests/broken_tests.yaml +++ b/tests/broken_tests.yaml @@ -93,31 +93,31 @@ - name: 03367_l2_distance_transposed_1 reason: INVESTIGATE - Float precision issue on Hetzner ARM check_types: - - arm_binary + - cpu-aarch64 - name: 03369_l2_distance_transposed_variadic reason: INVESTIGATE - Float precision issue on Hetzner ARM check_types: - - arm_binary + - cpu-aarch64 - name: 03367_l2_distance_transposed_2 reason: INVESTIGATE - Float precision issue on Hetzner ARM check_types: - - arm_binary + - cpu-aarch64 - name: 03377_qbit_parameters reason: INVESTIGATE - Float precision issue on Hetzner ARM check_types: - - arm_binary + - cpu-aarch64 - name: 03370_l2_distance_transposed_negative reason: INVESTIGATE - Float precision issue on Hetzner ARM check_types: - - arm_binary + - cpu-aarch64 - name: 03375_l2_distance_transposed_partial_reads_pass reason: INVESTIGATE - Float precision issue on Hetzner ARM check_types: - - arm_binary + - cpu-aarch64 - name: 03378_cosine_distance_transposed reason: INVESTIGATE - Float precision issue on Hetzner ARM check_types: - - arm_binary + - cpu-aarch64 - name: test_storage_s3_queue/test_5.py::test_migration[1-s3queue_] reason: KNOWN - Sometimes fails due to test order message: 'Failed: Timeout >900.0s' From 0dc87288d56e7f8b8d7529013a9b0eb151f9bd89 Mon Sep 17 00:00:00 2001 From: strtgbb <146047128+strtgbb@users.noreply.github.com> Date: Thu, 12 Feb 2026 09:50:03 -0500 Subject: [PATCH 6/8] fix crossing out templated statelss tests --- tests/clickhouse-test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/clickhouse-test b/tests/clickhouse-test index ee12868487c3..7fdf0c8962af 100755 --- a/tests/clickhouse-test +++ b/tests/clickhouse-test @@ -146,6 +146,8 @@ def get_broken_tests_rules(broken_tests_file_path: str) -> dict: def test_is_known_fail(test_name, test_logs, build_flags, broken_tests_file_path): matching_rules = [] + test_name = test_name.replace(".gen", "") # Remove suffix from templated tests + def matches_substring(substring, log, is_regex): if log is None: return False From 70b7057ed210712e638b7225920b0fd58ef9d19a Mon Sep 17 00:00:00 2001 From: strtgbb <146047128+strtgbb@users.noreply.github.com> Date: Thu, 12 Feb 2026 12:36:00 -0500 Subject: [PATCH 7/8] update broken tests messages for new ARM failure --- tests/broken_tests.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/tests/broken_tests.yaml b/tests/broken_tests.yaml index f39adcba8781..c76d22e7f157 100644 --- a/tests/broken_tests.yaml +++ b/tests/broken_tests.yaml @@ -91,32 +91,39 @@ reason: 'KNOWN - Unstable upstream' message: 'spawn id exp5 not open' - name: 03367_l2_distance_transposed_1 - reason: INVESTIGATE - Float precision issue on Hetzner ARM + reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764 check_types: + - arm - cpu-aarch64 - name: 03369_l2_distance_transposed_variadic - reason: INVESTIGATE - Float precision issue on Hetzner ARM + reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764 check_types: + - arm - cpu-aarch64 - name: 03367_l2_distance_transposed_2 - reason: INVESTIGATE - Float precision issue on Hetzner ARM + reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764 check_types: + - arm - cpu-aarch64 - name: 03377_qbit_parameters - reason: INVESTIGATE - Float precision issue on Hetzner ARM + reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764 check_types: + - arm - cpu-aarch64 - name: 03370_l2_distance_transposed_negative - reason: INVESTIGATE - Float precision issue on Hetzner ARM + reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764 check_types: + - arm - cpu-aarch64 - name: 03375_l2_distance_transposed_partial_reads_pass - reason: INVESTIGATE - Float precision issue on Hetzner ARM + reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764 check_types: + - arm - cpu-aarch64 - name: 03378_cosine_distance_transposed - reason: INVESTIGATE - Float precision issue on Hetzner ARM + reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764 check_types: + - arm - cpu-aarch64 - name: test_storage_s3_queue/test_5.py::test_migration[1-s3queue_] reason: KNOWN - Sometimes fails due to test order From 1d613003d17360992433fe2d7ee64d3535b578d2 Mon Sep 17 00:00:00 2001 From: strtgbb <146047128+strtgbb@users.noreply.github.com> Date: Thu, 12 Feb 2026 12:37:54 -0500 Subject: [PATCH 8/8] increase test.hits insert time further to avoid tsan startup fail --- ci/jobs/scripts/clickhouse_proc.py | 6 +++--- tests/config/users.d/limits.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/jobs/scripts/clickhouse_proc.py b/ci/jobs/scripts/clickhouse_proc.py index 77003c576292..30a9b008da4e 100644 --- a/ci/jobs/scripts/clickhouse_proc.py +++ b/ci/jobs/scripts/clickhouse_proc.py @@ -624,8 +624,8 @@ def prepare_stateful_data(self, with_s3_storage, is_db_replicated): ENGINE = CollapsingMergeTree(Sign) PARTITION BY toYYYYMM(StartDate) ORDER BY (CounterID, StartDate, intHash32(UserID), VisitID) SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='s3_cache'" - clickhouse-client --max_execution_time 600 --max_memory_usage 25G --query "INSERT INTO test.hits SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16" - clickhouse-client --max_execution_time 600 --max_memory_usage 25G --query "INSERT INTO test.visits SELECT * FROM datasets.visits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16" + clickhouse-client --max_execution_time 1200 --max_memory_usage 25G --query "INSERT INTO test.hits SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16" + clickhouse-client --max_execution_time 1200 --max_memory_usage 25G --query "INSERT INTO test.visits SELECT * FROM datasets.visits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16" clickhouse-client --query "DROP TABLE datasets.visits_v1 SYNC" clickhouse-client --query "DROP TABLE datasets.hits_v1 SYNC" else @@ -634,7 +634,7 @@ def prepare_stateful_data(self, with_s3_storage, is_db_replicated): fi clickhouse-client --query "CREATE TABLE test.hits_s3 (WatchID UInt64, JavaEnable UInt8, Title String, GoodEvent Int16, EventTime DateTime, EventDate Date, CounterID UInt32, ClientIP UInt32, ClientIP6 FixedString(16), RegionID UInt32, UserID UInt64, CounterClass Int8, OS UInt8, UserAgent UInt8, URL String, Referer String, URLDomain String, RefererDomain String, Refresh UInt8, IsRobot UInt8, RefererCategories Array(UInt16), URLCategories Array(UInt16), URLRegions Array(UInt32), RefererRegions Array(UInt32), ResolutionWidth UInt16, ResolutionHeight UInt16, ResolutionDepth UInt8, FlashMajor UInt8, FlashMinor UInt8, FlashMinor2 String, NetMajor UInt8, NetMinor UInt8, UserAgentMajor UInt16, UserAgentMinor FixedString(2), CookieEnable UInt8, JavascriptEnable UInt8, IsMobile UInt8, MobilePhone UInt8, MobilePhoneModel String, Params String, IPNetworkID UInt32, TraficSourceID Int8, SearchEngineID UInt16, SearchPhrase String, AdvEngineID UInt8, IsArtifical UInt8, WindowClientWidth UInt16, WindowClientHeight UInt16, ClientTimeZone Int16, ClientEventTime DateTime, SilverlightVersion1 UInt8, SilverlightVersion2 UInt8, SilverlightVersion3 UInt32, SilverlightVersion4 UInt16, PageCharset String, CodeVersion UInt32, IsLink UInt8, IsDownload UInt8, IsNotBounce UInt8, FUniqID UInt64, HID UInt32, IsOldCounter UInt8, IsEvent UInt8, IsParameter UInt8, DontCountHits UInt8, WithHash UInt8, HitColor FixedString(1), UTCEventTime DateTime, Age UInt8, Sex UInt8, Income UInt8, Interests UInt16, Robotness UInt8, GeneralInterests Array(UInt16), RemoteIP UInt32, RemoteIP6 FixedString(16), WindowName Int32, OpenerName Int32, HistoryLength Int16, BrowserLanguage FixedString(2), BrowserCountry FixedString(2), SocialNetwork String, SocialAction String, HTTPError UInt16, SendTiming Int32, DNSTiming Int32, ConnectTiming Int32, ResponseStartTiming Int32, ResponseEndTiming Int32, FetchTiming Int32, RedirectTiming Int32, DOMInteractiveTiming Int32, DOMContentLoadedTiming Int32, DOMCompleteTiming Int32, LoadEventStartTiming Int32, LoadEventEndTiming Int32, NSToDOMContentLoadedTiming Int32, FirstPaintTiming Int32, RedirectCount Int8, SocialSourceNetworkID UInt8, SocialSourcePage String, ParamPrice Int64, ParamOrderID String, ParamCurrency FixedString(3), ParamCurrencyID UInt16, GoalsReached Array(UInt32), OpenstatServiceName String, OpenstatCampaignID String, OpenstatAdID String, OpenstatSourceID String, UTMSource String, UTMMedium String, UTMCampaign String, UTMContent String, UTMTerm String, FromTag String, HasGCLID UInt8, RefererHash UInt64, URLHash UInt64, CLID UInt32, YCLID UInt64, ShareService String, ShareURL String, ShareTitle String, ParsedParams Nested(Key1 String, Key2 String, Key3 String, Key4 String, Key5 String, ValueDouble Float64), IslandID FixedString(16), RequestNum UInt32, RequestTry UInt8) ENGINE = MergeTree() PARTITION BY toYYYYMM(EventDate) ORDER BY (CounterID, EventDate, intHash32(UserID)) SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='s3_cache'" # AWS S3 is very inefficient, so increase memory even further: -clickhouse-client --max_execution_time 1000 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0, write_through_distributed_cache=0, max_insert_threads=16" +clickhouse-client --max_execution_time 1200 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0, write_through_distributed_cache=0, max_insert_threads=16" clickhouse-client --query "SHOW TABLES FROM test" clickhouse-client --query "SELECT count() FROM test.hits" diff --git a/tests/config/users.d/limits.yaml b/tests/config/users.d/limits.yaml index bf9a3821a81a..c70c55fd6dc7 100644 --- a/tests/config/users.d/limits.yaml +++ b/tests/config/users.d/limits.yaml @@ -23,7 +23,7 @@ profiles: max_execution_speed: 100G max_execution_speed_bytes: 10T timeout_before_checking_execution_speed: 300 - max_estimated_execution_time: 1000 + max_estimated_execution_time: 1200 max_columns_to_read: 20K max_temporary_columns: 20K max_temporary_non_const_columns: 20K