使用 Java com.google.cloud:google-cloud-bigquery库创建 BigQuery 表时,我在StandardSQLTypeName枚举中看不到BIGNUMERIC列数据类型。我看到NUMERIC但没有看到BIGNUMERIC。如何以编程方式创建带有 BIGNUMERIC 列的表?谢谢!
Field f1 = Field.newBuilder("first_name", StandardSQLTypeName.STRING).build();
Field f2 = Field.newBuilder("score", StandardSQLTypeName.NUMERIC).build();
Schema schema = Schema.of(Arrays.asList(f1,f2));
TableId tableId = TableId.of("my_data_set", "tbl_people"));
TableDefinition tableDefinition = StandardTableDefinition.of(schema);
TableInfo tableInfo = TableInfo.newBuilder(tableId, tableDefinition).build();
bigQuery.create(tableInfo);