niuge01 commented on a change in pull request #3564: [CARBONDATA-3655] Support
set base64 string as struct<binary> field value
URL: https://github.com/apache/carbondata/pull/3564#discussion_r364090191
##########
File path:
streaming/src/main/scala/org/apache/carbondata/streaming/parser/FieldConverter.scala
##########
@@ -63,16 +66,22 @@ object FieldConverter {
case b: java.lang.Boolean => b.toString
case s: java.lang.Short => s.toString
case f: java.lang.Float => f.toString
- case bs: Array[Byte] => new String(bs,
- Charset.forName(CarbonCommonConstants.DEFAULT_CHARSET))
+ case bs: Array[Byte] =>
+ if ("base64".equalsIgnoreCase(binaryCodec)) {
Review comment:
will use BinaryDecoder later.
----------------------------------------------------------------
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