Skip to content

Aggregate expression with filter is incorrectly translated to Comet aggregate native aggregation expression #283

@viirya

Description

@viirya

Describe the bug

Another one bug found while fixing test failures in #250.

Aggregate expression with filer is incorrectly translated to Comet aggregate native aggregation expression without filter now. It causes at least one query failure.

For example, in org.apache.spark.sql.SQLQueryTestSuite:

[info] - count.sql *** FAILED *** (3 seconds, 483 milliseconds)
[info]   count.sql
[info]   Expected "[1	1]", but got "[2	2]" Result did not match for query #7
[info]   SELECT count(DISTINCT 2), count(DISTINCT 3,2) (SQLQueryTestSuite.scala:495)

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions