Fix build

This commit is contained in:
Ivan Lezhankin 2019-01-24 15:44:58 +03:00
parent 20b94a635c
commit 9636bdcd67
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ KafkaBlockInputStream::KafkaBlockInputStream(
// We don't use ratio since the number of Kafka messages may vary from stream to stream. // We don't use ratio since the number of Kafka messages may vary from stream to stream.
// Thus, ratio is meaningless. // Thus, ratio is meaningless.
context.setSetting("input_format_allow_errors_ratio", 1.); context.setSetting("input_format_allow_errors_ratio", 0.);
context.setSetting("input_format_allow_errors_num", storage.skip_broken); context.setSetting("input_format_allow_errors_num", storage.skip_broken);
if (schema.size() > 0) if (schema.size() > 0)

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <DataStreams/IProfilingBlockInputStream.h> #include <DataStreams/IBlockInputStream.h>
#include <IO/DelimitedReadBuffer.h> #include <IO/DelimitedReadBuffer.h>
#include <Interpreters/Context.h> #include <Interpreters/Context.h>
#include <Storages/Kafka/ReadBufferFromKafkaConsumer.h> #include <Storages/Kafka/ReadBufferFromKafkaConsumer.h>
@ -9,7 +9,7 @@ namespace DB
{ {
class StorageKafka; class StorageKafka;
class KafkaBlockInputStream : public IProfilingBlockInputStream class KafkaBlockInputStream : public IBlockInputStream
{ {
public: public:
KafkaBlockInputStream(StorageKafka & storage_, const Context & context_, const String & schema, size_t max_block_size_); KafkaBlockInputStream(StorageKafka & storage_, const Context & context_, const String & schema, size_t max_block_size_);