--- contrib/libs/apache/arrow_next/cpp/src/parquet/thrift_internal.h (index) +++ contrib/libs/apache/arrow_next/cpp/src/parquet/thrift_internal.h (working tree) @@ -457,13 +457,7 @@ class ThriftDeserializer { // limit (ARROW-13655). If we wanted to protect against huge messages, we could // do it ourselves since we know the message size up front. std::shared_ptr CreateReadOnlyMemoryBuffer(uint8_t* buf, uint32_t len) { -#if PARQUET_THRIFT_VERSION_MAJOR > 0 || PARQUET_THRIFT_VERSION_MINOR >= 14 - auto conf = std::make_shared(); - conf->setMaxMessageSize(std::numeric_limits::max()); - return std::make_shared(buf, len, ThriftBuffer::OBSERVE, conf); -#else return std::make_shared(buf, len); -#endif } template