wgtmac commented on PR #1180:
URL: https://github.com/apache/iceberg-cpp/pull/1180#issuecomment-7340829841

   Thanks for exploring this further! I’d prefer a narrower change instead. 
Axiom needs to read Avro manifests for scan planning, and this patch also 
changes the existing writer and manifest serialization paths.
   
   For example, if a caller passes a string literal `"ff"` for a binary 
partition, the partition summary hex-decodes it to one byte `(0xff)`, while the 
manifest entry can now store two ASCII `f` bytes. The previous code rejected 
that type mismatch. There’s also a potential read-side regression. The new 
reader rebuilds the Arrow schema and builder for every batch, including the 
call that discovers EOF. The old reader reused its builder. I haven’t 
benchmarked the impact.
   
   I see a few ways to address this with a smaller change:
   1. Axiom could register its own Avro reader through `ReaderFactoryRegistry`. 
It could use Velox’s Arrow version or avoid Arrow C++ entirely. Axiom would own 
the adapter and its compatibility tests.
   2. We could provide an opt-in nanoarrow-based `iceberg_avro` reader and keep 
it outside the bundle’s dependency chain. Downstreams could share it, and both 
implementations could reuse the Arrow-free schema and projection code. The 
trade-off is maintaining two conversion paths.
   3. We could split out just the reader and let the bundle use it too. This 
gives us one reader to maintain and leaves the writer in the bundle. It would 
still need focused compatibility tests and before/after benchmarks for existing 
bundle readers.
   
   Could we start with a reader-only proposal? That would let us evaluate the 
dependency change on its own and discuss any writer or manifest changes 
separately.
   
   cc @zhjwpku @manuzhang 


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