Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ object CometCast {
Compatible()
case DataTypes.StringType => Compatible()
case DataTypes.DateType => Compatible()
case _: DecimalType => Compatible()
case _ => Unsupported
}
}
Expand Down
6 changes: 4 additions & 2 deletions spark/src/test/scala/org/apache/comet/CometCastSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,10 @@ class CometCastSuite extends CometTestBase with AdaptiveSparkPlanHelper {
castTest(generateTimestamps(), DataTypes.DoubleType)
}

test("cast TimestampType to DecimalType(10,2)") {
castTest(generateTimestamps(), DataTypes.TimestampType)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andygrove This test case introduced in #356 looks incorrect. Could you please take a look?

ignore("cast TimestampType to DecimalType(10,2)") {
// https://github.com/apache/datafusion-comet/issues/1280
// Native cast invoked for unsupported cast from Timestamp(Microsecond, Some("Etc/UTC")) to Decimal128(10, 2)
castTest(generateTimestamps(), DataTypes.createDecimalType(10, 2))
}

test("cast TimestampType to StringType") {
Expand Down
Loading