apache / seatunnel

SeaTunnel is a next-generation super high-performance, distributed, massive data integration tool.
https://seatunnel.apache.org/
Apache License 2.0
8.06k stars 1.83k forks source link

[hotfix] fix config parse issue when integration with web #7960

Closed liunaijie closed 2 weeks ago

liunaijie commented 3 weeks ago

Purpose of this pull request

fix issue https://github.com/apache/seatunnel/issues/5700

When inergration with seatunnel-web, In some cases the config file parse will got exception.

Some detail information: If only define one source ( or one sink ). The ConfigFactory.parseFile() method will parse the source as a SimpleConfigObject instead of SimpleConfigList. So when we case source as List<Map> will get exception.

This is a hotfix.

Does this PR introduce any user-facing change?

How was this patch tested?

Check list