Skip to content

Commit 1790c85

Browse files
committed
Fix build without s3 in fast test
1 parent 080c603 commit 1790c85

File tree

6 files changed

+2
-20
lines changed

6 files changed

+2
-20
lines changed

src/Storages/S3Queue/S3QueueSource.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "config.h"
22

3-
#if USE_AWS_S3
43
#include <Common/ProfileEvents.h>
54
#include <Common/CurrentMetrics.h>
65
#include <Common/ZooKeeper/ZooKeeper.h>
@@ -513,5 +512,3 @@ void StorageS3QueueSource::appendLogElement(
513512
}
514513

515514
}
516-
517-
#endif

src/Storages/S3Queue/S3QueueSource.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22
#include "config.h"
33

4-
#if USE_AWS_S3
54
#include <Common/ZooKeeper/ZooKeeper.h>
65
#include <Processors/ISource.h>
76
#include <Storages/S3Queue/S3QueueMetadata.h>
@@ -131,4 +130,3 @@ class StorageS3QueueSource : public ISource, WithContext
131130
};
132131

133132
}
134-
#endif

src/Storages/S3Queue/S3QueueTableMetadata.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include <config.h>
22

3-
#if USE_AWS_S3
4-
53
#include <Poco/JSON/JSON.h>
64
#include <Poco/JSON/Object.h>
75
#include <Poco/JSON/Parser.h>
@@ -252,5 +250,3 @@ void S3QueueTableMetadata::checkEquals(const S3QueueSettings & current, const S3
252250
}
253251
}
254252
}
255-
256-
#endif

src/Storages/S3Queue/S3QueueTableMetadata.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#pragma once
22

3-
#if USE_AWS_S3
4-
53
#include <Storages/S3Queue/S3QueueSettings.h>
64
#include <Storages/StorageInMemoryMetadata.h>
75
#include <Storages/ObjectStorage/StorageObjectStorage.h>
@@ -48,5 +46,3 @@ struct S3QueueTableMetadata
4846

4947

5048
}
51-
52-
#endif

src/Storages/S3Queue/StorageS3Queue.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <optional>
22
#include "config.h"
33

4-
#if USE_AWS_S3
54
#include <Common/ProfileEvents.h>
65
#include <IO/S3Common.h>
76
#include <IO/CompressionMethod.h>
@@ -494,6 +493,7 @@ std::shared_ptr<StorageS3Queue::FileIterator> StorageS3Queue::createFileIterator
494493
return std::make_shared<FileIterator>(files_metadata, std::move(glob_iterator), shutdown_called, log);
495494
}
496495

496+
#if USE_AWS_S3
497497
void registerStorageS3Queue(StorageFactory & factory)
498498
{
499499
factory.registerStorage(
@@ -560,8 +560,6 @@ void registerStorageS3Queue(StorageFactory & factory)
560560
.source_access_type = AccessType::S3,
561561
});
562562
}
563+
#endif
563564

564565
}
565-
566-
567-
#endif

src/Storages/S3Queue/StorageS3Queue.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22
#include "config.h"
33

4-
#if USE_AWS_S3
54
#include <Common/ZooKeeper/ZooKeeper.h>
65
#include <Common/logger_useful.h>
76
#include <Core/BackgroundSchedulePool.h>
@@ -97,5 +96,3 @@ class StorageS3Queue : public IStorage, WithContext
9796
};
9897

9998
}
100-
101-
#endif

0 commit comments

Comments
 (0)