Github user ajantha-bhat commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2837#discussion_r228463349
--- Diff:
store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java
---
@@ -329,6 +344,19 @@ public CarbonWriterBuilder withCsvInput(Schema schema)
{
return this;
}
+ /**
+ * to build a {@link CarbonWriter}, which accepts row in CSV format
+ *
+ * @param jsonSchema json Schema string
+ * @return CarbonWriterBuilder
+ */
+ public CarbonWriterBuilder withCsvInput(String jsonSchema) {
+ Objects.requireNonNull(jsonSchema, "schema should not be null");
+ this.schema = Schema.parseJson(jsonSchema);
--- End diff --
parse error must be notified. what is some other string passed instead of
jsonString ?
---