This PR fixes a test called DruidMysqlRouteStrategyTest.testAggregateExpr which can be found here.
What does this test do?
This test is responsible for testing the behavior of the route strategy when processing SQL queries with aggregate functions and different aliasing scenarios. It checks if the result set correctly identifies and names the aggregated columns.
Why does this test fail?
This test fails because we are checking if the HashMap returned by getMergeCols() method contains the column name as a key while not checking for case sensitivity.
How I fixed?
This PR fixes this issue by updating the key name into uppercase.
This PR fixes a test called
DruidMysqlRouteStrategyTest.testAggregateExpr
which can be found here.This test is responsible for testing the behavior of the route strategy when processing SQL queries with aggregate functions and different aliasing scenarios. It checks if the result set correctly identifies and names the aggregated columns.
This test fails because we are checking if the HashMap returned by
getMergeCols()
method contains the column name as a key while not checking for case sensitivity.This PR fixes this issue by updating the key name into uppercase.
The assertion happens here: https://github.com/MyCATApache/Mycat-Server/blob/243539fb74bbdcb9819fecc7e7b50ccf0899e671/src/test/java/io/mycat/route/DruidMysqlRouteStrategyTest.java#L960
You can run the following command to run the test:
Test Environment: