-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[FLINK-36578][MySQL] Added modified JsonStringFormatter and option use.legacy.json.format #3658
base: master
Are you sure you want to change the base?
Changes from all commits
542d856
51ddb26
52c808a
1117342
bac5584
bebeaa4
5050a8e
1ca8990
29872a6
426d3e7
64a4a57
638cd21
9ed0778
ffcf1f8
396fab1
37b52cf
401d403
1265453
337b5de
c46890d
945f398
5bf33c9
5dd1f51
285280a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add some tests to verify if we have the same JSON format between snapshot and binlog stage? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added tests for this new option. When Lines 498 to 551 in 337b5de
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,4 +180,22 @@ VALUES (DEFAULT, | |
23, | ||
29, | ||
31, | ||
37); | ||
37); | ||
|
||
CREATE TABLE json_types | ||
( | ||
id SERIAL, | ||
json_c0 JSON, | ||
json_c1 JSON, | ||
json_c2 JSON, | ||
int_c INTEGER, | ||
PRIMARY KEY (id) | ||
) DEFAULT CHARSET=utf8; | ||
|
||
INSERT INTO json_types | ||
VALUES (DEFAULT, | ||
'{"key1":"value1"}', | ||
'{"key1":"value1","key2":"value2"}', | ||
'[{"key1":"value1","key2":{"key2_1":"value2_1","key2_2":"value2_2"},"key3":["value3"],"key4":["value4_1","value4_2"]},{"key5":"value5"}]', | ||
1 | ||
Comment on lines
+185
to
+201
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. test table for various JSON format data |
||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use.legacy.json.format
option for pipeline connector. default istrue
.