presto-kudu/src/main/java/io/prestosql/plugin/kudu/schema/SchemaEmulationByTableNameConvention.java/SchemaEmulationByTableNameConvention/createAndFillSchemasTable
class SchemaEmulationByTableNameConvention:    private void createAndFillSchemasTable(KuduClient client)
            throws KuduException
    {
        List<String> existingSchemaNames = listSchemaNamesFromTablets(client);
        ColumnSchema schemaColumnSchema = new ColumnSchema.ColumnSchemaBuilder("schema", Type.STRING)
                .key(true).build();
        Schema schema = new Schema(ImmutableList.of(schemaColumnSchema));
        CreateTableOptions options = new CreateTableOptions();
        options.addHashPartitions(ImmutableList.of(schemaColumnSchema.getName()), 2);
        KuduTable schemasTable = client.createTable(rawSchemasTableName, schema, options);
        KuduSession session = client.newSession();
        try {
            session.setFlushMode(SessionConfiguration.FlushMode.AUTO_FLUSH_BACKGROUND);
            for (String schemaName : existingSchemaNames) {
                Insert insert = schemasTable.newInsert();
                insert.getRow().addString(0, schemaName);
                session.apply(insert);
            }
        }
        finally {
            session.close();
        }
    }