Skip to content
Snippets Groups Projects
Unverified Commit 31762a4d authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Repro for #12839: Can't use filter based on CE from aggregated results (#13784)

(Filtering Custom Expression from aggregated result fails with column not found)
parent f1ba5b51
No related branches found
No related tags found
No related merge requests found
......@@ -191,4 +191,44 @@ describe("scenarios > question > filter", () => {
cy.findAllByText("Fantastic Wool Shirt").should("not.exist");
});
});
it.skip("should filter using Custom Expression from aggregated results (metabase#12839)", () => {
const CE_NAME = "Simple Math";
withSampleDataset(({ PRODUCTS }) => {
cy.request("POST", "/api/card", {
name: "12839",
dataset_query: {
database: 1,
query: {
filter: [">", ["field-literal", CE_NAME, "type/Float"], 0],
"source-query": {
aggregation: [
[
"aggregation-options",
["+", 1, 1],
{ "display-name": CE_NAME },
],
],
breakout: [["field-id", PRODUCTS.CATEGORY]],
"source-table": 1,
},
},
type: "query",
},
display: "table",
visualization_settings: {},
}).then(({ body: { id: questionId } }) => {
cy.server();
cy.route("POST", `/api/card/${questionId}/query`).as("cardQuery");
cy.visit(`/question/${questionId}`);
cy.wait("@cardQuery");
cy.log("**Reported failing on v0.35.4**");
cy.log(`Error message: **Column 'source.${CE_NAME}' not found;**`);
cy.findAllByText("Gizmo");
});
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment