mapleFU commented on code in PR #46372:
URL: https://github.com/apache/arrow/pull/46372#discussion_r2109729997
##########
cpp/src/parquet/variant.cc:
##########
@@ -300,8 +300,7 @@ VariantType VariantValue::getType() const {
VariantBasicType basic_type = getBasicType();
switch (basic_type) {
case VariantBasicType::Primitive: {
- auto primitive_type =
- static_cast<VariantPrimitiveType>(value_[0] >> kValueHeaderBitShift);
+ auto primitive_type = static_cast<VariantPrimitiveType>(valueHeader());
Review Comment:
if it's not primitive type, `value_header` might be length for string, or be
used as `field_offset_length` etc
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]