Skip to main content

Hi, I’m having an issue with the StasticsCalculator returning some nulls for min and max. And also some unexpected rounded max values.

 Input data

 

I’m calculating statistics on avg_dur field and grouping by SEG_ID. Unexpected results highlighted.

 

The avg_dur field is data type real32. For some reason changing the data type to real64 results in the stats being calculated as expected.


The ave_dur field was originally imported from an esri shapefile with data type .

 

Wow, ultra weird. Sounds like a bug. Is there anything in the log file, e.g., warnings? What version of FME are you running?

 


Hi @b-rad Unfortunately this is a known issue, filed as FMEENGINE-82162.  I did find a crazy work-around, which was to add a Creator before the StatisticsCalculator and disable the connection between them.  I don’t guarantee this, but do let me know if it works for you. :^)


Thanks @DanAtSafe. The Creator work around doesn’t seem to help me. But as mentioned I can change to real64 and as a workaround.

 

@virtualcitymatt I’m on 2023.2.1.0 but can also replicated on 2024.0.


Reply