Skip to content

[Feature Request]: YAML - how to output the error of error_handling in sub yaml? #37080

@ZwxwZ

Description

@ZwxwZ

What would you like to happen?

For example,
mainl.yaml

pipeline:
  transforms:
    - type: ReadFromCsv
      config:
        path: /path/to/input*.csv

    - type: MapToFields
      name: ComputeRatio
      input: ReadFromCsv
      config:
        language: python
        fields:
          col1: col1
        error_handling:
          output: my_error

......

    - type: **RaiseElementToPower**
      name: RaiseElementToPowerName
      input: XXX

    - type: LogError
      name: LogForTesting
      input: 
         - ComputeRatio.my_error_output
         - RaiseElementToPowerName.my_error
providers:
  - include: "file://sub.yaml"

sub.yaml

- type: yaml
  transforms:
    # Define the first transform of type "RaiseElementToPower"
    RaiseElementToPower:
      config_schema:
        properties:
          n: {type: integer}
      body:
        type: chain
        transforms:
          - type: MapToFields
            config:
              language: python
              append: true
              fields:
                power: "element ** {{n}}"
              error_handling:
                output: my_error

Now it will have error, and the error info said that we didn't output the error,

      input: 
         - ComputeRatio.my_error_output
         - RaiseElementToPowerName.my_error

so, i want to know,
how to output the error when the error is in the yaml provider

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions