nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-2165) PutCassandraQL is handling timestamps as strings
Date Fri, 01 Jul 2016 18:37:11 GMT

    [ https://issues.apache.org/jira/browse/NIFI-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15359442#comment-15359442
] 

ASF GitHub Bot commented on NIFI-2165:
--------------------------------------

GitHub user jeffoxenberg opened a pull request:

    https://github.com/apache/nifi/pull/602

    NIFI-2165: fix support for inserting timestamps into cassandra

    As per https://issues.apache.org/jira/browse/NIFI-2165, fixing support for inserting timestamps
into Cassandra.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jeffoxenberg/nifi NIFI-2165

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/602.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #602
    
----
commit b7c1ebc546bcf554cdfa3b9761596e6e1fcdc27b
Author: jeffoxenberg <joxenberg@gmail.com>
Date:   2016-07-01T18:26:27Z

    NIFI-2165: fix support for inserting timestamps into cassandra

----


> PutCassandraQL is handling timestamps as strings
> ------------------------------------------------
>
>                 Key: NIFI-2165
>                 URL: https://issues.apache.org/jira/browse/NIFI-2165
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.0.0, 0.6.1
>         Environment: Ubuntu 14.04, openjdk version "1.8.0_91"
>            Reporter: Jeff Oxenberg
>            Priority: Minor
>              Labels: cassandra, putcassandraql, timestamp
>             Fix For: 1.0.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> PutCassandraQL fails when attempting to insert a (iso-8601-formatted) timestamp on both
Nifi 0.6 and 1.0 due to handling timestamps as strings.
> Input: 
> FlowFile Attribute Map Content
> Key: 'cql.args.1.type'
>         Value: 'text'
> Key: 'cql.args.1.value'
>         Value: 'temp3'
> Key: 'cql.args.2.type'
>         Value: 'timestamp'
> Key: 'cql.args.2.value'
>         Value: '2016-06-30T20:04:36Z'
> Key: 'cql.args.3.type'
>         Value: 'float'
> Key: 'cql.args.3.value'
>         Value: '6.7'
> Key: 'j.id'
>         Value: 'temp3'
> Key: 'j.ts'
>         Value: '2016-06-30T20:04:36Z'
> Key: 'j.value'
>         Value: '6.7'
> --------------------------------------------------
> INSERT INTO test.test2 (sensor, ts, value) VALUES(?,?,?)
> Output:
> com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested
operation: [timestamp <-> java.lang.String]
> Record does not get inserted into Cassandra
> Expected output:
> Record gets inserted into Cassandra



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message