We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ed058 commit 1761068Copy full SHA for 1761068
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
@@ -711,7 +711,7 @@ object TypeCoercion {
711
private val acceptedTypes = Seq(IntegerType, ShortType, ByteType)
712
override def coerceTypes(plan: LogicalPlan): LogicalPlan = plan transformAllExpressions {
713
case s @ ReplicateRows(children) if s.children.nonEmpty && s.childrenResolved &&
714
- s.children.head.dataType != LongType && acceptedTypes.contains(s.children.head.dataType) =>
+ acceptedTypes.contains(s.children.head.dataType) =>
715
val castedExpr = Cast(s.children.head, LongType)
716
ReplicateRows(Seq(castedExpr) ++ s.children.tail)
717
}
0 commit comments