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
Field list / filtering / grouping does not work with a native model that has comments #35039
Comments
@zbodi74 I cannot reproduce in |
I'm also unable to reproduce this in
@zbodi74 Could you point us where people might be experiencing this? It might help us reproduce the issue more easily |
@ranquild, @oisincoveney - here is a model that shows the problem: https://stats.metabase.com/collection/1360-gh-35039 . |
I'm not able to reproduce it as well @zbodi74 could you please explain a bit more
|
I couldn't figure out why but sometimes the error occurs immediately after I create the model, while other times it appears only after I update and save it for the second time. |
I'm able to reproduce on both 1.47.5 and master d419e9a. Loom with reproduction that seems to show the error reliably also on master. One of the requests made during QB init is GET |
* Keep result-metadata of native queries if possible Part of #37009. * Fix typo * Add a fallback for when resultMetadata is not available * Revert "Add a fallback for when resultMetadata is not available" This reverts commit 5ad3a8b. * Move resultsMetadata logic into getSubmittableQuestion * Add a fallback for when resultMetadata is not available * Add explanatory comment * Guard against missing resultsMetadata * Add repro for #35039 * Simplify the test * Add an explanatory comment * Fix test * Rename promise to runQuestionPromise --------- Co-authored-by: Tamás Benkő <tamas@metabase.com>
* Keep result-metadata of native queries if possible Part of #37009. * Fix typo * Add a fallback for when resultMetadata is not available * Revert "Add a fallback for when resultMetadata is not available" This reverts commit 5ad3a8b. * Move resultsMetadata logic into getSubmittableQuestion * Add a fallback for when resultMetadata is not available * Add explanatory comment * Guard against missing resultsMetadata * Add repro for #35039 * Simplify the test * Add an explanatory comment * Fix test * Rename promise to runQuestionPromise --------- Co-authored-by: Tamás Benkő <tamas@metabase.com>
* Keep result-metadata of native queries if possible Part of #37009. * Fix typo * Add a fallback for when resultMetadata is not available * Revert "Add a fallback for when resultMetadata is not available" This reverts commit 5ad3a8b. * Move resultsMetadata logic into getSubmittableQuestion * Add a fallback for when resultMetadata is not available * Add explanatory comment * Guard against missing resultsMetadata * Add repro for #35039 * Simplify the test * Add an explanatory comment * Fix test * Rename promise to runQuestionPromise --------- Co-authored-by: Tamás Benkő <tamas@metabase.com>
* Keep result-metadata of native queries if possible Part of #37009. * Fix typo * Add a fallback for when resultMetadata is not available * Revert "Add a fallback for when resultMetadata is not available" This reverts commit 5ad3a8b. * Move resultsMetadata logic into getSubmittableQuestion * Add a fallback for when resultMetadata is not available * Add explanatory comment * Guard against missing resultsMetadata * Add repro for #35039 * Simplify the test * Add an explanatory comment * Fix test * Rename promise to runQuestionPromise --------- Co-authored-by: Kamil Mielnik <kamil@kamilmielnik.com> Co-authored-by: Tamás Benkő <tamas@metabase.com>
Reopening. Fix will be reverted. See Slack discussion. |
Describe the bug
The query builder does not show source fields for models based on native queries, when the query has trailing comments.
To Reproduce
make sure there is no trailing space in the last line
Expected behavior
It should work as before.
Logs
Information about your Metabase installation
Severity
P1 - it has been reported in the wild. There is a workaround but it is also a loss off common functionality.
Additional context
The text was updated successfully, but these errors were encountered: