apache / paimon

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations.
https://paimon.apache.org/
Apache License 2.0
2.44k stars 959 forks source link

[Improve] Use auto-service optimize SPI registration #956

Closed TyrantLucifer closed 1 year ago

TyrantLucifer commented 1 year ago

Search before asking

Motivation

Now paimon use the origin method to load SPI such as org.apache.paimon.fs.FileIOLoader, auto-service is a good tool to use annotation to genreate META-INT/services/xxxxxx automatic when compile stage.

Solution

No response

Anything else?

No response

Are you willing to submit a PR?

JingsongLi commented 1 year ago

Thanks @TyrantLucifer for reporting.

Maybe it is not the time. Currently, our SPIs are simple, we don't need to introduce a mechanism to make this complex.