Github user arina-ielchiieva commented on a diff in the pull request:
https://github.com/apache/drill/pull/821#discussion_r113900140
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/StringFunctionHelpers.java
---
@@ -169,7 +169,7 @@ public static void initCap(int start, int end, DrillBuf
inBuf, DrillBuf outBuf)
if (currentByte >= 0x30 && currentByte <= 0x39) { // 0-9
// noop
} else if (currentByte >= 0x41 && currentByte <= 0x5A) { // A-Z
- currentByte -= 0x20; // Lowercase this character
+ currentByte += 0x20; // Lowercase this character
--- End diff --
I did not notice any significant difference in performance, so will replace
to `Character` methods.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---