public static Schema getAllTypesSchema() {
    return new org.apache.kudu.Schema(Arrays.asList(
        new ColumnSchema.ColumnSchemaBuilder("key", Type.INT8).key(true)
            .comment("The key column.").build(),
        new ColumnSchema.ColumnSchemaBuilder("int16", Type.INT16).build(),
        new ColumnSchema.ColumnSchemaBuilder("int32", Type.INT32).build(),
        new ColumnSchema.ColumnSchemaBuilder("int64", Type.INT64).build(),
        new ColumnSchema.ColumnSchemaBuilder("bool", Type.BOOL).build(),
        new ColumnSchema.ColumnSchemaBuilder("float", Type.FLOAT).build(),
        new ColumnSchema.ColumnSchemaBuilder("double", Type.DOUBLE).build(),
        new ColumnSchema.ColumnSchemaBuilder("string", Type.STRING).build(),
        new ColumnSchema.ColumnSchemaBuilder("binary", Type.BINARY).build(),
        new ColumnSchema.ColumnSchemaBuilder("timestamp", Type.UNIXTIME_MICROS).build(),
        new ColumnSchema.ColumnSchemaBuilder("decimal", Type.DECIMAL)
            .typeAttributes(new ColumnTypeAttributes.ColumnTypeAttributesBuilder()
                .precision(5).scale(3).build())
            .build(),
        new ColumnSchema.ColumnSchemaBuilder("null", Type.STRING).nullable(true).build(),
        new ColumnSchema.ColumnSchemaBuilder("default", Type.INT32).defaultValue(1).build()
    ));
  }
Utilities for shared kudu-handler testing logic.
kudu-handler/src/test/org/apache/hadoop/hive/kudu/KuduTestUtils.java