Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wuxueyang96
Copy link

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:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr will affect users' behaviors
  • This pr needs user documentation (for new or modified features or behaviors)
  • I have added documentation for my new feature or new function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants