int cid = createTable("schem", "cust", "id int not null primary key", "lat decimal(11,07)", "lon decimal(11,7)",
"name varchar(32)");
int oid = createTable("schem", "orders", "id int not null primary key", "cid int not null", "colour varchar(3)",
akibanFK("cid", "cust", "id"));
TableName groupName = ais().getTable("schem", "cust").getGroup().getName();
createSpatialGroupIndex(groupName, "idxgeogrp", 0, Spatial.LAT_LON_DIMENSIONS, Index.JoinType.LEFT,
"cust.lat", "cust.lon", "orders.colour");
writeRow(cid, 10L, "10", "11", "foo");
writeRow(oid, 20L, 10L, "red");
getStats(cid);
serviceManager().getDXL().ddlFunctions().updateTableStatistics(session(),
new TableName("schem", "orders"), Collections.singleton("idxgeogrp"));
getStats(cid);
getStats(cid);
}