The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
e2e2unit: Filter bigint (#85749)
Nemanja Glumac9636391694a5
diff --git a/e2e/test/scenarios/filters/filter-bigint.cy.spec.ts b/e2e/test/scenarios/filters/filter-bigint.cy.spec.tsindex 5aa0c8b2926..34f77b72a6e 100644--- a/e2e/test/scenarios/filters/filter-bigint.cy.spec.ts+++ b/e2e/test/scenarios/filters/filter-bigint.cy.spec.ts@@ -139,68 +139,6 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,filteredRowCount: 1,});- cy.log("!= operator");- testFilter({- filterOperator: "Not equal to",- setFilterValue: () => cy.findByLabelText("Filter value").type(minValue),- filterDisplayName: `NUMBER is not equal to ${minValue}`,- filteredRowCount: 2,- });-- cy.log("> operator");- testFilter({- filterOperator: "Greater than",- setFilterValue: () => cy.findByLabelText("Filter value").type(minValue),- filterDisplayName: `NUMBER is greater than ${minValue}`,- filteredRowCount: 2,- });-- cy.log(">= operator");- testFilter({- filterOperator: "Greater than or equal to",- setFilterValue: () => cy.findByLabelText("Filter value").type(minValue),- filterDisplayName: `NUMBER is greater than or equal to ${minValue}`,- filteredRowCount: 3,- });-- cy.log("< operator");- testFilter({- filterOperator: "Less than",- setFilterValue: () => cy.findByLabelText("Filter value").type(maxValue),- filterDisplayName: `NUMBER is less than ${maxValue}`,- filteredRowCount: 2,- });-- cy.log("<= operator");- testFilter({- filterOperator: "Less than or equal to",- setFilterValue: () => cy.findByLabelText("Filter value").type(maxValue),- filterDisplayName: `NUMBER is less than or equal to ${maxValue}`,- filteredRowCount: 3,- });-- cy.log("between operator - min value");- testFilter({- filterOperator: "Between",- setFilterValue: () => {- cy.findByPlaceholderText("Min").type(minValue);- cy.findByPlaceholderText("Max").type("0");- },- filterDisplayName: `NUMBER is between ${minValue} and 0`,- filteredRowCount: 2,- });-- cy.log("between operator - max value");- testFilter({- filterOperator: "Between",- setFilterValue: () => {- cy.findByPlaceholderText("Min").type("0");- cy.findByPlaceholderText("Max").type(maxValue);- },- filterDisplayName: `NUMBER is between 0 and ${maxValue}`,- filteredRowCount: 2,- });-cy.log("between operator - min and max values");testFilter({filterOperator: "Between",@@ -390,27 +328,6 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,slug: "equal-to",sectionId: "number",},- {- id: "b6ed2d72",- type: "number/!=",- name: "Not equal to",- slug: "not-equal=to",- sectionId: "number",- },- {- id: "b6ed2d73",- type: "number/>=",- name: "Greater than or equal to",- slug: "greater-than-or-equal-to",- sectionId: "number",- },- {- id: "b6ed2d74",- type: "number/<=",- name: "Less than or equal to",- slug: "less-than-or-equal-to",- sectionId: "number",- },{id: "b6ed2d75",type: "number/between",@@ -521,13 +438,11 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,function testFilters({minValue,maxValue,- formattedMinValue,formattedMaxValue,withDrillThru,}: {minValue: string;maxValue: string;- formattedMinValue: string;formattedMaxValue: string;withDrillThru?: boolean;}) {@@ -542,65 +457,6 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,withDrillThru,});- cy.log("number/!= parameter");- testFilter({- parameterName: "Not equal to",- setParameterValue: () =>- cy.findByPlaceholderText("Enter a number").type(minValue),- filterDisplayName: `NUMBER is not equal to ${minValue}`,- filterArgsDisplayName: formattedMinValue,- filteredRowCount: 2,- withDrillThru,- });-- cy.log("number/>= parameter");- testFilter({- parameterName: "Greater than or equal to",- setParameterValue: () =>- cy.findByPlaceholderText("Enter a number").type(minValue),- filterDisplayName: `NUMBER is greater than or equal to ${minValue}`,- filterArgsDisplayName: formattedMinValue,- filteredRowCount: 3,- withDrillThru,- });-- cy.log("number/<= parameter");- testFilter({- parameterName: "Less than or equal to",- setParameterValue: () =>- cy.findByPlaceholderText("Enter a number").type(maxValue),- filterDisplayName: `NUMBER is less than or equal to ${maxValue}`,- filterArgsDisplayName: formattedMaxValue,- filteredRowCount: 3,- withDrillThru,- });-- cy.log("number/between parameter - min value");- testFilter({- parameterName: "Between",- setParameterValue: () => {- cy.findAllByPlaceholderText("Enter a number").eq(0).type(minValue);- cy.findAllByPlaceholderText("Enter a number").eq(1).type("0");- },- filterDisplayName: `NUMBER is between ${minValue} and 0`,- filterArgsDisplayName: "2 selections",- filteredRowCount: 2,- withDrillThru,- });-- cy.log("number/between parameter - max value");- testFilter({- parameterName: "Between",- setParameterValue: () => {- cy.findAllByPlaceholderText("Enter a number").eq(0).type("0");- cy.findAllByPlaceholderText("Enter a number").eq(1).type(maxValue);- },- filterDisplayName: `NUMBER is between 0 and ${maxValue}`,- filterArgsDisplayName: "2 selections",- filteredRowCount: 2,- withDrillThru,- });-cy.log("number/between parameter - min and max values");testFilter({parameterName: "Between",@@ -621,7 +477,6 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,testFilters({minValue: MIN_BIGINT_VALUE,maxValue: MAX_BIGINT_VALUE,- formattedMinValue: FORMATTED_MIN_BIGINT_VALUE,formattedMaxValue: FORMATTED_MAX_BIGINT_VALUE,withDrillThru,});@@ -633,7 +488,6 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,testFilters({minValue: NEGATIVE_DECIMAL_VALUE,maxValue: POSITIVE_DECIMAL_VALUE,- formattedMinValue: FORMATTED_NEGATIVE_DECIMAL_VALUE,formattedMaxValue: FORMATTED_POSITIVE_DECIMAL_VALUE,withDrillThru,});@@ -668,114 +522,6 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,testDecimalFilters();});- it("query builder + native query + variables", () => {- function setupQuestion({- sourceQuestionDetails,- }: {- sourceQuestionDetails: NativeQuestionDetails;- }) {- const getTargetQuestionDetails = (- cardId: CardId,- ): NativeQuestionDetails => {- const cardTagName = `#${cardId}-sql-number`;- const cardTagDisplayName = `#${cardId} Sql Number`;-- const parameterDetails: Parameter = {- id: "b22a5ce2-fe1d-44e3-8df4-f8951f7921bc",- type: "number/=",- target: ["variable", ["template-tag", "number"]],- name: "Number",- slug: "number",- };-- return {- name: "SQL",- display: "scalar",- native: {- query: `SELECT COUNT(*) FROM {{#${cardId}-sql-number}} [[WHERE NUMBER = {{number}}]]`,- "template-tags": {- [cardTagName]: {- id: "10422a0f-292d-10a3-fd90-407cc9e3e20e",- name: cardTagName,- "display-name": cardTagDisplayName,- type: "card",- "card-id": cardId,- },- number: {- id: "b22a5ce2-fe1d-44e3-8df4-f8951f7921bc",- name: "number",- "display-name": "Number",- type: "number",- },- },- },- parameters: [parameterDetails],- enable_embedding: true,- embedding_params: {- [parameterDetails.slug]: "enabled",- },- };- };-- H.createNativeQuestion(sourceQuestionDetails).then(({ body: card }) => {- H.createNativeQuestion(getTargetQuestionDetails(card.id), {- wrapId: true,- });- });- }-- function testFilter({- value,- withRunButton,- }: {- value: string;- withRunButton?: boolean;- }) {- cy.log("add a filter");- cy.findByTestId("scalar-value").should("have.text", "3");- H.filterWidget().findByRole("textbox").type(value).blur();- if (withRunButton) {- cy.findAllByTestId("run-button").first().click();- }- H.filterWidget().findByRole("textbox").should("have.value", value);- cy.findByTestId("scalar-value").should("have.text", "1");- }-- function testBitIntFilter({- withRunButton,- }: { withRunButton?: boolean } = {}) {- testFilter({ value: MAX_BIGINT_VALUE, withRunButton });- }-- function testDecimalFilter({- withRunButton,- }: { withRunButton?: boolean } = {}) {- testFilter({ value: NEGATIVE_DECIMAL_VALUE, withRunButton });- }-- cy.log("BIGINT");- cy.signInAsAdmin();- setupQuestion({ sourceQuestionDetails: bigIntQuestionDetails });- cy.signInAsNormalUser();- H.visitQuestion("@questionId");- testBitIntFilter({ withRunButton: true });- visitPublicQuestion();- testBitIntFilter();- visitEmbeddedQuestion();- testBitIntFilter();-- cy.log("DECIMAL");- cy.signInAsAdmin();- setupQuestion({ sourceQuestionDetails: decimalQuestionDetails });- cy.signInAsNormalUser();- H.visitQuestion("@questionId");- testDecimalFilter({ withRunButton: true });- visitPublicQuestion();- testDecimalFilter();- visitEmbeddedQuestion();- testDecimalFilter();- });-it("dashboards + native query + variables", () => {function setupDashboard({sourceQuestionDetails,@@ -893,7 +639,7 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,function testDecimalFilter({withDrillThru,}: { withDrillThru?: boolean } = {}) {- testFilter({ value: POSITIVE_DECIMAL_VALUE, withDrillThru });+ testFilter({ value: NEGATIVE_DECIMAL_VALUE, withDrillThru });}cy.log("BIGINT");@@ -1031,133 +777,50 @@ SELECT CAST('${POSITIVE_DECIMAL_VALUE}' AS DECIMAL) AS NUMBER`,},);- it(- "query builder + object detail + expression editor",- { tags: "@external" },- () => {- function setupQuestion({ tableName }: { tableName: string }) {- const getQuestionDetails = (tableId: TableId) => ({- database: WRITABLE_DB_ID,- query: {- "source-table": tableId,- },- });-- H.getTableId({ name: tableName }).then((tableId) => {- H.createQuestion(getQuestionDetails(tableId), {- visitQuestion: true,- });- });- }-- function testObjectDetail({- value,- nameValue,- }: {- value: string;- nameValue: string;- }) {- H.tableInteractive().findByText(value).click();- H.modal().within(() => {- cy.findAllByText(value).should("have.length.gte", 1);- cy.findAllByText(nameValue).should("have.length.gte", 1);- cy.findByLabelText("Close").click();- });- H.modal().should("not.exist");- }-- function testExpression({ value }: { value: string }) {- H.assertQueryBuilderRowCount(3);-- H.openNotebook();- H.getNotebookStep("data").button("Filter").click();- H.popover().findByText("Custom Expression").click();- H.enterCustomColumnDetails({ formula: `[ID] = ${value}` });- cy.button("Done").click();- H.visualize();- H.assertQueryBuilderRowCount(1);-- H.openNotebook();- H.getNotebookStep("filter").findByText(`ID is ${value}`).click();- H.popover().within(() => {- cy.findByLabelText("Back").click();- cy.findByText("Custom Expression").click();- });- H.enterCustomColumnDetails({ formula: `[ID] != ${value}` });- cy.button("Update").click();- H.visualize();- H.assertQueryBuilderRowCount(2);- }-- cy.log("setup");- setupTables();-- cy.log("BIGINT");- setupQuestion({ tableName: BIGINT_PK_TABLE_NAME });- testObjectDetail({ value: MAX_BIGINT_VALUE, nameValue: "Positive" });- testExpression({ value: MAX_BIGINT_VALUE });-- cy.log("DECIMAL");- setupQuestion({ tableName: DECIMAL_PK_TABLE_NAME });- testObjectDetail({- value: NEGATIVE_DECIMAL_VALUE,- nameValue: "Negative",- });- testExpression({ value: NEGATIVE_DECIMAL_VALUE });- },- );-- it("query builder + drills", () => {- function setupQuestion({- sourceQuestionDetails,- }: {- sourceQuestionDetails: NativeQuestionDetails;- }) {- const getTargetQuestionDetails = (- cardId: CardId,- ): StructuredQuestionDetails => ({- name: "MBQL",+ it("query builder + object detail", { tags: "@external" }, () => {+ function setupQuestion({ tableName }: { tableName: string }) {+ const getQuestionDetails = (tableId: TableId) => ({+ database: WRITABLE_DB_ID,query: {- "source-table": `card__${cardId}`,+ "source-table": tableId,},- display: "table",});- H.createNativeQuestion(sourceQuestionDetails).then(({ body: card }) => {- H.createQuestion(getTargetQuestionDetails(card.id), {+ H.getTableId({ name: tableName }).then((tableId) => {+ H.createQuestion(getQuestionDetails(tableId), {visitQuestion: true,});});}- function testDrill({+ function testObjectDetail({value,- formattedValue,+ nameValue,}: {value: string;- formattedValue: string;+ nameValue: string;}) {- H.assertQueryBuilderRowCount(3);- H.tableInteractive().findByText(formattedValue).click();- H.popover().findByText("=").click();- H.queryBuilderFiltersPanel()- .findByText(`NUMBER is equal to ${value}`)- .should("be.visible");- H.assertQueryBuilderRowCount(1);+ H.tableInteractive().findByText(value).click();+ H.modal().within(() => {+ cy.findAllByText(value).should("have.length.gte", 1);+ cy.findAllByText(nameValue).should("have.length.gte", 1);+ cy.findByLabelText("Close").click();+ });+ H.modal().should("not.exist");}+ cy.log("setup");+ setupTables();+cy.log("BIGINT");- setupQuestion({ sourceQuestionDetails: bigIntQuestionDetails });- testDrill({- value: MAX_BIGINT_VALUE,- formattedValue: FORMATTED_MAX_BIGINT_VALUE,- });+ setupQuestion({ tableName: BIGINT_PK_TABLE_NAME });+ testObjectDetail({ value: MAX_BIGINT_VALUE, nameValue: "Positive" });cy.log("DECIMAL");- setupQuestion({ sourceQuestionDetails: decimalQuestionDetails });- testDrill({+ setupQuestion({ tableName: DECIMAL_PK_TABLE_NAME });+ testObjectDetail({value: NEGATIVE_DECIMAL_VALUE,- formattedValue: FORMATTED_NEGATIVE_DECIMAL_VALUE,+ nameValue: "Negative",});});diff --git a/frontend/src/metabase/parameters/components/widgets/NumberInputWidget/NumberInputWidget.unit.spec.tsx b/frontend/src/metabase/parameters/components/widgets/NumberInputWidget/NumberInputWidget.unit.spec.tsxindex a3ea3270ca2..d2a8ded6a47 100644--- a/frontend/src/metabase/parameters/components/widgets/NumberInputWidget/NumberInputWidget.unit.spec.tsx+++ b/frontend/src/metabase/parameters/components/widgets/NumberInputWidget/NumberInputWidget.unit.spec.tsx@@ -85,6 +85,15 @@ describe("NumberInputWidget", () => {expect(setValue).toHaveBeenCalledWith([10]);});+ it("should keep the full precision of a big integer", async () => {+ const { setValue } = setup({ value: undefined });+ await userEvent.type(+ screen.getByRole("textbox"),+ "9223372036854775807{enter}",+ );+ expect(setValue).toHaveBeenCalledWith(["9223372036854775807"]);+ });+it("should allow to submit an empty value on enter if the parameter is not required", async () => {const { setValue } = setup({ value: ["10"] });const input = screen.getByRole("textbox");@@ -186,6 +195,17 @@ describe("NumberInputWidget", () => {]);});+ it("should keep the full precision of negative big integers", async () => {+ const { setValue } = setup({ value: undefined, arity: 2 });++ const [textbox1, textbox2] = screen.getAllByRole("textbox");+ await userEvent.type(textbox1, "-9223372036854775809");+ await userEvent.type(textbox2, "0");+ await userEvent.click(screen.getByRole("button", { name: "Add filter" }));++ expect(setValue).toHaveBeenCalledWith(["-9223372036854775809", 0]);+ });+it("should be clearable by emptying all inputs", async () => {const { setValue } = setup({ value: [123, 456], arity: 2 });diff --git a/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/FieldValuesWidget.unit.spec.tsx b/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/FieldValuesWidget.unit.spec.tsxindex bdad908fb2d..4e75dd39444 100644--- a/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/FieldValuesWidget.unit.spec.tsx+++ b/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/FieldValuesWidget.unit.spec.tsx@@ -2,16 +2,18 @@ import userEvent from "@testing-library/user-event";import { setupParameterValuesEndpoints } from "__support__/server-mocks";import { renderWithProviders, screen } from "__support__/ui";+import { checkNotNull } from "metabase/utils/types";import {createMockParameter,createMockParameterValues,} from "metabase-types/api/mocks";+import { ORDERS } from "metabase-types/api/mocks/presets";import {FieldValuesWidget,type IFieldValuesWidgetProps,} from "./FieldValuesWidget";-import { state } from "./testMocks.spec";+import { metadata, state } from "./testMocks.spec";const setup = (props: Partial<IFieldValuesWidgetProps> = {}) => {const onChange = jest.fn();@@ -81,6 +83,25 @@ describe("FieldValuesWidget", () => {expect(onChange).toHaveBeenLastCalledWith([42]);});++ it("should keep the full precision of a big integer for an id parameter", async () => {+ const { onChange } = setup({+ multi: true,+ placeholder: "Value",+ fields: [checkNotNull(metadata.field(ORDERS.ID))],+ parameter: createMockParameter({+ type: "id",+ values_query_type: "none",+ }),+ });++ await userEvent.type(+ await screen.findByRole("combobox"),+ "9223372036854775807{enter}",+ );++ expect(onChange).toHaveBeenLastCalledWith(["9223372036854775807"]);+ });});describe("single-select", () => {diff --git a/frontend/src/metabase/parameters/components/widgets/TextWidget/TextWidget.unit.spec.tsx b/frontend/src/metabase/parameters/components/widgets/TextWidget/TextWidget.unit.spec.tsxindex 2583ebcb04d..0bff060d47a 100644--- a/frontend/src/metabase/parameters/components/widgets/TextWidget/TextWidget.unit.spec.tsx+++ b/frontend/src/metabase/parameters/components/widgets/TextWidget/TextWidget.unit.spec.tsx@@ -80,6 +80,19 @@ describe("TextWidget", () => {expect(textbox).toHaveValue("0");});+ it("should keep the full precision of a big integer", async () => {+ const onChangeSpy = jest.fn();++ render(<TextInputWithStateWrapper onChange={onChangeSpy} />);++ const textbox = screen.getByRole("textbox");++ await userEvent.type(textbox, "9223372036854775807{enter}");++ expect(textbox).toHaveValue("9223372036854775807");+ expect(onChangeSpy).toHaveBeenCalledWith("9223372036854775807");+ });+it("should not call setValue twice when pressing enter", async () => {const onChangeSpy = jest.fn();diff --git a/frontend/src/metabase/parameters/utils/formatting.unit.spec.ts b/frontend/src/metabase/parameters/utils/formatting.unit.spec.tsindex 431505584a1..e50e09e9c9f 100644--- a/frontend/src/metabase/parameters/utils/formatting.unit.spec.ts+++ b/frontend/src/metabase/parameters/utils/formatting.unit.spec.ts@@ -120,6 +120,18 @@ describe("metabase/parameters/utils/formatting", () => {expected: "123,456,789",fields: [numberField],},+ {+ type: "number/=",+ value: "9223372036854775807",+ expected: "9,223,372,036,854,775,807",+ fields: [numberField],+ },+ {+ type: "number/=",+ value: "-9223372036854775809",+ expected: "-9,223,372,036,854,775,809",+ fields: [numberField],+ },{type: "number/>=",value: 1.111111111111,diff --git a/frontend/src/metabase/querying/filters/components/FilterPicker/NumberFilterPicker/NumberFilterPicker.unit.spec.tsx b/frontend/src/metabase/querying/filters/components/FilterPicker/NumberFilterPicker/NumberFilterPicker.unit.spec.tsxindex 55b9dac1fa4..1d229a1cf15 100644--- a/frontend/src/metabase/querying/filters/components/FilterPicker/NumberFilterPicker/NumberFilterPicker.unit.spec.tsx+++ b/frontend/src/metabase/querying/filters/components/FilterPicker/NumberFilterPicker/NumberFilterPicker.unit.spec.tsx@@ -226,9 +226,53 @@ describe("NumberFilterPicker", () => {});expect(getNextFilterColumnName()).toBe("ID");});++ it("should add a filter with a value out of the 64-bit integer range", async () => {+ const query = createQuery();+ const columns = Lib.filterableColumns(query, -1);+ const findColumn = columnFinder(query, columns);+ const column = findColumn("ORDERS", "ID");+ const { getNextFilterParts } = setup({ query, column });++ const input = screen.getByLabelText("Filter value");+ await userEvent.type(input, "-9223372036854775809");+ await userEvent.click(+ screen.getByRole("button", { name: "Add filter" }),+ );+ expect(getNextFilterParts()).toMatchObject({+ operator: "=",+ values: [-9223372036854775809n],+ });+ });});describe("with two values", () => {+ it("should add a filter with big integer min and max values", async () => {+ const query = createQuery();+ const columns = Lib.filterableColumns(query, -1);+ const findColumn = columnFinder(query, columns);+ const column = findColumn("ORDERS", "ID");+ const { getNextFilterParts } = setup({ query, column });++ await setOperator("Between");+ await userEvent.type(+ screen.getByPlaceholderText("Min"),+ "-9223372036854775808",+ );+ await userEvent.type(+ screen.getByPlaceholderText("Max"),+ "9223372036854775807",+ );+ await userEvent.click(+ screen.getByRole("button", { name: "Add filter" }),+ );++ expect(getNextFilterParts()).toMatchObject({+ operator: "between",+ values: [-9223372036854775808n, 9223372036854775807n],+ });+ });+it.each(BETWEEN_TEST_CASES)("should add a filter with %i to %i values",async (leftValue, rightValue) => {diff --git a/test/metabase/lib/drill_thru/quick_filter_test.cljc b/test/metabase/lib/drill_thru/quick_filter_test.cljcindex 5531f193f84..e6f2ce7cbc6 100644--- a/test/metabase/lib/drill_thru/quick_filter_test.cljc+++ b/test/metabase/lib/drill_thru/quick_filter_test.cljc@@ -361,6 +361,23 @@[:field {} (meta/id :orders :quantity)][:value {:base-type :type/BigInteger} big]]]}]}}))))+(deftest ^:parallel quick-filter-negative-out-of-int64-value-test+ (testing "quick-filter '=' on a negative cell value outside the int64 range keeps its full precision"+ (let [big "-9223372036854775809"]+ (lib.drill-thru.tu/test-drill-application+ {:click-type :cell+ :query-type :unaggregated+ :query-kinds [:mbql]+ :column-name "QUANTITY"+ :drill-type :drill-thru/quick-filter+ :custom-row (assoc (get-in lib.drill-thru.tu/test-queries ["ORDERS" :unaggregated :row])+ "QUANTITY" big)+ :expected {:type :drill-thru/quick-filter}+ :drill-args ["="]+ :expected-query {:stages [{:filters [[:= {}+ [:field {} (meta/id :orders :quantity)]+ [:value {:base-type :type/BigInteger} big]]]}]}}))))+(deftest ^:parallel quick-filter-drill-on-expression-column-test(testing "quick-filter on an expression column value produces a filter referencing the expression (#32032)"(lib.drill-thru.tu/test-drill-application