[
https://issues.apache.org/jira/browse/BEAM-13796?focusedWorklogId=722421&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-722421
]
ASF GitHub Bot logged work on BEAM-13796:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 07/Feb/22 23:19
Start Date: 07/Feb/22 23:19
Worklog Time Spent: 10m
Work Description: TheNeuralBit commented on a change in pull request
#16720:
URL: https://github.com/apache/beam/pull/16720#discussion_r801140587
##########
File path:
sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIOStorageQueryTest.java
##########
@@ -753,6 +762,31 @@ public void testQuerySourceCreateReader() throws Exception
{
querySource.createReader(options);
}
+ @Test
+ public void testActuateProjectionPushdown() {
+ org.apache.beam.sdk.schemas.Schema schema =
+ org.apache.beam.sdk.schemas.Schema.builder()
+ .addStringField("foo")
+ .addStringField("bar")
+ .build();
+ TypedRead<Row> read =
+ BigQueryIO.read(
+ record ->
+ BigQueryUtils.toBeamRow(
+ record.getRecord(), schema,
ConversionOptions.builder().build()))
+ .withMethod(Method.DIRECT_READ)
+ .withCoder(SchemaCoder.of(schema));
Review comment:
I'm not totally clear on the difference between
`BigQueryIOStorageQueryTest` and `BigQueryIOStorageReadTest`. It looks like it
might be that the former (this file) is for tests that set `fromQuery`, with or
without method `DIRECT_READ`. While the latter is for purely `DIRECT_READ`
tests. Maybe this belongs in the latter?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 722421)
Time Spent: 50m (was: 40m)
> Projection pushdown in BigQuery IO
> ----------------------------------
>
> Key: BEAM-13796
> URL: https://issues.apache.org/jira/browse/BEAM-13796
> Project: Beam
> Issue Type: New Feature
> Components: io-java-gcp
> Reporter: Kyle Weaver
> Assignee: Kyle Weaver
> Priority: P2
> Time Spent: 50m
> Remaining Estimate: 0h
>
> BigQuery IO (read API only) already supports pushdown within Beam SQL
> queries, but we want to support pushdown outside of just SQL.
> To do this, BigQuery Read needs to implement ProjectionProducer.
> https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/ProjectionProducer.java
--
This message was sent by Atlassian Jira
(v8.20.1#820001)