[
https://issues.apache.org/jira/browse/BEAM-8801?focusedWorklogId=359027&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-359027
]
ASF GitHub Bot logged work on BEAM-8801:
----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Dec/19 23:54
Start Date: 12/Dec/19 23:54
Worklog Time Spent: 10m
Work Description: milantracy commented on pull request #10359:
[BEAM-8801] PubsubMessageToRow should not check useFlatSchema() in pr…
URL: https://github.com/apache/beam/pull/10359#discussion_r357428802
##########
File path:
sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/meta/provider/pubsub/PubsubMessageToRowTest.java
##########
@@ -131,12 +137,7 @@ public void testSendsInvalidToDLQ() {
message(4, map("bttr", "vbl"), "{ \"name\" : \"baz\",
\"id\" : 5 }")))
.apply(
"convert",
- ParDo.of(
- PubsubMessageToRow.builder()
- .messageSchema(messageSchema)
- .useDlq(true)
- .useFlatSchema(false)
- .build())
Review comment:
if dead letter queue is enabled, there will be request being sent to the
queue.
which you could find at
https://github.com/apache/beam/blob/master/sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/meta/provider/pubsub/PubsubIOJsonTable.java#L182
----------------------------------------------------------------
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: 359027)
Time Spent: 1h 50m (was: 1h 40m)
> PubsubMessageToRow should not check useFlatSchema() in processElement
> ---------------------------------------------------------------------
>
> Key: BEAM-8801
> URL: https://issues.apache.org/jira/browse/BEAM-8801
> Project: Beam
> Issue Type: Improvement
> Components: dsl-sql
> Reporter: Brian Hulette
> Assignee: Jing Chen
> Priority: Major
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Currently we check useFlatSchema() for every element that's processed.
> Instead, we should check it once at pipeline construction time. See
> [comment|https://github.com/apache/beam/pull/10158#discussion_r348805530].
--
This message was sent by Atlassian Jira
(v8.3.4#803005)