Skip to content

Commit ab77202

Browse files
Merge 5edd22d into a4e2878
2 parents a4e2878 + 5edd22d commit ab77202

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

ydb/core/tx/columnshard/test_helper/helper.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
#include <ydb/library/actors/core/log.h>
88
#include <ydb/core/wrappers/fake_storage_config.h>
99
#include <ydb/core/wrappers/fake_storage.h>
10+
#ifndef KIKIMR_DISABLE_S3_OPS
1011
#include <ydb/core/tx/columnshard/blobs_action/tier/storage.h>
12+
#endif
1113

1214
namespace NKikimr::NArrow::NTest {
1315

@@ -80,12 +82,13 @@ std::shared_ptr<NKikimr::NOlap::IBlobsStorageOperator> TTestStoragesManager::DoB
8082
return std::make_shared<NOlap::NBlobOperations::NBlobStorage::TOperator>(storageId, NActors::TActorId(), TabletInfo,
8183
1, SharedBlobsManager->GetStorageManagerGuarantee(TBase::DefaultStorageId));
8284
} else if (storageId == TBase::MemoryStorageId) {
85+
#ifndef KIKIMR_DISABLE_S3_OPS
8386
Singleton<NWrappers::NExternalStorage::TFakeExternalStorage>()->SetSecretKey("fakeSecret");
8487
return std::make_shared<NOlap::NBlobOperations::NTier::TOperator>(storageId, NActors::TActorId(), std::make_shared<NWrappers::NExternalStorage::TFakeExternalStorageConfig>("fakeBucket", "fakeSecret"),
8588
SharedBlobsManager->GetStorageManagerGuarantee(storageId));
86-
} else {
87-
return nullptr;
89+
#endif
8890
}
91+
return nullptr;
8992
}
9093

9194
}

ydb/core/tx/columnshard/test_helper/ya.make

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ PEERDIR(
55
contrib/libs/apache/arrow
66
ydb/library/actors/core
77
ydb/core/tx/columnshard/blobs_action/bs
8-
ydb/core/tx/columnshard/blobs_action/tier
98
ydb/core/tx/columnshard
109
ydb/core/wrappers
1110
)
@@ -16,6 +15,16 @@ SRCS(
1615
columnshard_ut_common.cpp
1716
)
1817

18+
IF (OS_WINDOWS)
19+
CFLAGS(
20+
-DKIKIMR_DISABLE_S3_OPS
21+
)
22+
ELSE()
23+
PEERDIR(
24+
ydb/core/tx/columnshard/blobs_action/tier
25+
)
26+
ENDIF()
27+
1928
YQL_LAST_ABI_VERSION()
2029

2130
END()

0 commit comments

Comments
 (0)