You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "rajagopr (via GitHub)" <gi...@apache.org> on 2023/04/05 00:43:23 UTC

[GitHub] [pinot] rajagopr commented on a diff in pull request #10542: Exposed the CSV header map as part of CSVRecordReader

rajagopr commented on code in PR #10542:
URL: https://github.com/apache/pinot/pull/10542#discussion_r1157903712


##########
pinot-plugins/pinot-input-format/pinot-csv/src/main/java/org/apache/pinot/plugin/inputformat/csv/CSVRecordReader.java:
##########
@@ -150,6 +151,10 @@ private void init()
     _iterator = _parser.iterator();
   }
 
+  public Map<String, Integer> getCSVHeaderMap() {
+    return _parser.getHeaderMap();

Review Comment:
   added comments



##########
pinot-plugins/pinot-input-format/pinot-csv/src/main/java/org/apache/pinot/plugin/inputformat/csv/CSVRecordReader.java:
##########
@@ -150,6 +151,10 @@ private void init()
     _iterator = _parser.iterator();
   }
 
+  public Map<String, Integer> getCSVHeaderMap() {

Review Comment:
   done.



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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