Fix build errors

This commit is contained in:
Avogar 2020-06-19 22:38:51 +03:00
parent f6ab431f2f
commit 2a923f434f
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ void ORCBlockOutputFormat::ORCBlockOutputFormat::writeNumbers(
number_orc_column->notNull[i] = 0;
continue;
}
if (std::is_same_v<NumberType, UInt8>)
if constexpr (std::is_same<NumberType, UInt8>::value)
number_orc_column->data[i] = static_cast<unsigned char>(number_column.getElement(i));
else
number_orc_column->data[i] = number_column.getElement(i);

View File

@ -55,7 +55,7 @@ private:
void writeColumn(orc::ColumnVectorBatch * orc_column, const IColumn & column, DataTypePtr & type, const PaddedPODArray<UInt8> * null_bytemap);
size_t getColumnSize(const IColumn & column, DataTypePtr & ptr);
size_t getColumnSize(const IColumn & column, DataTypePtr & type);
size_t getMaxColumnSize(Chunk & chunk);
const FormatSettings format_settings;