[Improve] improve avro format convert#6082
Conversation
|
Add end to end data End to end test , refer to checkDebeziumFormat() |
04ed0db to
4474b70
Compare
886a416 to
f158cf1
Compare
| }, | ||
| { | ||
| field_name = c_string | ||
| field_type = string | ||
| field_value = [ | ||
| { | ||
| rule_type = MIN_LENGTH | ||
| rule_value = 6 | ||
| }, | ||
| { | ||
| rule_type = MAX_LENGTH | ||
| rule_value = 6 | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
There was a problem hiding this comment.
assert sink can't do some equal check, so i add the data check in code
There was a problem hiding this comment.
assert sink can't do some equal check, so i add the data check in code
But you can write it to a database such as pg and then read it to make sure the input and output are consistent,The type is only one aspect of the test and we must make sure that the data values are exactly the same
There was a problem hiding this comment.
yeah, so i add the data check after job finish, read data from kafka topic and verify the data consistent
There was a problem hiding this comment.
yeah, so i add the data check after job finish, read data from kafka topic and verify the data consistent
ok for me.
There was a problem hiding this comment.
Hi @zhilinli123 I update the code.
In this update, it can verify all field value and type. also can test the serialize (ST row -> Avro Generic Record -> bytes ) and deserialize (bytes -> Avro Generic Record -> ST Row ). I think this test can cover this feature.
c4389c8 to
45f1d74
Compare
|
Add a reference to the description of the document information: |
|
Wait CI, looks good, can you add documentation about avro for this |
|
@Hisoka-X @zhilinli123 added another commit to fix bytes type convert. and add type check in fake source result 7235aed |
|
waiting for ci ok |

Purpose of this pull request
this pr #5084 bring in avro format to kafka.
But there has some issue when type convert, and the previous CI has't verify the convert issue.
So this pr has some improvemant about the avro type convert. and update the CI to check converted data value and type consistent.
Does this PR introduce any user-facing change?
How was this patch tested?
use the exist e2e
Check list
New License Guide
release-note.