Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7132

PutCassandraQL is handling UUIDs as Strings

    XMLWordPrintableJSON

    Details

      Description

      PutCassandraQL fails when attempting to insert a UUID/timeUUID on Nifi 1.11.1 (and presumably all prior versions), due to handling UUIDs as strings.

      Input:
      FlowFile Attribute Map Content
      Key: 'cql.args.1.type'
      Value: 'timeuuid'
      Key: 'cql.args.1.value'
      Value: '5442b1f6-4c16-11ea-87f5-45a32dbc5199'

      --------------------------------------------------
      INSERT INTO test.test (id) VALUES ( ? )

       
      Output:
      com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [timeuuid <-> java.lang.String]
      Record does not get inserted into Cassandra

      Expected output:
      Record gets inserted into Cassandra

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                woutifier Wouter de Vries
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h