Skip to content

Commit

Permalink
Bump ScalaCheck version.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 3, 2015
1 parent 0c20905 commit 89d86b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@
<dependency>
<groupId>org.scalacheck</groupId>
<artifactId>scalacheck_${scala.binary.version}</artifactId>
<version>1.11.3</version>
<version>1.12.4</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ package org.apache.spark.sql

import java.sql.Timestamp

import org.apache.spark.sql.types._
import org.scalacheck.{Arbitrary, Gen}

import org.apache.spark.sql.types._

/**
* Random data generators for Spark SQL DataTypes. These generators do not generate uniformly random
* values; instead, they're biased to return "interesting" values (such as maximum / minimum values)
* with higher probability.
* ScalaCheck random data generators for Spark SQL DataTypes.
*/
object RandomDataGenerator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ object DataTypeTestUtils {
/**
* Instances of all [[AtomicType]]s.
*/
val atomicTypes: Set[DataType] = Set(BinaryType, StringType, TimestampType) ++ numericTypes
val atomicTypes: Set[DataType] = numericTypes ++ Set(
BinaryType,
BooleanType,
DateType,
StringType,
TimestampType
)

/**
* Instances of [[ArrayType]] for all [[AtomicType]]s. Arrays of these types may contain null.
Expand Down

0 comments on commit 89d86b1

Please sign in to comment.