Github user ajantha-bhat commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2384#discussion_r197638025
--- Diff:
core/src/main/java/org/apache/carbondata/core/util/CarbonUtil.java ---
@@ -3116,5 +3117,48 @@ public static void
setLocalDictColumnsToWrapperSchema(List<ColumnSchema> columns
}
}
}
-}
+ /**
+ * Utility function to read a whole file as a string,
+ * Must not use this if the file is very huge. As it may result in
memory exhaustion.
+ * @param filePath
+ * @return
+ */
+ public static String readFromFile(String filePath) {
--- End diff --
ok. done
---