diff --git a/src/Processors/Formats/Impl/BSONEachRowRowInputFormat.cpp b/src/Processors/Formats/Impl/BSONEachRowRowInputFormat.cpp index 37d92527579..9e5624e00bd 100644 --- a/src/Processors/Formats/Impl/BSONEachRowRowInputFormat.cpp +++ b/src/Processors/Formats/Impl/BSONEachRowRowInputFormat.cpp @@ -122,13 +122,6 @@ void BSONEachRowRowInputFormat::readBSONObject(MutableColumns & columns) current_column_name.assign(name_ref.data, name_ref.size); name_ref = StringRef(current_column_name); - - // if (column_index == UNKNOWN_FIELD) - // skipUnknownField(name_ref); - // else if (column_index == NESTED_FIELD) - // readNestedData(name_ref.toString(), columns); - // else - // throw Exception("Logical error: illegal value of column_index", ErrorCodes::LOGICAL_ERROR); } if (seen_columns[column_index]) throw Exception( diff --git a/src/Processors/Formats/Impl/BSONEachRowRowOutputFormat.cpp b/src/Processors/Formats/Impl/BSONEachRowRowOutputFormat.cpp index 169bb367cce..5216722d930 100644 --- a/src/Processors/Formats/Impl/BSONEachRowRowOutputFormat.cpp +++ b/src/Processors/Formats/Impl/BSONEachRowRowOutputFormat.cpp @@ -17,8 +17,6 @@ namespace DB namespace ErrorCodes { extern const int INCORRECT_DATA; - extern const int CANNOT_READ_ALL_DATA; - extern const int LOGICAL_ERROR; } BSONEachRowRowOutputFormat::BSONEachRowRowOutputFormat(