123456789101112131415161718192021 |
- #pragma once
- #include <yql/essentials/public/udf/udf_version.h>
- #include <arrow/memory_pool.h>
- namespace NYql {
- namespace NUdf {
- constexpr size_t ArrowMemoryAlignment = 64;
- static_assert((ArrowMemoryAlignment & (ArrowMemoryAlignment - 1)) == 0, "ArrowMemoryAlignment should be power of 2");
- #if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 37)
- arrow::MemoryPool* GetYqlMemoryPool();
- #else
- inline arrow::MemoryPool* GetYqlMemoryPool() {
- return arrow::default_memory_pool();
- }
- #endif
- }
- }
|