-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-3401] fix NPE caused by incorrect beforeKeyGenClassName validation #4774
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
Conversation
|
@YannByron : Can you review please. |
|
@todd5167 LGTM. But if you show some codes or steps to indicate how to reproduce this , it will be nice. |
@YannByron Execute insert statement using spark sql,with the default KEYGEN_CLASS, the exception occurs when the RecordKey is generated. e.g.:INSERT into |
|
@todd5167 I create a mor table, and insert some data, but i can reproduce this issues. can you give the complete sqls please? the codes that i test like this: |
@YannByron You only need to verify whether the current return value is an empty string or Null. |
|
@todd5167 I know this pr can work and have no side effect. Sorry for my insistence. i'm just a little pertinacious to find a reproducible steps that cause NPE here. |
|
@nsivabalan if you have no other updates, please merge it. |
|
thanks Yann. |
Tips
What is the purpose of the pull request
Brief change log
(for example:)
Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Committer checklist
Has a corresponding JIRA in PR title & commit
Commit message is descriptive of the change
CI is green
Necessary doc changes done or have another open PR
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.