Adding a flag to use Azure Blob Storage

This commit is contained in:
Jakub Kuklis 2021-09-27 15:12:31 +00:00 committed by Jakub Kuklis
parent ec4d2a9e03
commit 43f420cba8
4 changed files with 14 additions and 6 deletions

View File

@ -9,6 +9,7 @@
#cmakedefine01 USE_HDFS #cmakedefine01 USE_HDFS
#cmakedefine01 USE_INTERNAL_HDFS3_LIBRARY #cmakedefine01 USE_INTERNAL_HDFS3_LIBRARY
#cmakedefine01 USE_AWS_S3 #cmakedefine01 USE_AWS_S3
#cmakedefine01 USE_AZURE_BLOB_STORAGE
#cmakedefine01 USE_BROTLI #cmakedefine01 USE_BROTLI
#cmakedefine01 USE_UNWIND #cmakedefine01 USE_UNWIND
#cmakedefine01 USE_OPENCL #cmakedefine01 USE_OPENCL

View File

@ -1,9 +1,12 @@
// #if USE_AZURE_BLOB_STORAGE #include "Blob.h"
#if USE_AZURE_BLOB_STORAGE
#include <iostream> #include <iostream>
#include <azure/storage/blobs.hpp> #include <azure/storage/blobs.hpp>
#include <azure/identity/managed_identity_credential.hpp> #include <azure/identity/managed_identity_credential.hpp>
namespace DB namespace DB
{ {
@ -82,4 +85,4 @@ void blob_do_sth()
} }
// #endif #endif

View File

@ -1,6 +1,10 @@
#pragma once #pragma once
// #if USE_AZURE_BLOB_STORAGE #if !defined(ARCADIA_BUILD)
#include <Common/config.h>
#endif
#if USE_AZURE_BLOB_STORAGE
namespace DB namespace DB
{ {
@ -9,4 +13,4 @@ void blob_do_sth();
} }
// #endif #endif

View File

@ -1,7 +1,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <Disks/BlobStorage/Blob.h> #include <Disks/BlobStorage/Blob.h>
// #if USE_AZURE_BLOB_STORAGE #if USE_AZURE_BLOB_STORAGE
using namespace DB; using namespace DB;
@ -10,4 +10,4 @@ TEST(DiskBlobStorage, doAll)
blob_do_sth(); blob_do_sth();
} }
// #endif #endif