-
Notifications
You must be signed in to change notification settings - Fork 483
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
ORC-1486: Fixes checkstyle violation in test classes for orc-core
module
#1600
Conversation
e17ecd0
to
28114d5
Compare
cc @mystic-lama |
orc-core
module
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.
I hope we can proceed in this way module by module, @mystic-lama .
@dongjoon-hyun Thank you so much. I only get time during weekend or evening to work on OSS. Sadly got pulled into work, which took that time. I shall try to close things faster. Let me catch up with things and we can get this done ASAP |
-9181829309989854913l}; | ||
long[] inp = new long[]{4513343538618202719L, 4513343538618202711L, | ||
2911390882471569739L, | ||
-9181829309989854913L}; |
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.
Shall we have this block like this? I find it more easy on my eyes. We don't have to fix these things now. I can take care of this later
long[] inp = new long[]{4513343538618202719L, 4513343538618202711L,
2911390882471569739L, -9181829309989854913L};
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.
May I asked which rule complains about that, @mystic-lama ?
As you see, this PR aims to introduce the minimal changes which means to touch only Checkstyle
really complains. The verification is described in the PR description, too.
To simply put, if we mix different themes arbitrarily like that, it tends to make a mistake because of the human error factor. It makes reviewers difficulty to review the PRs. It ends up as a situation we cannot merge it.
Of course, we can take care of it later independently.
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.
I agree with your point. I don't recall the rule, and did not mean to fix it in this PR
This is more for future, when we make code changes. I shall keep an eye for this and next time it hits, may be we can refine the rule.
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.
+1 LGTM
Thanks a lot @dongjoon-hyun
BTW, please note that Apache ORC has 3 year maintenance policy. It means ORC committers need to maintain |
Merged to main for Apache ORC 2.0.
|
Let me make a PR for the rest of module. It seems that we can close this checkstyle task today. |
Here is the PR. |
@dongjoon-hyun This is good to know. |
…odule ### What changes were proposed in this pull request? This PR fixes checkstyle violation in test sources in orc-core module. `Indentation` rule is suppressed in some files explicitly. ### Why are the changes needed? The change shall ensure our test code adhere's to same formatting as our source ### How was this patch tested? Remove the following and run Checkstyle on `core` module. https://github.com/apache/orc/blob/7787669c444d0cf18ba91effbba34b5608370b5b/java/checkstyle-suppressions.xml#L31-L36 ``` $ cd java $ git diff diff --git a/java/checkstyle-suppressions.xml b/java/checkstyle-suppressions.xml index 32e04a588..0256e3b77 100644 --- a/java/checkstyle-suppressions.xml +++ b/java
What changes were proposed in this pull request?
This PR fixes checkstyle violation in test sources in orc-core module.
Indentation
rule is suppressed in some files explicitly.Why are the changes needed?
The change shall ensure our test code adhere's to same formatting as our source
How was this patch tested?
Remove the following and run Checkstyle on
core
module.orc/java/checkstyle-suppressions.xml
Lines 31 to 36 in 7787669
This closes #1590