chenghuichen opened a new issue, #7655:
URL: https://github.com/apache/paimon/issues/7655

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/paimon/issues) 
and found nothing similar.
   
   
   ### Motivation
   
   Paimon Java already supports the VARIANT type, but pypaimon has no 
equivalent implementation. This PR adds VARIANT read/write support to pypaimon, 
enabling Python-based compute engines to integrate it. For example, Daft is 
planning [native VARIANT 
support](https://docs.daft.ai/en/stable/roadmap/#future-work) at the engine 
level.
   
   The ideal long-term solution is to wait for PyArrow's official Variant 
support ([apache/arrow#45937](https://github.com/apache/arrow/issues/45937)), 
which would guarantee both correctness and performance from the upstream 
ecosystem. We should continue tracking that progress.
   
   That said, a Python-based implementation now is a reasonable short-term 
step: users and compute engines can begin integrating VARIANT support early, 
and the underlying implementation can later be swapped for PyArrow's native one 
without breaking existing users.
   
   Moreover, several aspects of VARIANT integration are inherently the 
responsibility of PyPaimon itself and cannot be delegated to PyArrow — for 
example, shredded column pruning and shredded column predicate pushdown. These 
will remain part of pypaimon regardless of upstream changes.
   
   ### Solution
   
   This work is broken into three parts:
   
   1. **VARIANT read/write support** — plain VARIANT encoding and shredded 
VARIANT encoding (Parquet Variant shredding spec)
   2. **Shredded column pruning** — avoid reading shredded sub-columns that are 
not referenced by the query
   3. **Shredded column predicate pushdown** — push filters down to individual 
shredded sub-columns to skip irrelevant row groups
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


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

Reply via email to