Skip to content

TextIO (and others) should provide more informative messages when encountering RVP #18186

Description

@kennknowles

https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/io/TextIO.java#L301

When reporting failing to validate because a parameter comes from a RuntimeValueProvider (such as when creating templates) we report:

"Cannot validate with a RVP"

We should instead provide a message saying what went wrong and how to fix it. Something like:

"Unable to validate parameters that aren't available until runtime. Disable validation using .withoutValidation()."

Imported from Jira BEAM-1289. Original Jira may contain additional context.
Reported by: bchambers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions