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

#14255 Repro: CC and table column same name [REGRESSION] [ci skip] (#14267)

parent 7ee8717b
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ import {
import { SAMPLE_DATASET } from "__support__/cypress_sample_dataset";
const { ORDERS, ORDERS_ID, PRODUCTS } = SAMPLE_DATASET;
const { ORDERS, ORDERS_ID, PRODUCTS, PRODUCTS_ID } = SAMPLE_DATASET;
const customFormulas = [
{
......@@ -376,4 +376,32 @@ describe("scenarios > question > custom columns", () => {
cy.findByText(CC_NAME);
});
});
it.skip("should handle identical custom column and table column names (metabase#14255)", () => {
// Uppercase is important for this reproduction on H2
const CC_NAME = "CATEGORY";
cy.request("POST", "/api/card", {
name: "14255",
dataset_query: {
type: "query",
query: {
"source-table": PRODUCTS_ID,
expressions: {
[CC_NAME]: ["concat", ["field-id", PRODUCTS.CATEGORY], "2"],
},
aggregation: [["count"]],
breakout: [["expression", CC_NAME]],
},
database: 1,
},
display: "table",
visualization_settings: {},
}).then(({ body: { id: QUESTION_ID } }) => {
cy.visit(`/question/${QUESTION_ID}`);
cy.findByText(CC_NAME);
cy.findByText("Gizmo2");
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment