Hi Team,

We've recently started testing the behaviour of required vs optional
fields, by creating a table with a required column and trying to insert a
NULL value into it. We've found differing behaviour for each file format:

   - ORC: it allows inserting NULLs into required fields and allows to read
   it back as well
   - AVRO: it fails at write-time, with a seemingly correct error message:
   "java.lang.IllegalArgumentException: Cannot write null to required string
   column"
   - PARQUET: it fails at write-time too, but with an NPE:
   java.lang.NullPointerException at
   
org.apache.iceberg.parquet.ParquetValueWriters$StringWriter.write(ParquetValueWriters.java:326)

Is this a known issue or did we perhaps do something incorrectly in our
tests?
Thanks a lot for any guidance.

Best,

Marton

Reply via email to