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


   Also, to address your comment that the accessors approach is cleaner, we 
already have two copies of the accessors (in Spark and in API) and running 
evaluators on another object model would require another copy. Moving the 
conversion responsibility to a wrapper means we can use the same accessors in 
other places. And a wrapper also fits well with the need to adapt other record 
models to `StructLike`. We can build a `StructLike` wrapper for Avro records, 
for example.
   
   This doesn't support lists and maps because those can't be used in 
expressions. If we start supporting expressions that operate on collections, we 
would need to build a visitor like you suggested.


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