Skip to content

Commit 1485295

Browse files
committed
[SPARK-53437][SQL] InterpretedUnsafeProjection shall setNull4Bytes for YearMonthIntervalType field
### What changes were proposed in this pull request? InterpretedUnsafeProjection shall setNull4Bytes for a YearMonthIntervalType field instead of setNull8Bytes ### Why are the changes needed? YearMonthIntervalType is 4-byte length ### Does this PR introduce _any_ user-facing change? 'No'. ### How was this patch tested? Passing CI ### Was this patch authored or co-authored using generative AI tooling? no Closes #52178 from yaooqinn/SPARK-53437. Authored-by: Kent Yao <[email protected]> Signed-off-by: Kent Yao <[email protected]>
1 parent 9c50156 commit 1485295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/InterpretedUnsafeProjection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ object InterpretedUnsafeProjection {
268268
writer.setNull2Bytes(i)
269269
}
270270
}
271-
case IntegerType | DateType | FloatType =>
271+
case IntegerType | DateType | FloatType | _: YearMonthIntervalType =>
272272
(v, i) => {
273273
if (!v.isNullAt(i)) {
274274
unsafeWriter(v, i)

0 commit comments

Comments
 (0)