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
Error calculating display info on filtering with a model #36400
Comments
Actually I can't reproduce this. Looking more closely at the steps and outcome, I suspect that this was fixed by removing empty stages (#37311). With a SQL model, creating the filter adds a new stage, and then removing the filter empties the stage. Then I guess something broke when trying to open the Filters UI again. Closing as no repro. |
i've just reproduced it on stats following the steps from Bruno's loom. i had to try twice though — it was fine when i was adding/removing a filter on the 'change type' column, but it broke with a filter on 'plan name'. |
Ah, I can repro this. I'm looking into it. |
The immediate error is coming from trying to regex-match against the The columns for which it fails are mapped in from another table, and I guess if you land directly on the model and start adding and removing filters it might not have the metadata yet. I'm still investigating. We can certainly fix the code to be more robust against I'm still debugging and trying to find the root problem, whether metadata or otherwise. |
Digging in makes it look like this might also be solved by fixing how implicit joins are handled with SQL models, see #37536 . |
#37536 is submitted; I'll check this tomorrow to see if it's fixed on stats. |
Models can override the `:id` and `:fk-target-field-id` of a column, and can even lie and treat a quantity as a FK. Therefore we have to use the query's view of the column and not the global field from the metadata. This is a speculative fix for #36400, which I can't reproduce locally.
Models can override the `:id` and `:fk-target-field-id` of a column, and can even lie and treat a quantity as a FK. Therefore we have to use the query's view of the column and not the global field from the metadata. This is a speculative fix for #36400, which I can't reproduce locally.
Models can override the `:id` and `:fk-target-field-id` of a column, and can even lie and treat a quantity as a FK. Therefore we have to use the query's view of the column and not the global field from the metadata. This is a speculative fix for #36400, which I can't reproduce locally.
This was fixed by #37771. |
Slack Message (there's a loom of the repro in the thread)
The text was updated successfully, but these errors were encountered: