This is an automated email from the ASF dual-hosted git repository.
wenchen pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git.
from 481fb63 [MINOR][SQL][SS] Remove TODO comments as var in case class is
discouraged but worth breaking it
add d59e719 [SPARK-27986][SQL] Support ANSI SQL filter clause for
aggregate expression
No new revisions were added by this update.
Summary of changes:
docs/sql-keywords.md | 1 +
.../apache/spark/sql/catalyst/parser/SqlBase.g4 | 5 +-
.../spark/sql/catalyst/analysis/Analyzer.scala | 37 +-
.../sql/catalyst/analysis/CheckAnalysis.scala | 2 +-
.../catalyst/analysis/higherOrderFunctions.scala | 7 +-
.../spark/sql/catalyst/analysis/unresolved.scala | 11 +-
.../expressions/aggregate/interfaces.scala | 16 +-
.../spark/sql/catalyst/optimizer/Optimizer.scala | 4 +-
.../optimizer/RewriteDistinctAggregates.scala | 57 ++-
.../spark/sql/catalyst/optimizer/expressions.scala | 4 +-
.../spark/sql/catalyst/optimizer/subquery.scala | 2 +-
.../spark/sql/catalyst/parser/AstBuilder.scala | 3 +-
.../sql/catalyst/analysis/AnalysisErrorSuite.scala | 32 +-
.../sql/execution/AggregatingAccumulator.scala | 4 +-
.../spark/sql/execution/aggregate/AggUtils.scala | 2 +-
.../execution/aggregate/AggregationIterator.scala | 39 +-
.../execution/aggregate/HashAggregateExec.scala | 6 +-
.../aggregate/ObjectAggregationIterator.scala | 4 +-
.../aggregate/TungstenAggregationIterator.scala | 4 +-
.../sql/execution/window/WindowExecBase.scala | 2 +-
.../resources/sql-tests/inputs/group-by-filter.sql | 132 ++++++
.../inputs/postgreSQL/aggregates_part3.sql | 8 +-
.../sql-tests/inputs/postgreSQL/groupingsets.sql | 4 +-
.../sql-tests/inputs/postgreSQL/window_part3.sql | 2 +-
.../inputs/udf/postgreSQL/udf-aggregates_part3.sql | 1 -
.../sql-tests/results/group-by-filter.sql.out | 464 +++++++++++++++++++++
.../results/postgreSQL/aggregates_part3.sql.out | 22 +-
.../scala/org/apache/spark/sql/SQLQuerySuite.scala | 36 +-
28 files changed, 845 insertions(+), 66 deletions(-)
create mode 100644
sql/core/src/test/resources/sql-tests/inputs/group-by-filter.sql
create mode 100644
sql/core/src/test/resources/sql-tests/results/group-by-filter.sql.out
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]