Skip to content

Commit 5687f79

Browse files
committed
fix
1 parent 691fb4c commit 5687f79

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

native/core/src/execution/columnar_to_row.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ impl<'a> TypedArray<'a> {
138138
.as_any()
139139
.downcast_ref::<TimestampMicrosecondArray>()
140140
.ok_or_else(|| {
141-
CometError::Internal(
142-
"Failed to downcast to TimestampMicrosecondArray".to_string(),
143-
)
141+
CometError::Internal(format!(
142+
"Failed to downcast to TimestampMicrosecondArray, actual type: {:?}",
143+
array.data_type()
144+
))
144145
})?,
145146
)),
146147
DataType::Decimal128(p, _) => Ok(TypedArray::Decimal128(

spark/src/main/scala/org/apache/spark/sql/comet/CometNativeColumnarToRowExec.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ case class CometNativeColumnarToRowExec(child: SparkPlan)
5353
// supportsColumnar requires to be only called on driver side, see also SPARK-37779.
5454
assert(Utils.isInRunningSparkTask || child.supportsColumnar)
5555

56+
// Use the same display name as CometColumnarToRowExec for plan compatibility
57+
override def nodeName: String = "CometColumnarToRow"
58+
5659
override def output: Seq[Attribute] = child.output
5760

5861
override def outputPartitioning: Partitioning = child.outputPartitioning

0 commit comments

Comments
 (0)