diff options
author | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-01-03 15:48:01 +0300 |
---|---|---|
committer | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-01-03 15:48:01 +0300 |
commit | daaba7ee0cbe1c30ed3200f6ecbb79ce73dba2b6 (patch) | |
tree | bfd25a6134080460b63ddab8c28b52494f2dd2cd | |
parent | 85dbae30a801094e01a9aa5e4ecb1be070420ed4 (diff) | |
download | ydb-daaba7ee0cbe1c30ed3200f6ecbb79ce73dba2b6.tar.gz |
fix win build
-rw-r--r-- | ydb/core/load_test/ycsb/test_load_read_iterator.cpp | 2 | ||||
-rw-r--r-- | ydb/library/yql/providers/s3/compressors/factory.cpp | 12 | ||||
-rw-r--r-- | ydb/library/yql/providers/s3/compressors/factory.h | 12 |
3 files changed, 24 insertions, 2 deletions
diff --git a/ydb/core/load_test/ycsb/test_load_read_iterator.cpp b/ydb/core/load_test/ycsb/test_load_read_iterator.cpp index fbb2906f485..10d8c2cb7b7 100644 --- a/ydb/core/load_test/ycsb/test_load_read_iterator.cpp +++ b/ydb/core/load_test/ycsb/test_load_read_iterator.cpp @@ -839,6 +839,7 @@ inline void Out<NKikimr::NDataShardLoad::EState>(IOutputStream& o, NKikimr::NDat } } +#ifndef _win_ template <> inline void Out<NKikimrDataShardLoad::TLoadReport>(IOutputStream& o, const NKikimrDataShardLoad::TLoadReport& report) { if (report.HasPrefixInfo()) @@ -860,3 +861,4 @@ inline void Out<NKikimrDataShardLoad::TLoadReport>(IOutputStream& o, const NKiki o << ", Info: " << report.GetInfo(); } } +#endif diff --git a/ydb/library/yql/providers/s3/compressors/factory.cpp b/ydb/library/yql/providers/s3/compressors/factory.cpp index 86889acc703..c56a36cdf84 100644 --- a/ydb/library/yql/providers/s3/compressors/factory.cpp +++ b/ydb/library/yql/providers/s3/compressors/factory.cpp @@ -1,4 +1,15 @@ #include "factory.h" + +#if defined(_win_) +namespace NYql { + +IOutputQueue::TPtr MakeCompressorQueue(const std::string_view& /*compression*/) { + return {}; +} + +} +#else + #include "lz4io.h" #include "brotli.h" #include "zstd.h" @@ -47,3 +58,4 @@ IOutputQueue::TPtr MakeCompressorQueue(const std::string_view& compression) { } } +#endif diff --git a/ydb/library/yql/providers/s3/compressors/factory.h b/ydb/library/yql/providers/s3/compressors/factory.h index 2ce5f1dd009..040998462a6 100644 --- a/ydb/library/yql/providers/s3/compressors/factory.h +++ b/ydb/library/yql/providers/s3/compressors/factory.h @@ -1,8 +1,15 @@ #pragma once +#include "output_queue.h" -#include <ydb/library/yql/udfs/common/clickhouse/client/src/IO/ReadBuffer.h> +#if defined(_win_) +namespace NYql { -#include "output_queue.h" +IOutputQueue::TPtr MakeCompressorQueue(const std::string_view& compression); + +} +#else + +#include <ydb/library/yql/udfs/common/clickhouse/client/src/IO/ReadBuffer.h> namespace NYql { @@ -11,3 +18,4 @@ std::unique_ptr<NDB::ReadBuffer> MakeDecompressor(NDB::ReadBuffer& input, const IOutputQueue::TPtr MakeCompressorQueue(const std::string_view& compression); } +#endif |