frictionlessdata.io icon indicating copy to clipboard operation
frictionlessdata.io copied to clipboard

Add configurability to custom Steps

Open neolefty opened this issue 1 year ago • 2 comments
trafficstars

Overview

A research team within the Purdue College of Agriculture has started to use Frictionless for its data pipelines, and we would like to write custom Steps that receive configuration options from the Pipeline YAML file. For example:

steps:

  # Standard Step -- ensure ID is an integer
  - type: field-update
    name: id
    descriptor:
      name: farm_animal_id
      type: integer

  # Custom Step -- normalize funky date formats
  # Currently, in our testing, values (below) such as field_name or descriptor.name
  # are not getting passed to the custom step, and it appears they are not kept by
  # the custom Step mechanism. We want to capture them and pass them into the
  # custom Step initialization.
  - type: date-normalize
    field_name: Date
    descriptor:
      name: Date
      type: string

neolefty avatar May 29 '24 14:05 neolefty

Hi Frictionless! We want to develop and submit a solution, and also plan to attend the hangout tomorrow, to get connected to the Frictionless community.

neolefty avatar May 29 '24 14:05 neolefty

Question: Should this move over to frictionless-py? https://github.com/frictionlessdata/frictionless-py/issues

neolefty avatar May 31 '24 17:05 neolefty