Member since
01-14-2025
1
Post
0
Kudos Received
0
Solutions
01-14-2025
03:12 AM
Hello! I'm trying to convert float values on my flow files into integers. My Jolt Specification looks like this: [ { "operation": "modify-default-beta", "spec": { "progress": "=toInteger", "setup_value": "=toDouble", "proposed_setup_cost": "=toDouble", "real_setup_cost": "=toDouble", "invoiced_value": "=toDouble", "last_recognized_value": "=toDouble", "starting_date": ["=toDateTime", "yyyy-MM-dd HH:mm:ss", "coerceOrNull"], "last_progress_change": ["=toDateTime", "yyyy-MM-dd HH:mm:ss", "coerceOrNull"], "end_date": ["=toDateTime", "yyyy-MM-dd HH:mm:ss", "coerceOrNull"] } } ] But somehow my "progress" value is still being outputted like a float. If I have the value 100.0, it is not transformed to 100, for example. I also tried using "=toInteger(@(1,value))", but that also didn't worked.
... View more
Labels:
- Labels:
-
Apache NiFi