Skip to content

Commit

Permalink
comment out some types for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed May 29, 2024
1 parent 10a85c1 commit e24b057
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ object DataGen {
})
case DataTypes.BinaryType =>
generateColumn(r, DataTypes.StringType, numRows)
.filterNot(_ == null)
.map(_.asInstanceOf[String].getBytes(Charset.defaultCharset()))
.map {
case x: String =>
x.getBytes(Charset.defaultCharset())
case _ =>
null
}
case DataTypes.DateType =>
Range(0, numRows).map(_ => new java.sql.Date(1716645600011L + r.nextInt()))
case DataTypes.TimestampType | DataTypes.TimestampNTZType =>
Expand Down
11 changes: 6 additions & 5 deletions fuzz-testing/src/main/scala/org/apache/comet/fuzz/Meta.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,20 @@ import org.apache.spark.sql.types.DataTypes
object Meta {

val dataTypes: Seq[(DataType, Double)] = Seq(
(DataTypes.BooleanType, 0.2),
// (DataTypes.BooleanType, 0.2),
(DataTypes.ByteType, 0.2),
(DataTypes.ShortType, 0.2),
(DataTypes.IntegerType, 0.2),
(DataTypes.LongType, 0.2),
(DataTypes.FloatType, 0.2),
(DataTypes.DoubleType, 0.2),
(DataTypes.createDecimalType(10, 2), 0.2),
// (DataTypes.createDecimalType(10, 2), 0.2),
(DataTypes.DateType, 0.2),
(DataTypes.TimestampType, 0.2),
(DataTypes.TimestampNTZType, 0.2),
(DataTypes.StringType, 0.2),
(DataTypes.BinaryType, 0.2))
// (DataTypes.TimestampNTZType, 0.2),
(DataTypes.StringType, 0.2)
// (DataTypes.BinaryType, 0.2)
)

val stringScalarFunc: Seq[Function] = Seq(
Function("substring", 3),
Expand Down

0 comments on commit e24b057

Please sign in to comment.