Change final `select` to `select * from test group by true having max(length(c));` to get only the full length string result.
Change final `select` to `select * from test group by true having max(length(c));` to get only the full length string result.