You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by GitBox <gi...@apache.org> on 2022/02/14 08:04:32 UTC

[GitHub] [incubator-linkis] liangqilang opened a new issue #1454: [Bug] There is a compatibility issue with this class "CustomerDelimitedJSONSerDe"

liangqilang opened a new issue #1454:
URL: https://github.com/apache/incubator-linkis/issues/1454


   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-cg-engineConnplugin
   
   ### What happened + What you expected to happen
   
   When I change the version of hive to "1.1.0-cdh5.9.2", this class will have a incompatibility problem. 
   code : 
   case INTERVAL_YEAR_MONTH: {
                   wc = ((HiveIntervalYearMonthObjectInspector) oi).getPrimitiveWritableObject(o);
                   binaryData = Base64.encodeBase64(String.valueOf(wc).getBytes());
                   break;
               }
               case INTERVAL_DAY_TIME: {
                   wc = ((HiveIntervalDayTimeObjectInspector) oi).getPrimitiveWritableObject(o);
                   binaryData = Base64.encodeBase64(String.valueOf(wc).getBytes());
                   break;
               }
   
   ### Relevent platform
   
   hive to "1.1.0-cdh5.9.2"
   
   ### Reproduction script
   
   remove this code :
   
   case INTERVAL_YEAR_MONTH: {
                   wc = ((HiveIntervalYearMonthObjectInspector) oi).getPrimitiveWritableObject(o);
                   binaryData = Base64.encodeBase64(String.valueOf(wc).getBytes());
                   break;
               }
               case INTERVAL_DAY_TIME: {
                   wc = ((HiveIntervalDayTimeObjectInspector) oi).getPrimitiveWritableObject(o);
                   binaryData = Base64.encodeBase64(String.valueOf(wc).getBytes());
                   break;
               }
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org