ajantha-bhat commented on a change in pull request #3251: [CARBONDATA-3408] 
CarbonSession partition support binary data type
URL: https://github.com/apache/carbondata/pull/3251#discussion_r291458539
 
 

 ##########
 File path: core/src/main/java/org/apache/carbondata/core/util/DataTypeUtil.java
 ##########
 @@ -478,7 +478,12 @@ public static Object 
getDataDataTypeForNoDictionaryColumn(String dimensionValue,
     } else if (actualDataType == DataTypes.TIMESTAMP) {
       return ByteUtil.toXorBytes((Long) dimensionValue);
     } else if (actualDataType == DataTypes.BINARY) {
-      return (byte[]) dimensionValue;
+      if (dimensionValue instanceof String) {
+        return ((String) dimensionValue).getBytes(
 
 Review comment:
   Need to decode here (base 64 or hex)  and return the decoded bytes ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to