assertEquals("quotes", response.rows()[0][1]);
}
@Test
public void testSelectGlobalExpressionGroupBy() throws Exception {
SQLResponse response = transportExecutor.exec("select count(*), table_name, sys.cluster.name from sys.shards " +
"group by sys.cluster.name, table_name order by table_name");
assertEquals(3, response.rowCount());
assertEquals(10L, response.rows()[0][0]);
assertEquals("blobs", response.rows()[0][1]);
assertEquals(GLOBAL_CLUSTER.clusterName(), response.rows()[0][2]);
assertEquals(10L, response.rows()[1][0]);
assertEquals("characters", response.rows()[1][1]);
assertEquals(GLOBAL_CLUSTER.clusterName(), response.rows()[1][2]);
assertEquals(10L, response.rows()[2][0]);
assertEquals("quotes", response.rows()[2][1]);
assertEquals(GLOBAL_CLUSTER.clusterName(), response.rows()[2][2]);
}