Sort output of SHOW FUNCTIONS case-insensitive
@@ -538,7 +538,10 @@ final class ShowQueriesRewrite
.collect(toImmutableList())),
aliased(new Values(rows.build()), "functions", ImmutableList.copyOf(columns.keySet())),
ordering(
- ascending("function_name"),
+ new SortItem(
+ functionCall("lower", identifier("function_name")),
+ SortItem.Ordering.ASCENDING,
+ SortItem.NullOrdering.UNDEFINED),
ascending("return_type"),
ascending("argument_types"),
ascending("function_type")));
