Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
05-13-2016
06:44 PM
- last edited on
04-21-2026
05:31 AM
by
GrazittiAPI
Hi,
Does Latest version of NiFi/HDF supports Fractional numbers in expression language? If not do we have any plans to add it?
Thanks,
Jobin George
Created 05-13-2016 06:47 PM
Currently Fractional (aka. "Decimal") numbers are not supported in Expression Language. The "Number" field is backed by java Longs which are only whole numbers. There is currently work being done to add it and relatively recently there was a discussion thread about it[1]. The exact time when it will be included is yet to be determined though.
Edit: Actually I shouldn't make the assumption "fractional == decimal". There are currently no plans to support decimals expressed as fractions, ie. "1/4". There are plans to support decimals expressed using decimal points, ie "0.25". If decimals expressed as fractions is what you need, could you share the use-case?
Created 05-13-2016 06:47 PM
Currently Fractional (aka. "Decimal") numbers are not supported in Expression Language. The "Number" field is backed by java Longs which are only whole numbers. There is currently work being done to add it and relatively recently there was a discussion thread about it[1]. The exact time when it will be included is yet to be determined though.
Edit: Actually I shouldn't make the assumption "fractional == decimal". There are currently no plans to support decimals expressed as fractions, ie. "1/4". There are plans to support decimals expressed using decimal points, ie "0.25". If decimals expressed as fractions is what you need, could you share the use-case?
Created 05-13-2016 07:19 PM
Thanks! My bad, I wanted to know about decimal[0.25]. Glad to know its WIP.