Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongChuong committed Sep 26, 2024
1 parent 53107c4 commit 4230a55
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ public String getMetadataCacheMode() {
abstract String getMetadataCacheModeInner();

/**
* Returns the maximum staleness of data that could be returned when the table is queried. Staleness encoded as a string encoding of sql IntervalValue type.
* Returns the maximum staleness of data that could be returned when the table is queried.
* Staleness encoded as a string encoding of sql IntervalValue type.
*
* @see <a
* href="hhttps://cloud.google.com/bigquery/docs/reference/rest/v2/tables#resource:-table">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,14 @@ public Table getTable(
String projectId, String datasetId, String tableId, Map<Option, ?> options) {
try {
validateRPC();
Table ans = bigquery
.tables()
.get(projectId, datasetId, tableId)
.setPrettyPrint(false)
.setFields(Option.FIELDS.getString(options))
.setView(getTableMetadataOption(options))
.execute();
Table ans =
bigquery
.tables()
.get(projectId, datasetId, tableId)
.setPrettyPrint(false)
.setFields(Option.FIELDS.getString(options))
.setView(getTableMetadataOption(options))
.execute();
return ans;
} catch (IOException ex) {
BigQueryException serviceException = translate(ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,8 @@ public void testCreateExternalTable() throws InterruptedException {

ExternalTableDefinition externalTableDefinition =
ExternalTableDefinition.of(
"gs://" + BUCKET + "/" + JSON_LOAD_FILE, TABLE_SCHEMA, FormatOptions.json()).toBuilder()
"gs://" + BUCKET + "/" + JSON_LOAD_FILE, TABLE_SCHEMA, FormatOptions.json())
.toBuilder()
.setMaxStaleness("INTERVAL 15 MINUTE")
.build();
TableInfo tableInfo = TableInfo.of(tableId, externalTableDefinition);
Expand Down

0 comments on commit 4230a55

Please sign in to comment.