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/05/31 15:40:07 UTC
[GitHub] [arrow] mapleFU commented on a diff in pull request #35825: GH-32723: [C++][Parquet] Add option to use LARGE* variants of binary types
mapleFU commented on code in PR #35825:
URL: https://github.com/apache/arrow/pull/35825#discussion_r1211923949
##########
cpp/src/parquet/arrow/reader.cc:
##########
@@ -462,7 +463,7 @@ class LeafReader : public ColumnReaderImpl {
input_(std::move(input)),
descr_(input_->descr()) {
record_reader_ = RecordReader::Make(
- descr_, leaf_info, ctx_->pool, field_->type()->id() == ::arrow::Type::DICTIONARY);
+ descr_, leaf_info, ctx_->pool, field_->type()->id() == ::arrow::Type::DICTIONARY, false, ctx_->use_binary_large_variants);
Review Comment:
```suggestion
descr_, leaf_info, ctx_->pool, field_->type()->id() == ::arrow::Type::DICTIONARY, /*read_dense_for_nullable*/false, ctx_->use_binary_large_variants);
```
##########
cpp/src/parquet/column_reader.cc:
##########
@@ -1988,33 +1988,33 @@ class TypedRecordReader : public TypedColumnReaderImpl<DType>,
}
void DebugPrintState() override {
- const int16_t* def_levels = this->def_levels();
- const int16_t* rep_levels = this->rep_levels();
- const int64_t total_levels_read = levels_position_;
-
- const T* vals = reinterpret_cast<const T*>(this->values());
-
- if (leaf_info_.def_level > 0) {
- std::cout << "def levels: ";
- for (int64_t i = 0; i < total_levels_read; ++i) {
- std::cout << def_levels[i] << " ";
- }
- std::cout << std::endl;
- }
-
- if (leaf_info_.rep_level > 0) {
- std::cout << "rep levels: ";
- for (int64_t i = 0; i < total_levels_read; ++i) {
- std::cout << rep_levels[i] << " ";
- }
- std::cout << std::endl;
- }
-
- std::cout << "values: ";
- for (int64_t i = 0; i < this->values_written(); ++i) {
- std::cout << vals[i] << " ";
- }
- std::cout << std::endl;
+// const int16_t* def_levels = this->def_levels();
Review Comment:
Why?
--
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