Skip to content

Commit 1761068

Browse files
committed
more comments
1 parent 02ed058 commit 1761068

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/analysis/TypeCoercion.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ object TypeCoercion {
711711
private val acceptedTypes = Seq(IntegerType, ShortType, ByteType)
712712
override def coerceTypes(plan: LogicalPlan): LogicalPlan = plan transformAllExpressions {
713713
case s @ ReplicateRows(children) if s.children.nonEmpty && s.childrenResolved &&
714-
s.children.head.dataType != LongType && acceptedTypes.contains(s.children.head.dataType) =>
714+
acceptedTypes.contains(s.children.head.dataType) =>
715715
val castedExpr = Cast(s.children.head, LongType)
716716
ReplicateRows(Seq(castedExpr) ++ s.children.tail)
717717
}

0 commit comments

Comments
 (0)