Sorry, hit send to quickly:

Hi,

Is it possible to do something like this in a QueryRecord processor:

SELECT
  message,
  ${file.lastModifiedTime} AS lmt
FROM
FLOWFILE

?

i.e. access a flowfile attribute? The Record Reader is a json, that has the 
“message” field, the Record Writer is also a JSON, with a message and lmt field.

I was hoping that, in this way, it would have been easy to add attributes to 
json’s (or other things) without using the Executescript processor

(in reality I wanted some excuses to familiarize myself with all the new 
goodies you introduced ??)

Thanks in advance, and sorry for the double email.


Giovanni Lanzani
Chief Science Officer GoDataDriven
T: @gglanzani
M: +31 6 5120 6163

From: Giovanni Lanzani<mailto:[email protected]>
Sent: Wednesday, June 7, 2017 3:56 PM
To: [email protected]<mailto:[email protected]>
Subject: Expression language in QueryRecord

Hi,

Is it possible to do something like this in a QueryRecord processor:

SELECT
  message,
  ${file.lastModifiedTime} AS lmt

Giovanni Lanzani
Chief Science Officer GoDataDriven
T: @gglanzani
M: +31 6 5120 6163

Reply via email to