Skip to content

Commit bd5f6da

Browse files
committed
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.
1 parent ddb4f60 commit bd5f6da

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contrib/pax_storage/src/cpp/storage/micro_partition.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,10 @@ class MicroPartitionReader {
204204

205205
std::shared_ptr<PaxFilter> filter;
206206

207-
#ifdef VEC_BUILD
208-
TupleDesc tuple_desc = nullptr;
209-
#endif
210-
211207
// should only reference
212208
std::shared_ptr<Bitmap8> visibility_bitmap = nullptr;
209+
210+
TupleDesc tuple_desc = nullptr;
213211
};
214212
MicroPartitionReader() = default;
215213

0 commit comments

Comments
 (0)