You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "kevin.cao (JIRA)" <ji...@apache.org> on 2019/06/29 09:49:00 UTC
[jira] [Created] (CAMEL-13700) createRowModel failed to set cell's
valueType
kevin.cao created CAMEL-13700:
---------------------------------
Summary: 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
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)