You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Vishwas (Jira)" <ji...@apache.org> on 2019/09/26 05:54:00 UTC
[jira] [Commented] (BEAM-6657)
java.lang.ArrayIndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/BEAM-6657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16938301#comment-16938301 ]
Vishwas commented on BEAM-6657:
-------------------------------
This is not a bug. The new rowSchema needs to be set when creating the pipeline, in this case old schema is used. I have attached the modified java code for the example [^TestTextIo.java]
With this change the code works without any issue.
> java.lang.ArrayIndexOutOfBoundsException
> -----------------------------------------
>
> Key: BEAM-6657
> URL: https://issues.apache.org/jira/browse/BEAM-6657
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core
> Affects Versions: 2.9.0
> Reporter: Joan Puig
> Priority: Major
> Attachments: CSVToRowWithTransform.java, TestTextIo.java, in.csv, log.txt
>
>
> Getting {{java.lang.ArrayIndexOutOfBoundsException}} when calling {{ProcessContext.output()}} in a {{DoFn<Row,Row>}}
> *Details:*
> After some debugging, it seems like it's trying to encode the output {{Row}} using the input {{Row}}'s {{Schema}}.
> Attached minimum example, test input file (in.txt) and log.txt
--
This message was sent by Atlassian Jira
(v8.3.4#803005)