[ 
https://issues.apache.org/jira/browse/BEAM-6841?focusedWorklogId=219701&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-219701
 ]

ASF GitHub Bot logged work on BEAM-6841:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Mar/19 23:08
            Start Date: 27/Mar/19 23:08
    Worklog Time Spent: 10m 
      Work Description: chamikaramj commented on pull request #8061: 
[BEAM-6841] Add support for reading query results using the BigQuery storage 
API.
URL: https://github.com/apache/beam/pull/8061#discussion_r269801274
 
 

 ##########
 File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryQuerySource.java
 ##########
 @@ -96,62 +90,35 @@ private BigQueryQuerySource(
     this.query = checkNotNull(query, "query");
     this.flattenResults = checkNotNull(flattenResults, "flattenResults");
     this.useLegacySql = checkNotNull(useLegacySql, "useLegacySql");
-    this.dryRunJobStats = new AtomicReference<>();
     this.priority = priority;
     this.location = location;
     this.kmsKey = kmsKey;
+    queryHelperReference = new AtomicReference<>();
+  }
+
+  /**
+   * Since the query helper reference is declared as transient, neither the 
AtomicReference nor the
+   * structure it refers to are persisted across serialization boundaries. The 
code below is
+   * resilient to the QueryHelper object disappearing in between method calls, 
but the reference
 
 Review comment:
   Same question as above. Why do we need to keep a serialized reference of the 
helper ? I think it better to just keep a serialized (minimum) config object 
and make methods of the helper static.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 219701)

> Support reading query results with the BigQuery storage API
> -----------------------------------------------------------
>
>                 Key: BEAM-6841
>                 URL: https://issues.apache.org/jira/browse/BEAM-6841
>             Project: Beam
>          Issue Type: New Feature
>          Components: io-java-gcp
>            Reporter: Kenneth Jung
>            Assignee: Kenneth Jung
>            Priority: Minor
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to