PutSql - date format error

前端 未结 1 1777
说谎
说谎 2021-01-27 04:50

I\'m trying to read data from \'Teradata\' and populate the same to \'Oracle\' database. Please find below my flow,

\'ExecuteSQL\' -> \'SplitAvro\' -> \'ConvertAvroToJSO

相关标签:
1条回答
  • 2021-01-27 05:33

    It looks like you may be running into NIFI-2625. In an upcoming release of NiFi (due to NIFI-3430), you may be able to work around this by specifying the date format in an attribute, however that might not fix the truncated values you are seeing.

    If you know the name of the field (or index into a JSON array, such as "7" above which is really index 6 in a JSON array) that contains the timestamp value, you could use EvaluateJsonPath ahead of ConvertJSONToSQL, to ensure you retain the correct original value (let's say you call the attribute sql.args.7.original). Then after ConvertJSONToSQL you could use UpdateAttribute to replace the incorrect/truncated value with the correct original one, perhaps by setting the attribute sql.args.7.value to ${sql.args.7.original}.

    0 讨论(0)
提交回复
热议问题