spark-instrumented-optimizer/sql/catalyst/src/main
Reynold Xin d3c90b74ed [SPARK-18663][SQL] Simplify CountMinSketch aggregate implementation
## What changes were proposed in this pull request?
SPARK-18429 introduced count-min sketch aggregate function for SQL, but the implementation and testing is more complicated than needed. This simplifies the test cases and removes support for data types that don't have clear equality semantics:

1. Removed support for floating point and decimal types.

2. Removed the heavy randomized tests. The underlying CountMinSketch implementation already had pretty good test coverage through randomized tests, and the SPARK-18429 implementation is just to add an aggregate function wrapper around CountMinSketch. There is no need for randomized tests at three different levels of the implementations.

## How was this patch tested?
A lot of the change is to simplify test cases.

Author: Reynold Xin <rxin@databricks.com>

Closes #16093 from rxin/SPARK-18663.
2016-12-01 21:38:52 -08:00
..
antlr4/org/apache/spark/sql/catalyst/parser [SPARK-17932][SQL] Support SHOW TABLES EXTENDED LIKE 'identifier_with_wildcards' statement 2016-11-30 03:59:25 -08:00
java/org/apache/spark/sql [SPARK-18053][SQL] compare unsafe and safe complex-type values correctly 2016-11-23 04:15:19 -08:00
scala/org/apache/spark/sql [SPARK-18663][SQL] Simplify CountMinSketch aggregate implementation 2016-12-01 21:38:52 -08:00