nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Wing <jvw...@gmail.com>
Subject Re: PutDynamodb adding multiple attributes
Date Tue, 02 Oct 2018 07:34:15 GMT
I believe you would have to use multiple processors to update multiple attributes.

> On Oct 2, 2018, at 8:13 AM, Krish Kumar <krish.kumar@mail.com> wrote:
> 
> Hello,
> 
> I need some advice about the nifi PutDynamodb processor.
> 
> I have the following table:
> ID | forename | surname
> 
> The Id is the unique key for the table. The flowfile payload is:
> 
> {
> "forename":"jo",
> "surname":"bloggs"
> }
> 
> Using the PutDynamodb processor the whole payload gets added to a single field in the
dynamodb table, I was hoping to update multiple fields (forename and surname).
> 
> I also tried the following as the payload:
> { 
> "forename" :
> { 
> "S" : "jo" 
> }, 
> "surname" : 
> { 
> "S" : "bloggs" 
> } 
> }
> 
> Unfortunately the whole json document got added into a single field.
> 
> Has anyone else used this processor to update multiple table fields in one go? 
> 
> Or should I be running this processor multiple times to update each field using the same
key value?
> 
> Thanks
> 
> K

Mime
View raw message