[
https://issues.apache.org/jira/browse/BEAM-6673?focusedWorklogId=255282&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-255282
]
ASF GitHub Bot logged work on BEAM-6673:
----------------------------------------
Author: ASF GitHub Bot
Created on: 06/Jun/19 17:42
Start Date: 06/Jun/19 17:42
Worklog Time Spent: 10m
Work Description: reuvenlax commented on pull request #8620: [BEAM-6673]
Add schema support to BigQuery reads
URL: https://github.com/apache/beam/pull/8620#discussion_r291296405
##########
File path:
sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIOReadTest.java
##########
@@ -404,6 +407,65 @@ public void processElement(ProcessContext c) throws
Exception {
p.run();
}
+ @Test
+ public void testReadTableWithSchema() throws IOException,
InterruptedException {
+ // setup
+ Table someTable = new Table();
+ someTable.setSchema(
+ new TableSchema()
+ .setFields(
+ ImmutableList.of(
+ new TableFieldSchema().setName("name").setType("STRING"),
+ new
TableFieldSchema().setName("number").setType("INTEGER"))));
Review comment:
test should include a nested row as well.
----------------------------------------------------------------
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: 255282)
Time Spent: 1.5h (was: 1h 20m)
> BigQueryIO.Read should automatically produce schemas
> ----------------------------------------------------
>
> Key: BEAM-6673
> URL: https://issues.apache.org/jira/browse/BEAM-6673
> Project: Beam
> Issue Type: Sub-task
> Components: io-java-gcp
> Reporter: Reuven Lax
> Assignee: Shehzaad Nakhoda
> Priority: Major
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> The output PCollections should containĀ
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)