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 15:23:00 UTC
[jira] [Assigned] (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 reassigned CAMEL-13700:
----------------------------
Assignee: Ramu
> 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: 2.24.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)