This is an automated email from the ASF dual-hosted git repository.
gfphoenix78 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/main by this push:
new bd5f6da2596 PAX: remove macro guard in the struct definition
bd5f6da2596 is described below
commit bd5f6da2596fb56d46f079502ad087a352d3fc72
Author: Hao Wu <[email protected]>
AuthorDate: Thu Jul 31 07:25:39 2025 +0000
PAX: remove macro guard in the struct definition
Macro guard in the struct definition will cause layout undetermined
if the macro definitions are inconsistent between compiling and use
of the header file.
---
contrib/pax_storage/src/cpp/storage/micro_partition.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/contrib/pax_storage/src/cpp/storage/micro_partition.h
b/contrib/pax_storage/src/cpp/storage/micro_partition.h
index cc73b15ff55..77d61462ad4 100644
--- a/contrib/pax_storage/src/cpp/storage/micro_partition.h
+++ b/contrib/pax_storage/src/cpp/storage/micro_partition.h
@@ -204,12 +204,10 @@ class MicroPartitionReader {
std::shared_ptr<PaxFilter> filter;
-#ifdef VEC_BUILD
- TupleDesc tuple_desc = nullptr;
-#endif
-
// should only reference
std::shared_ptr<Bitmap8> visibility_bitmap = nullptr;
+
+ TupleDesc tuple_desc = nullptr;
};
MicroPartitionReader() = default;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]