New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distribution on cached models that were originally JSONB does not work #35636
Labels
Comments
paoliniluis
added
Type:Bug
Product defects
Querying/Models
aka Datasets
Querying/Cache
labels
Nov 12, 2023
ranquild
added
Querying/Processor
and removed
Querying/Models
aka Datasets
Querying/Cache
labels
Jan 15, 2024
This is a duplicate of #34930 . |
metabase-bot bot
added a commit
that referenced
this issue
Mar 4, 2024
…9446) (#39536) In the legacy QP the `:fields` of the outer query has the ID, `[:field 100 {}]` so the JSON unfolding is written out again. With this change, the `source-alias` is used for columns coming from previous stages. Fixes #34930. Fixes #35636. Co-authored-by: Braden Shepherdson <braden@metabase.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
An interesting turnaround of events that lead to the query processor making wrong choices in which the distribution functionality will generate wrong SQL
To Reproduce
ERROR: column "source.json_data" must appear in the GROUP BY clause or be used in an aggregate function
Position: 125
Expected behavior
No response
Logs
SELECT ("source"."json_data"#>> array[$1]::text[])::bigint AS "json_data → age", COUNT(*) AS "count" FROM (select * from "metabase_cache_f3484_2"."model_6_sample_tab") AS "source" GROUP BY "json_data → age" ORDER BY "json_data → age" ASC
Information about your Metabase installation
v47.x
Severity
P2
Additional context
Way out: disable model caching
The text was updated successfully, but these errors were encountered: