metabase / metabase/metabase

Should we automatically flatten nested fields in bare rows queries?

Open
#4,098 2 comments 2 reactions 0 assignees View on GitHub
Database/Mongo Querying/Processor Type:New Feature
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

The old Query Builder used to let people specify the `:fields` to be returned in a bare rows query which meant people could pick nested columns to show as top-level columns as they saw fit. Since you can't really do that in the current iteration maybe it makes sense to do it automatically rather than leaving them nested...

Or maybe not. Opened so we can discuss this idea. (Originally discussed in #1328)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the original discussion in #1328 and locating the current bare rows query implementation. Clarify whether nested fields should be flattened automatically, including the expected behavior for nested columns. Done requires an agreed scope and decision, but the issue does not currently define an implementation or acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.