apache / apache/beam

SQL: Swapping arguments in HOP window results in invalid window assignment

Open
#20,999 0 comments 0 reactions 0 assignees View on GitHub
bug dsl P3 sql
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

If we (by mistake) swap arguments of HOP window, we end-up with invalid WindowFn, that can produce empty windows, which then subsequently results in
`java.lang.IllegalArgumentException: WindowedValue requires windows, but there were none`

We need to verify that the arguments are correct prior to constructing the WindowFn.

Imported from Jira [BEAM-12483](https://issues.apache.org/jira/browse/BEAM-12483). Original Jira may contain additional context.
Reported by: janl.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.