[ https://issues.apache.org/jira/browse/CAMEL-13700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramu updated CAMEL-13700: ------------------------- Affects Version/s: (was: 2.24.0) 3.0.0 > 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, 2.23.4, 2.24.2, 2.25.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&row.family=motion&row.qualifier=aver_max_A&row.valueType=java.lang.Integer" > /> > {code} > Thanks! -- This message was sent by Atlassian JIRA (v7.6.3#76005)