From 4fd3bcd8232758ade3d2c353aedb184324b14387 Mon Sep 17 00:00:00 2001 From: Avogar Date: Thu, 18 Jun 2020 03:17:08 +0300 Subject: [PATCH] Fix build errors --- src/Processors/Formats/Impl/ORCBlockOutputFormat.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Processors/Formats/Impl/ORCBlockOutputFormat.h b/src/Processors/Formats/Impl/ORCBlockOutputFormat.h index 18261a90acf..0cd50959ad7 100644 --- a/src/Processors/Formats/Impl/ORCBlockOutputFormat.h +++ b/src/Processors/Formats/Impl/ORCBlockOutputFormat.h @@ -19,11 +19,12 @@ public: uint64_t getNaturalWriteSize() const override; void write(const void* buf, size_t length) override; - void close() override {}; - const std::string& getName() const override { return "ORCOutputStream"; }; + void close() override {} + const std::string& getName() const override { return name; } private: WriteBuffer & out; + std::string name = "ORCOutputStream"; }; class ORCBlockOutputFormat : public IOutputFormat @@ -35,8 +36,6 @@ public: void consume(Chunk chunk) override; void finalize() override; - String getContentType() const override { return "application/octet-stream"; } - private: ORC_UNIQUE_PTR getORCType(const DataTypePtr & type);