TableName tableName = schemaManager().createTableDefinition(session, table);
AkibanInformationSchema onlineAIS = schemaManager().getOnlineAIS(session);
int onlineTableID = onlineAIS.getTable(table.getName()).getTableId();
List<TableName> tableNames = getTableNames(session, server, queryExpression, table);
if(tableNames.size() > 1)
throw new UnsupportedCreateSelectException();
for( TableName name : tableNames){
ChangeSet fromChangeSet = buildChangeSet(onlineAIS.getTable(name), queryExpression, onlineTableID);
schemaManager().addOnlineChangeSet(session, fromChangeSet);
}
ChangeSet toChangeSet = buildChangeSet(onlineAIS.getTable(tableName), queryExpression, onlineTableID);