[
https://issues.apache.org/jira/browse/ORC-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379329#comment-15379329
]
ASF GitHub Bot commented on ORC-58:
-----------------------------------
Github user swalkaus commented on a diff in the pull request:
https://github.com/apache/orc/pull/41#discussion_r70967406
--- Diff: tools/src/FileContents.cc ---
@@ -27,8 +27,10 @@
#include <string>
void printContents(const char* filename, const orc::ReaderOptions opts) {
- std::unique_ptr<orc::Reader> reader;
- reader = orc::createReader(orc::readLocalFile(std::string(filename)),
opts);
+ std::unique_ptr<orc::Reader> fileReader;
--- End diff --
Pendantic: use reader and rowReader consistently (notice the camelCase).
> Move code for reading rows from Reader to RowReader
> ---------------------------------------------------
>
> Key: ORC-58
> URL: https://issues.apache.org/jira/browse/ORC-58
> Project: Orc
> Issue Type: Improvement
> Components: C++
> Reporter: Deepak Majeti
>
> Existing ReaderImpl constructor can throw an exception. This prohibits the
> creation of the reader instance and subsequent access to the schema
> information.
> For instance, an exception can be thrown if the selected column ids do not
> agree with the number of schema columns. The downstream application might
> still want the schema information for logging purposes.
> The scope of this Jira is to move the code to read rows into a new RowReader
> class.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)