StarRocks / starrocks-connector-for-apache-flink

Apache License 2.0
189 stars 152 forks source link

[Enhancement] Add an option to disable wrapping json to json array. #344

Open wuxueyang96 opened 5 months ago

wuxueyang96 commented 5 months ago

When inserting data like the below:

String[] records = new String[]{
        "[{\"id\":400, \"name\":\"400\"}]",
        "[{\"id\":500, \"name\":\"500\"}]"
};
DataStream<String> source = env.fromElements(records);

It fails since connector wrapped the json array into json array's array.

What type of PR is this:

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

Checklist: