diff --git a/integration_tests/cases/common/function/aggregate.result b/integration_tests/cases/common/function/aggregate.result index 59b2a73873..d3e28f3eaa 100644 --- a/integration_tests/cases/common/function/aggregate.result +++ b/integration_tests/cases/common/function/aggregate.result @@ -91,6 +91,13 @@ COUNT(02_function_aggregate_table1.arch), Int64(4), +SELECT distinct(`arch`) FROM `02_function_aggregate_table1`; + +arch, +String("x86-64"), +String("arm64"), + + SELECT count(distinct(`arch`)) FROM `02_function_aggregate_table1`; COUNT(DISTINCT 02_function_aggregate_table1.arch), diff --git a/integration_tests/cases/common/function/aggregate.sql b/integration_tests/cases/common/function/aggregate.sql index d913910cbb..851fbc4f0d 100644 --- a/integration_tests/cases/common/function/aggregate.sql +++ b/integration_tests/cases/common/function/aggregate.sql @@ -53,6 +53,8 @@ VALUES SELECT count(`arch`) FROM `02_function_aggregate_table1`; +SELECT distinct(`arch`) FROM `02_function_aggregate_table1`; + SELECT count(distinct(`arch`)) FROM `02_function_aggregate_table1`; DROP TABLE `02_function_aggregate_table1`;