spark-instrumented-optimizer/sql/catalyst/src/test
Wenchen Fan 672032d0ab [SPARK-13020][SQL][TEST] fix random generator for map type
when we generate map, we first randomly pick a length, then create a seq of key value pair with the expected length, and finally call `toMap`. However, `toMap` will remove all duplicated keys, which makes the actual map size much less than we expected.

This PR fixes this problem by put keys in a set first, to guarantee we have enough keys to build a map with expected length.

Author: Wenchen Fan <wenchen@databricks.com>

Closes #10930 from cloud-fan/random-generator.
2016-02-03 08:26:35 +08:00
..
resources [SPARK-6758]block the right jetty package in log 2015-04-09 17:44:08 -04:00
scala/org/apache/spark/sql [SPARK-13020][SQL][TEST] fix random generator for map type 2016-02-03 08:26:35 +08:00