rzhang10 opened a new pull request, #5738:
URL: https://github.com/apache/iceberg/pull/5738

   … defaultMap
   
   This PR is to demonstrate how to use the in-memory default values parsed 
from `SingleValueParser` (#4871) and construct a constant default value map out 
of it to feed into `SparkAvroReader`. And the test shows that the default 
values can correctly be read.
   
   I added a TODO comment in `BuildAvroProjection` to showcase when later we 
have `field.initialDefaultValue()` API (#defalt value api #4732) is in place, 
we can build such constant map there and can also support schema evolution with 
adding a required field with default value.
   
   If this PR's approach looks good, we can then implement the logic to 
construct such a default map in `BuildAvroProjection`
   
   @rdblue please review, cc @wmoustafa


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to