Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D dataprocessor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Extensions
  • dataprocessor
  • Merge requests
  • !98

Add filter_sql parameter to sql tables.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open ananelson requested to merge ananelson/dataprocessor:dev into master Feb 01, 2022
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 3

When working with SQL tables, there is currently no capability to filter rows. Frequently I need to filter rows by an entity_table in order to only link to the relevant rows matching a given entity_id.

This patch adds a filter_sql parameter to SQL Table sources. The table is then accessed as a subquery with the filter_sql applied in a WHERE clause (which falls back to 1 if not provided).

Working well and seeming not to break anything else on my site - further testing obviously welcomed!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: dev