dongjoon-hyun commented on a change in pull request #877:
URL: https://github.com/apache/orc/pull/877#discussion_r693626263
##########
File path: c++/src/sargs/SargsApplier.cc
##########
@@ -25,7 +25,8 @@ namespace orc {
uint64_t SargsApplier::findColumn(const Type& type,
const std::string& colName) {
for (uint64_t i = 0; i != type.getSubtypeCount(); ++i) {
- if (type.getFieldName(i) == colName) {
+ // Only STRUCT type has field names
+ if (type.getKind() == STRUCT && type.getFieldName(i) == colName) {
Review comment:
Great. Thank you for the confirmation.
--
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]