frictionlessdata / datapackage-pipelines

Framework for processing data packages in pipelines of modular components.
https://frictionlessdata.io/
MIT License
119 stars 32 forks source link

Small bug in a documentation #116

Open AcckiyGerman opened 6 years ago

AcckiyGerman commented 6 years ago

Tasks

Analysis

There is a example about unpivot feature:

unpivot:
    -
      name: ([0-9]{4}) (\\w+)  # regex for original column
      keys:
        year: \\1  # First member of group from above
        direction: \\2  # Second member of group from above

I'm not sure why is here double backslash \\1 in the readme, but when I use dpp in a pipeline processor with this example I got ERROR :Failed to cast row: Field "year" can't cast value "\1" for type "year" with format "default". With \1 everything is ok.

Please, somebody ping me to ensure that there is no special reasons to use double backslash \\ and I'll fix the doc.