You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ramu (JIRA)" <ji...@apache.org> on 2019/07/05 16:47:00 UTC

[jira] [Resolved] (CAMEL-13700) createRowModel failed to set cell's valueType

     [ https://issues.apache.org/jira/browse/CAMEL-13700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramu resolved CAMEL-13700.
--------------------------
    Resolution: Fixed

> createRowModel failed to set cell's valueType
> ---------------------------------------------
>
>                 Key: CAMEL-13700
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13700
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-hbase
>    Affects Versions: 3.0.0
>            Reporter: kevin.cao
>            Assignee: Ramu
>            Priority: Major
>             Fix For: 3.0.0
>
>
> When 
> {code:java}
> org.apache.camel.component.hbase.HBaseEndpoint#createRowModel
> {code}
> function has been called, following code should check if `valueType` parameter has been set, if so, then set cell's valueType.
> {code:java}
> if (parameters.containsKey(HBaseAttribute.HBASE_VALUE_TYPE.asOption(i))) {
>     String valueType = String.valueOf(parameters.remove(HBaseAttribute.HBASE_VALUE_TYPE.asOption(i)));
>     if (valueType != null && !valueType.isEmpty()) {
>         rowModel.setRowType(getCamelContext().getClassResolver().resolveClass(valueType));
>     }
> }
> {code}
> However, the code set rowModel's rowType instead of cellModel's valueType, and, IMHO, this is not correct.
>  
> My endpoint is configurated as following:
> {code:xml}
> <from uri="hbase:table?operation=CamelHBaseScan&amp;row.family=motion&amp;row.qualifier=aver_max_A&amp;row.valueType=java.lang.Integer" />
> {code}
> Thanks! 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)