datahq / dataflows

DataFlows is a simple, intuitive lightweight framework for building data processing flows in python.
https://dataflows.org
MIT License
195 stars 40 forks source link

Added regex parameter for set_type #89

Closed roll closed 5 years ago

roll commented 5 years ago

@akariv Here is an issue with field names interpreted as regex - https://github.com/BCODMO/frictionless-usecases/issues/9

What do you think of adding a parameter regex/use_regex/disable_regex/exact_value/? (not sure about naming) set to true by default or something like this to add an ability to disabling as regex interpretation?

It's WIP if it makes sense I'll add tests/docs and a dpp update.


It works for me using e.g. this example:


  - run: set_types
    parameters:
        resources: data
        regex: false
        types:
          temperature (24h):
              type: integer
akariv commented 5 years ago

Yes, this great proposal and implementation, thanks @roll!

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 313


Totals Coverage Status
Change from base Build 311: 0.02%
Covered Lines: 1566
Relevant Lines: 1859

💛 - Coveralls