public Table createTable(String tableName, String fieldName) {
    // [START ]
    Schema schema = Schema.of(Field.of(fieldName, LegacySQLTypeName.STRING));
    StandardTableDefinition definition =
        StandardTableDefinition.newBuilder()
            .setSchema(schema)
            .setTimePartitioning(TimePartitioning.of(TimePartitioning.Type.DAY))
            .build();
    Table table = dataset.create(tableName, definition);
    // [END ]
    return table;
  }
public Table createTable ( String tableName , String fieldName ) { Schema schema = Schema . of ( Field . of ( fieldName , LegacySQLTypeName . STRING ) ) ; StandardTableDefinition definition = StandardTableDefinition . newBuilder ( ) . setSchema ( schema ) . setTimePartitioning ( TimePartitioning . of ( TimePartitioning . Type . DAY ) ) . build ( ) ; Table table = dataset . create ( tableName , definition ) ; return table ; }
[VARIABLE “my_field”]