Skip to content

Commit 9e796ab

Browse files
committed
Address comments
1 parent eb95783 commit 9e796ab

File tree

1 file changed

+1
-2
lines changed
  • sql/hive/src/main/scala/org/apache/spark/sql/hive/client

1 file changed

+1
-2
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,7 @@ private[client] class Shim_v0_13 extends Shim_v0_12 {
729729
def unapply(expr: Expression): Option[Attribute] = {
730730
expr match {
731731
case attr: Attribute => Some(attr)
732-
case Cast(IntegralType(), StringType, _) => None
733-
case Cast(child @ AtomicType(), dt: AtomicType, _)
732+
case Cast(child @ IntegralType(), dt: IntegralType, _)
734733
if Cast.canUpCast(child.dataType.asInstanceOf[AtomicType], dt) => unapply(child)
735734
case _ => None
736735
}

0 commit comments

Comments
 (0)