nodestream-proj / nodestream

A Declarative framework for Building, Maintaining, and Analyzing Graph Data
https://nodestream-proj.github.io/docs/
Apache License 2.0
36 stars 10 forks source link

[REQUEST] RegexValueProvider to produce some debug messages #309

Closed yasonk closed 2 months ago

yasonk commented 3 months ago

When using RegexValueProvider:


- implementation: nodestream.interpreting:Interpreter
  arguments:
    interpretations:
    - type: source_node
      node_type: MyNode
      key:
        node_name: !regex
          regex: 'name: (?P<node_name>.*)'
          data: !jmespath 'record'
          group: node_name

Any issues with Regex or Data are difficult to debug.

In debug mode, it would be helpful to produce information about the regex, the text, and matches that are being produced by the regex.