Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rgsl888prabhu committed Mar 18, 2021
1 parent 94ee5c9 commit 34d5722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/io/orc/orc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ std::vector<int> metadata::select_columns(std::vector<std::string> use_names,
}
}
}
CUDF_EXPECTS(selection.size() > 0, "Filtered out all columns");
} else {
// For now, only select all leaf nodes
for (int i = 1; i < get_num_columns(); ++i) {
Expand All @@ -557,7 +558,6 @@ std::vector<int> metadata::select_columns(std::vector<std::string> use_names,
}
}
}
CUDF_EXPECTS(use_names.empty() or selection.size() > 0, "Filtered out all columns");

return selection;
}
Expand Down

0 comments on commit 34d5722

Please sign in to comment.