mapleFU commented on code in PR #39420:
URL: https://github.com/apache/arrow/pull/39420#discussion_r1439222739


##########
cpp/src/parquet/encoding.cc:
##########
@@ -2007,7 +2001,7 @@ class DictByteArrayDecoderImpl : public 
DictDecoderImpl<ByteArrayType>,
     // space for binary data.
     RETURN_NOT_OK(helper.Prepare());
 
-    auto dict_values = reinterpret_cast<const ByteArray*>(dictionary_->data());
+    const auto* dict_values = dictionary_->data_as<ByteArray>();

Review Comment:
   No, `const auto* v = ...` is equal to `auto dict_values = ..`. It's just a 
style problem
   
   Let me update it



##########
cpp/src/parquet/encoding.cc:
##########
@@ -1936,7 +1930,7 @@ class DictByteArrayDecoderImpl : public 
DictDecoderImpl<ByteArrayType>,
     // space for binary data.
     RETURN_NOT_OK(helper.Prepare());
 
-    auto dict_values = reinterpret_cast<const ByteArray*>(dictionary_->data());
+    const ByteArray* dict_values = dictionary_->data_as<ByteArray>();

Review Comment:
   Hmmm let me revert it back



-- 
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]

Reply via email to