[HUDI-485]: corrected the check for incremental sql#2768
[HUDI-485]: corrected the check for incremental sql#2768codope merged 6 commits intoapache:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2768 +/- ##
============================================
- Coverage 52.32% 52.30% -0.02%
Complexity 3689 3689
============================================
Files 483 483
Lines 23095 23095
Branches 2460 2460
============================================
- Hits 12084 12080 -4
- Misses 9942 9946 +4
Partials 1069 1069
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
@vingov for an extra pair of eyes. @pratyakshsharma any testing done for the PR? any way to add a test for the tool? |
|
lgtm, we should use '%s' to replace the from commit time in the line no. 197 with the string format function:
|
|
@pratyakshsharma : can you please respond to vinoth's feedback when you get a chance. |
No I have not done any testing. Currently there is no test coverage for this tool. The lines of code that this PR is touching do not need any test case I believe. We can try to cover the entire tool in general with unit tests though. Do you want me to do that as part of this PR itself? @vinothchandar |
|
yes, please. |
|
I see L197 is not yet fixed. @vingov given you use this or a similar tool daily. Do you want to upstream a patch for this? |
There was a problem hiding this comment.
@pratyakshsharma This should be good to land. Could you please resolve the conflict and address the comment by @vingov ?
|
the code looks good, my last comment was confirming that we should use '%s' so that the String.format function in the L197 will replace it correctly. No further changes are required by @pratyakshsharma! |
|
@codope I need to add few test cases for this PR. Will do that soon! |
|
@pratyakshsharma : Can you please follow up on this and address the feedback. |
|
@pratyakshsharma can we please see this PR through? are you still interested in driving this forward? |
|
Ack. Let me close this in a day or two. |
|
@nsivabalan @vinothchandar please take a pass. We can include this in 0.10.1 release as well. |
vinothchandar
left a comment
There was a problem hiding this comment.
Few nits. but okay with it overall. @codope Can take it from here.
| } | ||
|
|
||
| @Test | ||
| public void testPullerWithoutIncrementalClause() throws IOException, URISyntaxException { |
There was a problem hiding this comment.
these tests only seem to be testing some failure scenarios? not the happy path?
There was a problem hiding this comment.
I was expecting this comment :)
I am actually facing some error with the happy flow test case. Once I am able to fix it, will add it.
There was a problem hiding this comment.
@pratyakshsharma Is the patch ready? If not, can you please update the happy flow test case even if it's failing. I can take over and try to fix it.
|
@codope please take a pass, I have added the happy flow test case now. |
codope
left a comment
There was a problem hiding this comment.
Thanks for addressing the comments and adding the test. Looks good.
* [HUDI-485]: corrected the check for incremental sql * [HUDI-485]: added tests * code review comments addressed * [HUDI-485]: added happy flow test case
* [HUDI-485]: corrected the check for incremental sql * [HUDI-485]: added tests * code review comments addressed * [HUDI-485]: added happy flow test case
* [HUDI-485]: corrected the check for incremental sql * [HUDI-485]: added tests * code review comments addressed * [HUDI-485]: added happy flow test case
Tips
What is the purpose of the pull request
Corrected the check for incremental SQL in HiveIncrementalPuller.java class.
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.