[ 
https://issues.apache.org/jira/browse/BEAM-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17132356#comment-17132356
 ] 

Beam JIRA Bot commented on BEAM-2767:
-------------------------------------

This issue is assigned but has not received an update in 30 days so it has been 
labeled "stale-assigned". If you are still working on the issue, please give an 
update and remove the label. If you are no longer working on the issue, please 
unassign so someone else may work on it. In 7 days the issue will be 
automatically unassigned.

> BigQueryIO result different for REPEATED field between DirectRunner and 
> DataflowRunner
> --------------------------------------------------------------------------------------
>
>                 Key: BEAM-2767
>                 URL: https://issues.apache.org/jira/browse/BEAM-2767
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp, runner-dataflow, runner-direct
>    Affects Versions: 2.0.0
>            Reporter: Andre
>            Assignee: Udi Meiri
>            Priority: P3
>              Labels: stale-assigned
>
> When running a query against BigQueryIO with a REPEATED RECORD field the 
> behavior is different between DirectRunner and DataflowRunner. The field 
> containing the repeated record has to be cast to access the records. 
> Apparently the following implementations work for each runner but I would 
> expect them to be the same as my pipeline otherwise only runs on one.
> DirectRunner:
> {code:java}
> ArrayList<LinkedHashMap> orderLines = (ArrayList<LinkedHashMap>) 
> c.element().get("RepeatedField");
> {code}
> DataflowRunner:
> {code:java}
> ImmutableList<TableRow> orderLines = (ImmutableList<TableRow>) 
> c.element().get("RepeatedField");
> {code}
>                               
> For example when using the ImmutableList implementation on DirectRunner the 
> following exception is thrown:
> {code:java}
> java.lang.ClassCastException: java.util.ArrayList cannot be cast to 
> com.google.common.collect.ImmutableList
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to