When creating BigQuery tables using the Java com.google.cloud:google-cloud-bigquery library, I don't see the BIGNUMERIC column data-type in the StandardSQLTypeName enumerations. I see NUMERIC but not BIGNUMERIC . How would I create a table with a BIGNUMERIC column programmatically? Thanks!
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);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.