Got out-of-order key column: name: "user_id" type: INT is_key: true is_nullable: false
因为user_id为组件列所以在创建ColumnSchema的时候要添加在普通的列的前面
List<ColumnSchema> columns = new ArrayList<>();
columns.add(new ColumnSchema.ColumnSchemaBuilder("user_id", Type.INT32).comment("用户ID").nullable(false).key(true).build());
columns.add(new ColumnSchema.ColumnSchemaBuilder("user_name", Type.SRING).comment("用户名").nullable(true).key(false).build());
如果user_name和user_id的顺序换一下就创建表失败,出现如上错误。