Skip to content

Name parameter filter doesn't escape regex metacharacters #26

Description

@tdosborne-databricks

If a job/pipeline name contains any regex metacharacters then the query will return no data even though the user is entering the exact name of the job/pipeline.

Would need to implement a UDF to escape characters on behalf of user or add a simple OR statement to do a direct comparison with = operator.

From https://www.w3schools.com/python/gloss_python_regex_metacharacters.asp:

Character | Description | Example
-- | -- | -- | --
[] | A set of characters | "[a-m]"
\ | Signals a special sequence (can also be used to escape special characters) | "\d"
. | Any character (except newline character) | "he..o"
^ | Starts with | "^hello"
$ | Ends with | "planet$"

  • | Zero or more occurrences | "he.*o"
  • | One or more occurrences | "he.+o"
    ? | Zero or one occurrence | "he.?o"
    {} | Exactly the specified number of occurrences | "he.{2}o"
    | | Either or | "falls|stays"  
    () | Capture and group |  

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions