Github user xubo245 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2807#discussion_r229167327
--- Diff: store/CSDK/test/main.cpp ---
@@ -116,6 +118,66 @@ void printResult(JNIEnv *env, CarbonReader reader) {
reader.close();
}
+/**
+ * test read Schema from Index File
+ *
+ * @param env jni env
+ * @return whether it is success
+ */
+bool readSchemaInIndexFile(JNIEnv *env) {
+ printf("\nread Schema from Index File:\n");
+ CarbonSchemaReader carbonSchemaReader(env);
+ jobject schema;
+ try {
+ schema = carbonSchemaReader.readSchemaInIndexFile(
+
"../../../../resources/carbondata/510199997055746_batchno0-0-null-510199277323454.carbonindex");
+ } catch (jthrowable e) {
--- End diff --
ok, removed, after write function merged, I will optimized again.
---