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

[Bug][connector-jdbc] JDBC get primitive type null value bug (#6567) #6569

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

Conversation

lastbus
Copy link

@lastbus lastbus commented Mar 25, 2024

Purpose of this pull request

According to the JDK JDBC interface, when converting to a primitive type, if the column value was null, the returned values would be the default value of the corresponding primitive type. For example if the value of an type int in MySQL database is null, but in Hive it will be 0. This is a bug.

Does this PR introduce any user-facing change?

No

How was this patch tested?

yes

Check list

No

@Hisoka-X
Copy link
Member

Thanks @lastbus for open this PR! Could you follow the guide to open ci on your fork repository? https://github.com/apache/seatunnel/pull/6569/checks?check_run_id=23047162515. Also, please add test case for this bug.

@Hisoka-X
Copy link
Member

cc @mosence

@Hisoka-X
Copy link
Member

Could you add a negative test case to prove the change worked? You can add it into jdbc e2e test case.

@Hisoka-X
Copy link
Member

By the way, we try fix it before with #5560

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

Successfully merging this pull request may close these issues.

2 participants