Skip to content

Commit e0b0a66

Browse files
committed
Make FormatOptions.of(format) return CsvOptions if format is CSV
1 parent 3f2799d commit e0b0a66

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/FormatOptions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public static FormatOptions datastoreBackup() {
8585
* Default options for the provided format.
8686
*/
8787
public static FormatOptions of(String format) {
88+
if (format.equals(CSV)) {
89+
return csv();
90+
}
8891
return new FormatOptions(format);
8992
}
9093
}

0 commit comments

Comments
 (0)