"CREATE TABLE t1(id INT PRIMARY KEY NOT NULL, abbrev CHAR(2), name VARCHAR(128)) STORAGE_FORMAT column_keys;" +
"CREATE TABLE t2(id INT PRIMARY KEY NOT NULL, sid INT, GROUPING FOREIGN KEY(sid) REFERENCES t1(id), name VARCHAR(128));");
int t1 = ddl().getTableId(session(), new TableName(SCHEMA, "t1"));
int t2 = ddl().getTableId(session(), new TableName(SCHEMA, "t2"));
Schema schema = SchemaCache.globalSchema(ddl().getAIS(session()));
RowType t1Type = schema.tableRowType(getTable(t1));
RowType t2Type = schema.tableRowType(getTable(t2));
StoreAdapter adapter = newStoreAdapter(schema);
txnService().beginTransaction(session());
Object[] r1 = { 1L, "MA", "Massachusetts" };