aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornadya02 <nadya02@yandex-team.com>2023-09-14 13:48:29 +0300
committernadya02 <nadya02@yandex-team.com>2023-09-14 14:05:05 +0300
commiteb28f232a306bce10b5d780659900d5e182116b8 (patch)
tree58d6e9b538c281227756f6953c89474d18c63718
parent0f1f383f12c12532f1fc4f3bd4cf1697a3ed5fc4 (diff)
downloadydb-eb28f232a306bce10b5d780659900d5e182116b8.tar.gz
YT-19430: Add arrow to http proxy
-rw-r--r--yt/yt/client/formats/public.h1
-rw-r--r--yt/yt/library/formats/format.cpp9
2 files changed, 10 insertions, 0 deletions
diff --git a/yt/yt/client/formats/public.h b/yt/yt/client/formats/public.h
index af572cc98f..cb258a5cfd 100644
--- a/yt/yt/client/formats/public.h
+++ b/yt/yt/client/formats/public.h
@@ -57,6 +57,7 @@ DEFINE_ENUM(EFormatType,
(Protobuf)
(WebJson)
(Skiff)
+ (Arrow)
);
////////////////////////////////////////////////////////////////////////////////
diff --git a/yt/yt/library/formats/format.cpp b/yt/yt/library/formats/format.cpp
index 1b7e0cf749..1fdd5e3836 100644
--- a/yt/yt/library/formats/format.cpp
+++ b/yt/yt/library/formats/format.cpp
@@ -1,5 +1,6 @@
#include "format.h"
+#include "arrow_writer.h"
#include "dsv_parser.h"
#include "dsv_writer.h"
#include "protobuf_parser.h"
@@ -314,6 +315,14 @@ ISchemalessFormatWriterPtr CreateStaticTableWriterForFormat(
enableContextSaving,
controlAttributesConfig,
keyColumnCount);
+ case EFormatType::Arrow:
+ return CreateWriterForArrow(
+ nameTable,
+ tableSchemas,
+ std::move(output),
+ enableContextSaving,
+ controlAttributesConfig,
+ keyColumnCount);
default:
auto adapter = New<TSchemalessWriterAdapter>(
nameTable,