Noticed this test (FunctionTests#testMaxOverUnion) also fails on MySQL 5.7 on our nightly CI pipeline, probably for the same reason it fails on MariaDB.