Also, I'll use this thread to bring something about PutMongoRecord into the
mailing list for other Mongo users to see.

PutMongoRecord cannot support more than document replacement updates
because the Mongo update operators use "$" which is an illegal starting
character in Avro. So you cannot define a Record API-compliant schema that
corresponds to a partial update operation. You also, unfortunately, cannot
do that with extended JSON features like date handling. You have to use the
Avro and Record API-based methods for representing a Mongo date field when
handling records.

On Wed, Nov 15, 2017 at 1:32 PM, DENIMAL Thomas <[email protected]>
wrote:

> No one with the same issue ?
>
> On 2017-11-04 14:18, DENIMAL Thomas <[email protected]> wrote:
> > Hello ,>
> > I'm using NIFI 1.4.0 with Mongodb 3.2.17.>
> >
> >
> >
> > Is it possible to use a composite key for "Update Query key"  parameter
> with PutMongo processor ?>
> > My collection "primary key" is a composite key of 2 columns, SIREN &
> NIC,  (I'm using a composite unique index to ensure uniqueness)>
> >
> > I want to be able to make upsert operations on that collection with
> Nifi.>
> >
> > Thanks for your help>
> > Regards>
> > Thomas DENIMAL>
> >
>

Reply via email to