Skip to content
Prev Previous commit
Next Next commit
clear object pointer at the end of lifetime to avoid unnecessary GC
  • Loading branch information
kiszk committed Nov 30, 2017
commit cd4c696772750e6e9b79133446e590bc65a24ce4
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ case class Cast(child: Expression, dataType: DataType, timeZoneId: Option[String
} else {
$evNull = true;
}
$wrapper = null;
"""
case BooleanType =>
(c, evPrim, evNull) => s"$evPrim = $c ? (byte) 1 : (byte) 0;"
Expand All @@ -834,6 +835,7 @@ case class Cast(child: Expression, dataType: DataType, timeZoneId: Option[String
} else {
$evNull = true;
}
$wrapper = null;
"""
case BooleanType =>
(c, evPrim, evNull) => s"$evPrim = $c ? (short) 1 : (short) 0;"
Expand All @@ -858,6 +860,7 @@ case class Cast(child: Expression, dataType: DataType, timeZoneId: Option[String
} else {
$evNull = true;
}
$wrapper = null;
"""
case BooleanType =>
(c, evPrim, evNull) => s"$evPrim = $c ? 1 : 0;"
Expand All @@ -883,6 +886,7 @@ case class Cast(child: Expression, dataType: DataType, timeZoneId: Option[String
} else {
$evNull = true;
}
$wrapper = null;
"""
case BooleanType =>
(c, evPrim, evNull) => s"$evPrim = $c ? 1L : 0L;"
Expand Down