public void dropGroupIndexWithNoData() throws Exception {
int pid = createTable("s", "p", "id int not null primary key, name varchar(32)");
int cid = createTable("s", "c", "id int not null primary key, pid int, val int, grouping foreign key(pid) references p(id)");
Table p = getTable(pid);
Table c = getTable(cid);
Index index = createLeftGroupIndex(p.getGroup().getName(), "name_val", "p.name", "c.val");
ddl().dropGroupIndexes(session(), p.getGroup().getName(), Collections.singleton("name_val"));
ddl().dropTable(session(), c.getName());
expectNoTree(index);
ddl().dropTable(session(), p.getName());
expectNoTree(c);