Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bump ScalaCheck version.
  • Loading branch information
JoshRosen committed Jul 3, 2015
commit 89d86b1f65f5db7044280d916b07d1622b4662a0
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