rdblue commented on pull request #983:
URL: https://github.com/apache/incubator-iceberg/pull/983#issuecomment-632778769


   You're right that it's more similar to your original commit than to my 
suggestion to use accessors. The other issue with accessors made me think that 
conversion should not be tightly coupled there.
   
   This is also a bit different from your original version: the `GenericRecord` 
class isn't modified. Instead, it is wrapped to produce the internal 
representations. The original version detected when it needed to convert based 
on the requested class, which is what I wanted to avoid. This converts values 
using a list of transforms determined when the wrapper is created. For example, 
if position 5 is a date, then it is always transformed when it is returned. 
This cuts down on the amount of work done fetching each value.


----------------------------------------------------------------
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.

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