Github user ajantha-bhat commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2316#discussion_r189499110
  
    --- Diff: docs/sdk-writer-guide.md ---
    @@ -93,9 +93,8 @@ public class TestSdkAvro {
     
         try {
           CarbonWriter writer = CarbonWriter.builder()
    -          .withSchema(carbonSchema)
               .outputPath(path)
    -          .buildWriterForAvroInput();
    +          .buildWriterForAvroInput(new 
org.apache.avro.Schema.Parser().parse(avroSchema));
    --- End diff --
    
    remove these above lines. No need to prepare avro schema now
    
        // prepare carbon schema from avro schema 
         org.apache.carbondata.sdk.file.Schema carbonSchema =        
org.apache.carbondata.sdk.file.Schema carbonSchema =
                 AvroCarbonWriter.getCarbonSchemaFromAvroSchema(avroSchema);    
             AvroCarbonWriter.getCarbonSchemaFromAvroSchema(avroSchema);


---

Reply via email to