-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throw exceptions in SqlValidator when DISTINCT used over WINDOW #16738
Conversation
...src/test/java/org/apache/druid/query/aggregation/variance/sql/VarianceSqlAggregatorTest.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/apache/druid/query/aggregation/variance/sql/VarianceSqlAggregatorTest.java
Show resolved
Hide resolved
if (rows.size() == numRows()) { | ||
extraColumns.put(name, column); | ||
columnNames.add(name); | ||
return; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of removing it entirely - possibly a check would be nice to ensure that only columns which ColumnValueSwapper
gets added like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made it check for instances of ObjectArrayColumn
processing/src/main/java/org/apache/druid/query/rowsandcols/ArrayListRowsAndColumns.java
Outdated
Show resolved
Hide resolved
…he#16738) * Throw exception if DISTINCT used with window functions aggregate call * Improve error message when unsupported aggregations are used with window functions
Description
Key changed/added classes in this PR
DruidSqlValidator
Windowing
This PR has: