Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2316#discussion_r189423162
--- Diff:
examples/spark2/src/main/java/org/apache/carbondata/examples/sdk/CarbonReaderExample.java
---
@@ -44,11 +44,10 @@ public static void main(String[] args) {
fields[1] = new Field("age", DataTypes.INT);
CarbonWriter writer = CarbonWriter.builder()
- .withSchema(new Schema(fields))
--- End diff --
Is withSchema is optional earlier or mandatory to provide ?
---