Skip to content

Commit 9a702df

Browse files
committed
---
yaml --- r: 9319 b: refs/heads/master c: 562656d h: refs/heads/master i: 9317: 113d567 9315: 475d311 9311: 36d7b61
1 parent 41cb548 commit 9a702df

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1e4dceda5284def80343ffb43751ffcd56f0ec2f
2+
refs/heads/master: 562656d458d73ee2bb39d07a6622caf44cec2e41
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 1e525ea89a8c2133b947a8f1e3306079d006152d
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/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)