-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug] [connector-jdbc] Nullable Column source have null data could be unexpected results. #5560
Conversation
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.
Please add some test case
I don't know how to code this test case. Only simulation and results of bugs were conducted. |
You need merge dev and run CI test |
You can test that insert null and ensure that no errors will be reported when executing the task. |
The problem is that this bug is a data inconsistency issue, and null values do not cause errors. |
Ci. |
5985c83
to
c297c42
Compare
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.
LGTM. @ic4y PTAL
LGTM, but could you add some test case to avoid regression? Thanks! |
I have not found any existing test cases for data consistency, and currently I do not have time to rewrite one. If there are similar test cases in the future, I can supplement them. |
OK for me. Could you add a issue for this TODO? |
After a second consider, I think you can modify exist e2e test case to cover this PR. For example, use postgres, in https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-jdbc-e2e/connector-jdbc-e2e-part-1/src/test/java/org/apache/seatunnel/connectors/seatunnel/jdbc, you can add one row with |
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.
please add test case
There is no existing test case that implements I am really not familiar with this testing framework. |
You need to create an issue, which can be used as another task |
0429980
to
7e0de9f
Compare
Could you push the test case code? So that we can find the problem with you. |
|
@Hisoka-X
|
Already fixed on dev, could you try merge from dev? |
This is run on yesterday. Now I update my branch. |
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.
Added tests, but did not match expectations, resulting in other issues and inconsistent data
...ector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/utils/JdbcUtils.java
Outdated
Show resolved
Hide resolved
… unexpected results.
Waiting CI pass |
BTW, we should make sure #5734 be merged ASAP. |
Yeah, I agree for you. |
… unexpected results. (apache#5560)
… unexpected results. (apache#5560)
… unexpected results. (apache#5560) (#5) Co-authored-by: MoSence <[email protected]>
Purpose of this pull request
Fix. #5559
Does this PR introduce any user-facing change?
yes
How was this patch tested?
Test case see the Issue #5559
Result:
![image](https://private-user-images.githubusercontent.com/2803645/270573155-5ab95e8c-2cfe-4701-8b26-3f0b1b1c735b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3NzY3NDQsIm5iZiI6MTczODc3NjQ0NCwicGF0aCI6Ii8yODAzNjQ1LzI3MDU3MzE1NS01YWI5NWU4Yy0yY2ZlLTQ3MDEtOGIyNi0zZjBiMWIxYzczNWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDVUMTcyNzI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGExMDc4MDA1ZmZjMTUxYmJhZmEzZDdlMDU4MTk3ZjI3YTZiMDlhZTFiZmFlNzczM2ZmNTk0ZmYzMzUxZWY3OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.dly6lzZfUTFVT5xJ6EjsXIFMkuBnX0msoEESSr0FiK4)
Check list
New License Guide
release-note
.