apache / apache/paimon

[Feature] [arrow] Improve customization capabilities for data type conversion between Paimon and Arrow formats.

Open
#6,693 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
3.4k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
396

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.

### Motivation

paimon-arrow module has a good design for paimon-arrow field type conversions, but the top level class has the fixed type conversions, in some use cases, developers may want to customize the field type conversion process to meet the use-case.

### Solution

We propose improving customization capabilities for data type conversion between Paimon and Arrow formats.Below is the visions of the feature:

1. Enhanced Flexibility:

Users can now provide custom type conversion logic for Paimon-to-Arrow and Arrow-to-Paimon transformations
Support for custom field writer factories through ArrowFieldWriterFactoryVisitor
Backward compatibility maintained with default visitor implementations

2. Improved Extensibility:

Modular design allowing developers to customize specific aspects of the conversion pipeline
Separation of concerns through visitor pattern implementation
No breaking changes to existing API usage

### Anything else?

_No response_

### Are you willing to submit a PR?

- [x] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the paimon-arrow module by locating the top-level Paimon-to-Arrow and Arrow-to-Paimon conversion classes and the ArrowFieldWriterFactoryVisitor entry point. Trace the default visitor implementations and existing field writer factories first; done means custom conversion logic and field writer factories can be supplied without breaking existing API usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, data-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.