metabase / metabase/metabase

Update SQL field filters during find & replace of a field

Open
#44,050 0 comments 0 reactions 0 assignees View on GitHub
.Backend .Task .Team/QueryingPlatform Querying/Native Querying/Parameters & Variables
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

**Context**

When applying Find & Replace to a SQL query, it might have field filter parameters. These are mapped to a Field from the data warehouse - these mappings should be updated if that field is being replaced.

[Overall product doc](https://www.notion.so/metabase/Find-and-replace-data-reference-in-native-queries-API-70f6e14243254289922ef2099591a19b)
[Specific tech doc](https://www.notion.so/metabase/Tech-Find-replace-on-SQL-parameters-925321a793474d2498f945165e4ea766)

Contributor guide

Open the contributing guide

Research direction

Start with the linked Overall product doc and Specific tech doc to understand Find & Replace for SQL parameters and field mappings. Trace the existing implementation from the documented SQL-parameter flow; done means replacing a field also updates any SQL field-filter mappings that reference it.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, sql
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.