Member since
11-21-2018
2
Posts
0
Kudos Received
0
Solutions
11-23-2018
12:37 PM
Ok. I found a simple solution to convert Scientific Notation To Decimal Notation. I used ExecuteScript processor and i writed a simple script in JavaScript . The code is below: var flowFile = session.get();
if (flowFile != null) {
var date = flowFile.getAttribute('date');
var valueDate= Number(date);
flowFile = session.putAttribute(flowFile, 'date', valueDate);
}
session.transfer(flowFile, REL_SUCCESS)
... View more
11-21-2018
05:32 PM
Hello, I suppose that my problem is very simple. I have a problem with correct convert from Decimal to float in NiFi. I have an attribute originalTime with value 2.0160408003959164E13 When i use UpdateAttributeProcessor and then I write ${original:toNumber()} I get value like this: 20160408003959 I know that correct format is: 20160408003959.166 How is method of correct conversion and how properly get .166?
... View more
Labels:
- Labels:
-
Apache NiFi