Skip to content

Commit

Permalink
Add canonical result for tpcds s10 and s100 (#12001)
Browse files Browse the repository at this point in the history
  • Loading branch information
iddqdex authored Nov 26, 2024
1 parent decc7f1 commit 4d29f0f
Show file tree
Hide file tree
Showing 202 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ydb/library/workload/tpc_base/tpc_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <ydb/public/lib/scheme_types/scheme_type_id.h>

#include <library/cpp/resource/resource.h>
#include <library/cpp/streams/factory/open_by_signature/factory.h>
#include <util/stream/file.h>
#include <util/string/split.h>
#include <util/string/strip.h>
Expand Down Expand Up @@ -78,6 +79,10 @@ TQueryInfoList TTpcBaseWorkloadGenerator::GetWorkload(int type) {
const auto key = resourcePrefix + "s" + ToString(Params.GetScale()) + "_canonical/q" + ToString(&query - queries.data()) + ".result";
if (NResource::Has(key)) {
result.back().ExpectedResult = NResource::Find(key);
} else if (NResource::Has(key + ".gz")) {
const auto data = NResource::Find(key + ".gz");
auto input = OpenOwnedMaybeCompressedInput(MakeHolder<TStringInput>(data));
result.back().ExpectedResult = input->ReadAll();
}
}
}
Expand Down
1 change: 1 addition & 0 deletions ydb/library/workload/tpc_base/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RESOURCE(

PEERDIR(
library/cpp/resource
library/cpp/streams/factory/open_by_signature
ydb/library/accessor
ydb/library/workload/benchmark_base
ydb/public/lib/scheme_types
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added ydb/library/workload/tpcds/s10_canonical/q21.result.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions ydb/library/workload/tpcds/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ RESOURCE(
ALL_RESOURCE_FILES_FROM_DIRS(
PREFIX tpcds/
s1_canonical
s10_canonical
s100_canonical
)

PEERDIR(
Expand Down
2 changes: 2 additions & 0 deletions ydb/tests/olap/load/test_tpcds.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class TestTpcds1(TpcdsSuiteBase):

class TestTpcds10(TpcdsSuiteBase):
scale: int = 10
check_canonical: bool = True
timeout = max(TpcdsSuiteBase.timeout, 300.)
tables_size: dict[str, int] = {
'call_center': 24,
Expand All @@ -96,6 +97,7 @@ class TestTpcds10(TpcdsSuiteBase):

class TestTpcds100(TpcdsSuiteBase):
scale: int = 100
check_canonical: bool = True
iterations: int = 2
timeout = max(TpcdsSuiteBase.timeout, 3600.)
query_settings = {
Expand Down

0 comments on commit 4d29f0f

Please sign in to comment.