[
https://issues.apache.org/jira/browse/BEAM-8948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16997130#comment-16997130
]
Ismaël Mejía commented on BEAM-8948:
------------------------------------
A version of Read that accepts templates was added in 2.12.0. I am not 100%
sure but if you require to stay in 2.11.0 you may use the FileIO.match (with
the valueprovider) + XmlIO.readFiles pattern.
> ValueProvider support for read method of XML IO connector
> ---------------------------------------------------------
>
> Key: BEAM-8948
> URL: https://issues.apache.org/jira/browse/BEAM-8948
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core
> Affects Versions: 2.11.0
> Reporter: Vikram
> Priority: Blocker
>
> We are using XML IO for reading XML from GCP bucket for our requirement. The
> requirement also includes creating templates.
> When we try to create template for our dataflow job which uses XML IO to get
> the template created for dataflow job we have to make input parameters as
> Value Provider. However the XML IO read method does not have this option and
> we are not able to create a template Below is the document with XML IO.
> {color:#FF0000}*public XmlIO.Read<T> from(java.lang.String
> fileOrPatternSpec)*{color}
> {color:#FF0000}*Reads a single XML file or a set of XML files defined by a
> Java "glob" file pattern. Each XML file should be of the form defined in
> XmlIO.read().*{color}
>
>
> There is no read method with a ValueProvider<String>.
> Can this issue be fixed at the earliest as we have been blocked with this
> requirement. Any updates please contact me.
> Thanks
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)