Skip to content

Unsupported window expression now fails Comet query #711

@viirya

Description

@viirya

Describe the bug

I found this issue when fixing CI failure in #651.

Currently we wrongly ignore window expressions if its direct child expression is not a WindowExpression. It causes the following simple Spark query fail to run in Comet:

spark.sql("select sum(a) over () from values 1.0, 2.0, 3.0 T(a)")

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions