Comments (3)
You're exactly right about what's going on here. In legacy MBQL, aggregation references are done by an index into the aggregations list.
MLv2 (new library and MBQL format) use UUIDs to reference aggregations, avoiding this problem. But legacy is still the source of truth in the appdb and on the wire, so we're not free of this bug yet.
from metabase.
@bshepherdson, thanks for confirming. Do you expect updating metabase version to resolve this?
from metabase.
I regret to say "not yet". I just checked this with the 0.49 RC and while the behavior has changed slightly (the expression is less broken after making the edit), this has not been fixed.
This is one of the diverse symptoms of a fundamental issue #36185 with how Metabase handles similar but not identical columns. There are lots of other ways to trip over this bug, such as joining the same table twice, or naming a custom column the same as a column from an earlier stage.
When the first aggregation max
is deleted, the two surviving ones are renamed from max_2
and max_3
to max
and max_2
. The expression in the second stage of the query has a reference like [:field "max_2"]
, which is still valid. We don't currently connect the dots that the artist column formerly known as max_2
is now known as max
.
So this won't be fixed in 49 or 50, but fixing that issue is one of my long-term goals. Much of the groundwork for it has landed over the past six months or so, but we're not ready to eliminate this issue yet.
from metabase.
Related Issues (20)
- Add option to show Settings Gear in Interactive embedding
- [Epic] Re-design transparent theme for static embedding and public links
- Remind PR author to prefix their PR title with conventional commit type
- Metabase not displaying table columns registered with Lakeformation in Athena HOT 2
- [Databricks] Attempt to derive `:hive-like` HOT 1
- [Databricks] Consider use of uniquely namespaced database entities per CI run
- [Databricks] Iterate over driver's features and enable more if appropriate
- [Flaky Test]: should automatically pin newly created models
- [Flaky Test]: should add, update bookmark name when question name is updated, then remove bookmark from question page HOT 1
- [Flaky Test]: should correctly insert function suggestion with the opening parenthesis
- [Flaky Test]: scenarios > admin > datamodel > segments with segment should see a newly asked question in its questions list HOT 2
- [Flaky Test]: scenarios > home > custom homepage custom homepage set should not show you a toast after it has been dismissed
- [Flaky Test]: lifecycle-test
- [Flaky Test]: redshift-lbv-sync-error-test
- [Flaky Test]: get-database-can-upload-test
- [Flaky Test]: skip-if-empty-test
- [Flaky Test]: basic-timeseries-test
- [Flaky Test]: 'read-only' user should be able to resize column width (metabase#9772)
- use "metric" icon for metrics in lib/icon.ts
- Mongo queries not cached due to Unfreezable type: class org.bson.Document
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metabase.