blob: 700a2c8291e70b0bebac2c8d5c5001403c2eecc1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- 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<ThriftBuffer> CreateReadOnlyMemoryBuffer(uint8_t* buf, uint32_t len) {
-#if PARQUET_THRIFT_VERSION_MAJOR > 0 || PARQUET_THRIFT_VERSION_MINOR >= 14
- auto conf = std::make_shared<apache::thrift::TConfiguration>();
- conf->setMaxMessageSize(std::numeric_limits<int>::max());
- return std::make_shared<ThriftBuffer>(buf, len, ThriftBuffer::OBSERVE, conf);
-#else
return std::make_shared<ThriftBuffer>(buf, len);
-#endif
}
template <class T>
|