-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](Nereids) Refactor character conversion to use Java 8's grammar #37773
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
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
TPC-H: Total hot run time: 39967 ms |
TPC-DS: Total hot run time: 172980 ms |
ClickBench: Total hot run time: 31.33 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
run buildall |
TPC-H: Total hot run time: 40154 ms |
TPC-DS: Total hot run time: 173077 ms |
ClickBench: Total hot run time: 30.8 s |
|
run external |
|
run buildall |
TPC-H: Total hot run time: 39764 ms |
TPC-DS: Total hot run time: 173882 ms |
ClickBench: Total hot run time: 30.41 s |
|
run cloud_p1 |
|
run buildall |
TPC-H: Total hot run time: 39557 ms |
TPC-DS: Total hot run time: 173929 ms |
ClickBench: Total hot run time: 31.54 s |
| if (altValue != null && altValue.length() > 0) { | ||
| try { | ||
| return Character.toString((char) (Byte.parseByte(altValue) + 256) % 256); | ||
| return String.valueOf((char) (Byte.parseByte(altValue) + 256) % 256); |
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.
| return String.valueOf((char) (Byte.parseByte(altValue) + 256) % 256); | |
| return Character.toString((char) ((Byte.parseByte(altValue) + 256) % 256)); |
|
run buildall |
TPC-H: Total hot run time: 40575 ms |
TPC-DS: Total hot run time: 173908 ms |
ClickBench: Total hot run time: 30.58 s |
|
PR approved by at least one committer and no changes requested. |
fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java
Outdated
Show resolved
Hide resolved
|
run buildall |
TPC-H: Total hot run time: 40104 ms |
TPC-DS: Total hot run time: 173499 ms |
ClickBench: Total hot run time: 30.44 s |
|
run buildall |
1 similar comment
|
run buildall |
TPC-H: Total hot run time: 40022 ms |
TPC-DS: Total hot run time: 174484 ms |
ClickBench: Total hot run time: 30.66 s |
|
run p0 |
c8e68f3 to
2149d9c
Compare
|
run buildall |
intro by #37638
Update character to string conversion logic to leverage Java 8's String.valueOf() method, replacing the older Character.toString(). This change improves code readability and aligns with modern Java practices while maintaining existing functionality.