You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "mapleFU (via GitHub)" <gi...@apache.org> on 2023/03/20 09:10:36 UTC

[GitHub] [arrow] mapleFU commented on a diff in pull request #34632: GH-34536: [Parquet][C++] Overwrite default config for DeltaBitPackEncoder

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


##########
cpp/src/parquet/encoding.cc:
##########
@@ -2100,9 +2100,12 @@ class DictByteArrayDecoderImpl : public DictDecoderImpl<ByteArrayType>,
 
 template <typename DType>
 class DeltaBitPackEncoder : public EncoderImpl, virtual public TypedEncoder<DType> {
+  static_assert(std::is_same_v<int32_t, typename DType::c_type> ||
+                std::is_same_v<int64_t, typename DType::c_type>);
   // Maximum possible header size
   static constexpr uint32_t kMaxPageHeaderWriterSize = 32;

Review Comment:
   How can we config that? Set a variable in `ColumnProperties` that only works in DeltaBitPack?



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org