carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipes...@apache.org
Subject carbondata git commit: [CARBONDATA-1357] fix convert bug
Date Fri, 04 Aug 2017 05:07:53 GMT
Repository: carbondata
Updated Branches:
  refs/heads/master 7248d0ed1 -> fdf90a4ed


[CARBONDATA-1357] fix convert bug

fix byte[] to string convert bug

This closes #1228


Project: http://git-wip-us.apache.org/repos/asf/carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/carbondata/commit/fdf90a4e
Tree: http://git-wip-us.apache.org/repos/asf/carbondata/tree/fdf90a4e
Diff: http://git-wip-us.apache.org/repos/asf/carbondata/diff/fdf90a4e

Branch: refs/heads/master
Commit: fdf90a4ed5c4c64584246ed5e960dd0925f74669
Parents: 7248d0e
Author: lionelcao <whucaolu@gmail.com>
Authored: Fri Aug 4 09:40:47 2017 +0800
Committer: Ravindra Pesala <ravi.pesala@gmail.com>
Committed: Fri Aug 4 10:37:16 2017 +0530

----------------------------------------------------------------------
 .../org/apache/carbondata/core/util/DataTypeConverterImpl.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/fdf90a4e/core/src/main/java/org/apache/carbondata/core/util/DataTypeConverterImpl.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/carbondata/core/util/DataTypeConverterImpl.java
b/core/src/main/java/org/apache/carbondata/core/util/DataTypeConverterImpl.java
index 7c9b132..c71a4d0 100644
--- a/core/src/main/java/org/apache/carbondata/core/util/DataTypeConverterImpl.java
+++ b/core/src/main/java/org/apache/carbondata/core/util/DataTypeConverterImpl.java
@@ -19,6 +19,8 @@ package org.apache.carbondata.core.util;
 
 import java.io.Serializable;
 
+import org.apache.carbondata.core.constants.CarbonCommonConstants;
+
 public class DataTypeConverterImpl implements DataTypeConverter, Serializable {
 
   private static final long serialVersionUID = -1718154403432354200L;
@@ -29,7 +31,7 @@ public class DataTypeConverterImpl implements DataTypeConverter, Serializable
{
   }
 
   public Object convertFromByteToUTF8String(Object data) {
-    return data.toString();
+    return new String((byte[]) data, CarbonCommonConstants.DEFAULT_CHARSET_CLASS);
   }
 
   public byte[] convertFromStringToByte(Object data) {


Mime
View raw message