rizaon commented on a change in pull request #990: URL: https://github.com/apache/orc/pull/990#discussion_r780620362
########## File path: c++/src/Options.hh ########## @@ -174,20 +175,36 @@ namespace orc { privateBits->selection = ColumnSelection_FIELD_IDS; privateBits->includedColumnIndexes.assign(include.begin(), include.end()); privateBits->includedColumnNames.clear(); + privateBits->readIntents.clear(); return *this; } RowReaderOptions& RowReaderOptions::include(const std::list<std::string>& include) { privateBits->selection = ColumnSelection_NAMES; privateBits->includedColumnNames.assign(include.begin(), include.end()); privateBits->includedColumnIndexes.clear(); + privateBits->readIntents.clear(); return *this; } RowReaderOptions& RowReaderOptions::includeTypes(const std::list<uint64_t>& types) { privateBits->selection = ColumnSelection_TYPE_IDS; privateBits->includedColumnIndexes.assign(types.begin(), types.end()); privateBits->includedColumnNames.clear(); + privateBits->readIntents.clear(); + return *this; + } + + RowReaderOptions& + RowReaderOptions::includeTypesWithIntents(const TypeReadIntents& typesAndIntents) { + privateBits->selection = ColumnSelection_TYPE_IDS; + privateBits->includedColumnIndexes.clear(); + privateBits->readIntents.clear(); + for (const auto& typeIntentPair : typesAndIntents ) { + privateBits->readIntents[typeIntentPair.first] = typeIntentPair.second; Review comment: It is now resolved by relying on `ColumnSelector::selectParents()` to override the decision. -- 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: dev-unsubscr...@orc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org