Skip to content

Commit 99a3485

Browse files
committed
nit
1 parent 2e7bb33 commit 99a3485

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

amoro-format-mixed/amoro-mixed-spark/v3.3/amoro-mixed-spark-3.3/src/main/scala/org/apache/amoro/spark/SparkInternalRowCastWrapper.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SparkInternalRowCastWrapper(
4040
def getSchema: StructType = schema
4141

4242
override protected def genericGet(ordinal: Int): Any = {
43-
row.get(ordinal, schema.apply(ordinal).dataType)
43+
row.get(ordinal, dataTypeList(ordinal))
4444
}
4545

4646
override def toSeq(fieldTypes: Seq[DataType]): Seq[Any] = {

amoro-format-mixed/amoro-mixed-spark/v3.5/amoro-mixed-spark-3.5/src/main/scala/org/apache/amoro/spark/SparkInternalRowCastWrapper.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SparkInternalRowCastWrapper(
4040
def getSchema: StructType = schema
4141

4242
override protected def genericGet(ordinal: Int): Any = {
43-
row.get(ordinal, schema.apply(ordinal).dataType)
43+
row.get(ordinal, dataTypeList(ordinal))
4444
}
4545

4646
override def toSeq(fieldTypes: Seq[DataType]): Seq[Any] = {

0 commit comments

Comments
 (0)