Skip to content

Commit 508650d

Browse files
committed
---
yaml --- r: 9399 b: refs/heads/spanner-gapic-migration c: 562656d h: refs/heads/master i: 9397: 3f8c9c0 9395: 7db888d 9391: 3555b31
1 parent c1ea457 commit 508650d

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

  • branches/spanner-gapic-migration/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ refs/tags/v0.34.0: bf31760a31a66acb239322a70dcd03dbe1d0c7ca
8080
refs/tags/v0.35.0: c28951c5f4cc97a1be07900d19df6984115a4bd6
8181
refs/tags/v0.36.0: 6b75c61f73e6827b3ca379bd54f88f750290162f
8282
refs/tags/v0.37.0: db2e142f92601709fdd48db159776f905742e30f
83-
refs/heads/spanner-gapic-migration: 1e4dceda5284def80343ffb43751ffcd56f0ec2f
83+
refs/heads/spanner-gapic-migration: 562656d458d73ee2bb39d07a6622caf44cec2e41
8484
refs/tags/v0.38.0: c235ee4df5e1248e1769dae3f86a0d7ab7fd8301
8585
refs/tags/v0.39.0: ab231c9d22475242a43d6d9554aa4a3f736dab01
8686
refs/tags/v0.40.0: a1d5b05206cce7734365f1b910396a2c9d6605ec

branches/spanner-gapic-migration/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/BigQuerySnippets.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -950,15 +950,13 @@ public void runQueryWithTimestampParameters() throws InterruptedException {
950950
// Print the results.
951951
DateTimeFormatter formatter = ISODateTimeFormat.dateTimeNoMillis().withZoneUTC();
952952
for (FieldValueList row : bigquery.query(queryConfig).iterateAll()) {
953-
for (FieldValue val : row) {
954-
System.out.printf(
955-
"%s\n",
956-
formatter.print(
957-
new DateTime(
958-
// Timestamp values are returned in microseconds since 1970-01-01T00:00:00 UTC,
959-
// but org.joda.time.DateTime constructor accepts times in milliseconds.
960-
row.get(0).getTimestampValue() / 1000, DateTimeZone.UTC)));
961-
}
953+
System.out.printf(
954+
"%s\n",
955+
formatter.print(
956+
new DateTime(
957+
// Timestamp values are returned in microseconds since 1970-01-01T00:00:00 UTC,
958+
// but org.joda.time.DateTime constructor accepts times in milliseconds.
959+
row.get(0).getTimestampValue() / 1000, DateTimeZone.UTC)));
962960
System.out.printf("\n");
963961
}
964962
// [END bigquery_query_params_timestamps]

0 commit comments

Comments
 (0)