summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorОлег <[email protected]>2026-07-21 21:38:35 +0300
committerGitHub <[email protected]>2026-07-21 18:38:35 +0000
commit6b22aae9ae445ff56cb2abed0743aed7caf7d6f6 (patch)
tree77baebde8951a64ef3c3ffa3f6d14db2bb66087b
parente92c972d126bf8c5287f1b6157f514ef0467683d (diff)
Make query for calc table size lighter (#47377)
Co-authored-by: Oleg Geller <[email protected]>
-rw-r--r--ydb/tests/olap/scenario/helpers/scenario_tests_helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/tests/olap/scenario/helpers/scenario_tests_helper.py b/ydb/tests/olap/scenario/helpers/scenario_tests_helper.py
index 66817523528..95985bb74e8 100644
--- a/ydb/tests/olap/scenario/helpers/scenario_tests_helper.py
+++ b/ydb/tests/olap/scenario/helpers/scenario_tests_helper.py
@@ -773,7 +773,7 @@ class ScenarioTestHelper:
def get_volumes_columns(self, table_name: str, name_column: str) -> tuple[int, int]:
path = table_name if table_name.startswith('/') else self.get_full_path(table_name)
- query = f'''SELECT * FROM `{path}/.sys/primary_index_stats` WHERE Activity == 1'''
+ query = f'''SELECT SUM(RawBytes) AS RawBytes, SUM(BlobRangeSize) AS BlobRangeSize FROM `{path}/.sys/primary_index_stats` WHERE Activity == 1'''
if (len(name_column)):
query += f' AND EntityName = \"{name_column}\"'
result_sets = self.execute_query(query)