Repository navigation
Conversation
|
@cxzl25 Can we please update the PR description with details on What and Why for the changes ? |
|
Thank you for making a PR, @cxzl25 . +1 for @mystic-lama 's comment. |
jmh to 1.37jmh to 1.37
| .include(BooleanRowFilterBenchmark.class.getSimpleName()) | ||
| .forks(1) | ||
| .build()).run(); | ||
| public static void main(String[] args) { |
There was a problem hiding this comment.
Do you know why this change is required? Apache ORC code follows the official JMHSample file.
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(JMHSample_01_HelloWorld.class.getSimpleName())
.forks(1)
.build();
new Runner(opt).run();
}There was a problem hiding this comment.
'main(String[])' in 'org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark' clashes with 'main(String[])' in 'org.openjdk.jmh.Main'; overridden method does not throw 'org.openjdk.jmh.runner.RunnerException'
Because these Benchmarks inherit extends org.openjdk.jmh.Main, org.openjdk.jmh.Main removed the method throwing RunnerException in 1.23.
openjdk/jmh@4264de9#diff-30878bccaff9f11a64415de78f1feebe304334a314d8bb6f8c7bc50bd21aee19L39
There was a problem hiding this comment.
Oh, does it mean the official JMHSample_01_HellowWorld.java is also broken example?
There was a problem hiding this comment.
JMHSample_01_HelloWorld does not inherit jmh.Main ( extends org.openjdk.jmh.Main )
There was a problem hiding this comment.
Oh, got it. Thanks. Now, I understand.
dongjoon-hyun
left a comment
There was a problem hiding this comment.
To @cxzl25 , I updated the PR description for you. BTW, I have a question on this change, https://github.com/apache/orc/pull/1740/files#r1447688404.
Thanks your help. @dongjoon-hyun |
| - dependency-name: "org.mockito" | ||
| versions: "[5.0.0,)" | ||
| # Pin byte-buddy to 1.12.x aline with mockito | ||
| # Pin byte-buddy to 1.12.x align with mockito |
There was a problem hiding this comment.
This is minor but unrelated change and perhaps can be avoided in this PR.
Let's see what other's think.
There was a problem hiding this comment.
+1 for @mystic-lama 's comment. Please recover this line.
dongjoon-hyun
left a comment
There was a problem hiding this comment.
+1, LGTM.
Let me do the final review and merge this.
### What changes were proposed in this pull request? This PR aims to unpin and upgrade `jmh` to 1.37. ### Why are the changes needed? To use the latest bug fixed version. ### How was this patch tested? ``` cd java ./mvnw clean package -Pbenchmark -DskipTests ``` ### Was this patch authored or co-authored using generative AI tooling? No Closes #1740 from cxzl25/ORC-870. Lead-authored-by: sychen <sychen@ctrip.com> Co-authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 683221a) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
|
Merged to main/2.0 for Apache ORC 2.0.0. Thank you, @cxzl25 and @mystic-lama . |
### What changes were proposed in this pull request? This PR aims to unpin and upgrade `jmh` to 1.37. ### Why are the changes needed? To use the latest bug fixed version. ### How was this patch tested? ``` cd java ./mvnw clean package -Pbenchmark -DskipTests ``` ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#1740 from cxzl25/ORC-870. Lead-authored-by: sychen <sychen@ctrip.com> Co-authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
This PR aims to unpin and upgrade
jmhto 1.37.Why are the changes needed?
To use the latest bug fixed version.
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?
No