pub fn format_state_name(name: &str, state_name: &str) -> String
Build state name. State is the intermediate state of the aggregate function.