From 3146588a0c2b016a757d0f3f86d152c814b734e9 Mon Sep 17 00:00:00 2001 From: zagto Date: Thu, 12 Jan 2023 16:31:05 +0100 Subject: [PATCH] ARROW-16782: [Format] Add REE definitions to FlatBuffers (#14176) Lead-authored-by: Matt Topol Co-authored-by: Tobias Zagorni Co-authored-by: zagto Co-authored-by: Andrew Lamb Co-authored-by: David Li Co-authored-by: Antoine Pitrou Co-authored-by: Weston Pace Signed-off-by: Matt Topol --- cpp/src/generated/File_generated.h | 10 +- cpp/src/generated/Message_generated.h | 12 +- cpp/src/generated/Schema_generated.h | 95 ++++-- cpp/src/generated/SparseTensor_generated.h | 11 +- cpp/src/generated/Tensor_generated.h | 9 +- cpp/src/generated/feather_generated.h | 7 - cpp/src/plasma/common_generated.h | 27 +- cpp/src/plasma/plasma_generated.h | 343 +++++++-------------- docs/source/format/Columnar.rst | 89 +++++- format/Schema.fbs | 14 +- go/arrow/internal/flatbuf/RunEndEncoded.go | 55 ++++ go/arrow/internal/flatbuf/Type.go | 3 + 12 files changed, 365 insertions(+), 310 deletions(-) create mode 100644 go/arrow/internal/flatbuf/RunEndEncoded.go diff --git a/cpp/src/generated/File_generated.h b/cpp/src/generated/File_generated.h index 06953c4a04044..5b219f1eb0ed1 100644 --- a/cpp/src/generated/File_generated.h +++ b/cpp/src/generated/File_generated.h @@ -26,15 +26,18 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(8) Block FLATBUFFERS_FINAL_CLASS { int64_t bodyLength_; public: - Block() { - memset(static_cast(this), 0, sizeof(Block)); + Block() + : offset_(0), + metaDataLength_(0), + padding0__(0), + bodyLength_(0) { + (void)padding0__; } Block(int64_t _offset, int32_t _metaDataLength, int64_t _bodyLength) : offset_(flatbuffers::EndianScalar(_offset)), metaDataLength_(flatbuffers::EndianScalar(_metaDataLength)), padding0__(0), bodyLength_(flatbuffers::EndianScalar(_bodyLength)) { - (void)padding0__; } /// Index to the start of the RecordBlock (note this is past the Message header) int64_t offset() const { @@ -119,7 +122,6 @@ struct FooterBuilder { : fbb_(_fbb) { start_ = fbb_.StartTable(); } - FooterBuilder &operator=(const FooterBuilder &); flatbuffers::Offset