seatunnel icon indicating copy to clipboard operation
seatunnel copied to clipboard

[Hotfix][Core] Fix the NullPointException for the json config of the job without pluginname

Open dailai opened this issue 1 year ago • 1 comments

Purpose of this pull request

When we use the json config of the job define that without pluginname, this case will throw NullPointerException. 截屏2024-05-09 08 17 40

Like this: { "env": { "parallelism": 4, "job.mode": "BATCH" }, "source": [ { "result_table_name": "fake", "row.num": 100, "schema": { "fields": { "name": "string", "age": "int", "card": "int" } } } ], "transform": [ ], "sink": [ { "source_table_name": "fake1" } ] }

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

  • [ ] If any new Jar binary package adding in your PR, please add License Notice according New License Guide
  • [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
  • [ ] If you are contributing the connector code, please check that the following files are updated:
    1. Update change log that in connector document. For more details you can refer to connector-v2
    2. Update plugin-mapping.properties and add new connector information in it
    3. Update the pom file of seatunnel-dist
  • [ ] Update the release-note.

dailai avatar May 09 '24 06:05 dailai

I think we should check flink and spark job too.

Yes,

I think we should check flink and spark job too.

That's right. I haven't committed my code yet

dailai avatar May 09 '24 06:05 dailai