You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/12/18 00:57:08 UTC

[GitHub] [incubator-pinot] Jackie-Jiang commented on a change in pull request #4937: changing pinot-avro dependency scope to test from compile

Jackie-Jiang commented on a change in pull request #4937: changing pinot-avro dependency scope to test from compile
URL: https://github.com/apache/incubator-pinot/pull/4937#discussion_r359105406
 
 

 ##########
 File path: pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/CreateSegmentCommand.java
 ##########
 @@ -418,6 +419,12 @@ public void run() {
                   orcRecordReader.init(new File(localFile), Schema.fromFile(new File(_schemaFile)), null);
                   driver.init(config, orcRecordReader);
                   break;
+                case CSV:
+                  RecordReader csvRecordReader = new CSVRecordReader();
+                  CSVRecordReaderConfig readerConfig = JsonUtils.fileToObject(new File(_readerConfigFile), CSVRecordReaderConfig.class);
 
 Review comment:
   Check if `_rederConfigFile` is null before loading it

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org