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

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

                Author: ASF GitHub Bot
            Created on: 30/Jun/18 03:35
            Start Date: 30/Jun/18 03:35
    Worklog Time Spent: 10m 
      Work Description: kennknowles commented on a change in pull request 
#5788: [BEAM-4652] Allow PubsubIO to read public data
URL: https://github.com/apache/beam/pull/5788#discussion_r199311789
 
 

 ##########
 File path: 
sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/meta/provider/pubsub/PubsubJsonIT.java
 ##########
 @@ -229,31 +231,24 @@ public void testSQLLimit() throws SQLException, 
IOException, InterruptedExceptio
     // However, because statement.executeQuery is a blocking call, it has to 
be put into a
     // seperate thread to execute.
     ExecutorService pool = Executors.newFixedThreadPool(1);
-    pool.execute(
-        new Runnable() {
-          @Override
-          public void run() {
-            try {
-              ResultSet resultSet =
-                  statement.executeQuery("SELECT message.payload.id FROM 
message LIMIT 3");
-              assertTrue(resultSet.next());
-              assertTrue(resultSet.next());
-              assertTrue(resultSet.next());
-              assertFalse(resultSet.next());
-              checked = true;
-            } catch (SQLException e) {
-              LOG.warn(e.toString(), e);
-            }
-          }
-        });
+    Future<List<String>> queryResult =
 
 Review comment:
   FYI @amaliujia 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 117746)
    Time Spent: 5h 40m  (was: 5.5h)

> PubsubIO: create subscription on different project than the topic
> -----------------------------------------------------------------
>
>                 Key: BEAM-4652
>                 URL: https://issues.apache.org/jira/browse/BEAM-4652
>             Project: Beam
>          Issue Type: New Feature
>          Components: io-java-gcp
>            Reporter: Kenneth Knowles
>            Assignee: Kenneth Knowles
>            Priority: Critical
>          Time Spent: 5h 40m
>  Remaining Estimate: 0h
>
> If you try to read a public pubsub topic in the DirectRunner, it will fail 
> with 403 when trying to create a subscription. This is because it tries to 
> create a subscription on the shared public data set.
> There is an example used in 
> https://github.com/googlecodelabs/cloud-dataflow-nyc-taxi-tycoon and the 
> dataset is {{projects/pubsub-public-data/topics/taxirides-realtime}}. I 
> discovered that I could not read this in the DirectRunner even though the 
> codelab works. But that 1.x codelab also does not work in the 
> InProcessPipelineRunner, so it has been broken all along.
> So you cannot read public data or any other read-only data using PubsubIO.



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

Reply via email to