Github user foryou2030 commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/82#discussion_r76726188
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/util/CarbonUtil.java ---
    @@ -1443,5 +1446,32 @@ public static int getDictionaryChunkSize() {
         }
         return dictionaryOneChunkSize;
       }
    +
    +  /**
    +   * @param csvFilePath
    +   * @return
    +   */
    +  public static String readHeader(String csvFilePath) {
    +
    +    DataInputStream fileReader = null;
    +    BufferedReader bufferedReader = null;
    +    String readLine = null;
    +
    +    try {
    +      fileReader =
    +          FileFactory.getDataInputStream(csvFilePath, 
FileFactory.getFileType(csvFilePath));
    +      bufferedReader =
    +          new BufferedReader(new InputStreamReader(fileReader, 
Charset.defaultCharset()));
    --- End diff --
    
    ok, handled


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to