romanstreamsets opened a new issue, #6796:
URL: https://github.com/apache/iceberg/issues/6796

   ### Apache Iceberg version
   
   1.1.0 (latest release)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   Say, I run this in Spark/Hive: `CREATE TABLE FOO (col1 int) USING iceberg;`
   
   Then I run something like this in a Java/groovy code:
   ```
   org.apache.avro.Schema avroSchema = org.apache.avro.Schema.parse("{   
\"type\" : \"record\",\"name\" : \"Employee\",   \"fields\" :  [    { \"name\" 
: \"col1\" , \"type\" : \"int\" } ] }");
   org.apache.iceberg.Schema icebergSchema = 
AvroSchemaUtil.toIceberg(avroSchema);
   ```
   ... and proceed with writing data into the table:
   GenericRecord record = GenericRecord.create(icebergSchema);
   ImmutableList.Builder<GenericRecord> builder = ImmutableList.builder();
   builder.add(record.copy(ImmutableMap.of("col1", 111)));


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to