mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Adding a flag to use Azure Blob Storage
This commit is contained in:
parent
ec4d2a9e03
commit
43f420cba8
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user