Github user ajantha-bhat commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2837#discussion_r228464096
--- 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 --
why this new method ? we already support withCsvInput(Schema schema), csdk
cannot use it ?
---