forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add function tests for tpcds and clickbench (ydb-platform#13461)
- Loading branch information
Showing
9 changed files
with
108 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import ydb.tests.olap.load.lib.tpcds as tpcds | ||
from ydb.tests.functional.tpc.lib.conftest import FunctionalTestBase | ||
|
||
|
||
class TestTpcdsS1(tpcds.TestTpcds1, FunctionalTestBase): | ||
iterations: int = 1 | ||
|
||
@classmethod | ||
def setup_class(cls) -> None: | ||
cls.setup_cluster() | ||
cls.run_cli(['workload', 'tpcds', '-p', 'olap_yatests/tpcds/s1', 'init', '--store=column']) | ||
cls.run_cli(['workload', 'tpcds', '-p', 'olap_yatests/tpcds/s1', 'import', 'generator', '--scale=1']) | ||
tpcds.TestTpcds1.setup_class() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
PY3TEST() | ||
ENV(YDB_HARD_MEMORY_LIMIT_BYTES="107374182400") | ||
|
||
TEST_SRCS( | ||
test_tpcds.py | ||
) | ||
|
||
SIZE(LARGE) | ||
TAG(ya:fat) | ||
|
||
|
||
REQUIREMENTS(ram:16) | ||
|
||
ENV(YDB_ENABLE_COLUMN_TABLES="true") | ||
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd") | ||
ENV(NO_KUBER_LOGS="yes") | ||
|
||
PEERDIR( | ||
ydb/tests/functional/tpc/lib | ||
) | ||
|
||
DEPENDS( | ||
ydb/apps/ydb | ||
ydb/apps/ydbd | ||
) | ||
|
||
FORK_TEST_FILES() | ||
|
||
END() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
PY3_LIBRARY() | ||
|
||
PY_SRCS ( | ||
conftest.py | ||
) | ||
|
||
PEERDIR( | ||
ydb/tests/library | ||
ydb/tests/olap/load/lib | ||
) | ||
|
||
END() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os | ||
import ydb.tests.olap.load.lib.clickbench as clickbench | ||
import yatest.common | ||
from ydb.tests.functional.tpc.lib.conftest import FunctionalTestBase | ||
|
||
|
||
class TestClickbench(clickbench.TestClickbench, FunctionalTestBase): | ||
iterations: int = 1 | ||
|
||
@classmethod | ||
def setup_class(cls) -> None: | ||
cls.setup_cluster() | ||
cls.run_cli(['workload', 'clickbench', '-p', 'olap_yatests/clickbench/hits', 'init', '--store=column']) | ||
cls.run_cli(['workload', 'clickbench', '-p', 'olap_yatests/clickbench/hits', 'import', 'files', '--input', yatest.common.source_path("ydb/tests/functional/clickbench/data/hits.csv")]) | ||
os.environ['NO_VERIFY_DATA_CLICKBENCH'] = '1' | ||
clickbench.TestClickbench.setup_class() |
2 changes: 1 addition & 1 deletion
2
ydb/tests/functional/tpc/test_tpch.py → ydb/tests/functional/tpc/medium/test_tpch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
PY3TEST() | ||
ENV(YDB_HARD_MEMORY_LIMIT_BYTES="107374182400") | ||
|
||
TEST_SRCS( | ||
test_clickbench.py | ||
test_tpch.py | ||
) | ||
|
||
SIZE(MEDIUM) | ||
|
||
REQUIREMENTS(ram:16) | ||
|
||
ENV(YDB_ENABLE_COLUMN_TABLES="true") | ||
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd") | ||
ENV(NO_KUBER_LOGS="yes") | ||
|
||
PEERDIR( | ||
ydb/tests/functional/tpc/lib | ||
) | ||
|
||
DEPENDS( | ||
ydb/apps/ydb | ||
ydb/apps/ydbd | ||
) | ||
|
||
DATA( | ||
arcadia/ydb/tests/functional/clickbench/data/hits.csv | ||
) | ||
|
||
FORK_TEST_FILES() | ||
|
||
END() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,5 @@ | ||
IF (NOT SANITIZER_TYPE) | ||
|
||
PY3TEST() | ||
ENV(YDB_HARD_MEMORY_LIMIT_BYTES="107374182400") | ||
|
||
PY_SRCS( | ||
conftest.py | ||
RECURSE( | ||
large | ||
lib | ||
medium | ||
) | ||
|
||
TEST_SRCS( | ||
test_tpch.py | ||
) | ||
|
||
SIZE(MEDIUM) | ||
|
||
REQUIREMENTS(ram:16) | ||
|
||
ENV(YDB_ENABLE_COLUMN_TABLES="true") | ||
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd") | ||
ENV(NO_KUBER_LOGS="yes") | ||
|
||
PEERDIR( | ||
ydb/tests/library | ||
ydb/tests/olap/load/lib | ||
) | ||
|
||
DEPENDS( | ||
ydb/apps/ydb | ||
ydb/apps/ydbd | ||
) | ||
|
||
FORK_TEST_FILES() | ||
|
||
END() | ||
|
||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters