You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by sk...@apache.org on 2019/07/24 17:27:10 UTC
[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5382 : Improved
performace with Bulk operations over iterations (addendum)
This is an automated email from the ASF dual-hosted git repository.
skadam pushed a commit to branch 4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.x-HBase-1.3 by this push:
new dbbd7ef PHOENIX-5382 : Improved performace with Bulk operations over iterations (addendum)
dbbd7ef is described below
commit dbbd7ef4805caf3ce07b0aace44fda756324860c
Author: Viraj Jasani <vi...@gmail.com>
AuthorDate: Wed Jul 24 18:21:06 2019 +0530
PHOENIX-5382 : Improved performace with Bulk operations over iterations (addendum)
Signed-off-by: s.kadam <sk...@apache.org>
---
.../src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java b/phoenix-core/src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java
index 59ed9cf..024e3cd 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java
@@ -158,7 +158,11 @@ public class CSVCommonsLoader {
* @return
*/
public static char asControlCharacter(char delimiter) {
- return CTRL_CHARACTER_TABLE.getOrDefault(delimiter, delimiter);
+ if(CTRL_CHARACTER_TABLE.containsKey(delimiter)) {
+ return CTRL_CHARACTER_TABLE.get(delimiter);
+ } else {
+ return delimiter;
+ }
}
/**