@@ -571,7 +571,7 @@ case class DateFormatClass(left: Expression, right: Expression, timeZoneId: Opti
571
571
val tz = ctx.addReferenceObj(" timeZone" , timeZone)
572
572
val locale = ctx.addReferenceObj(" locale" , Locale .US )
573
573
defineCodeGen(ctx, ev, (timestamp, format) => {
574
- s """ UTF8String.fromString( $tf.apply( $format.toString(), $tz, $locale)
574
+ s """ UTF8String.fromString( $tf$$ .MODULE $$ .apply( $format.toString(), $tz, $locale)
575
575
.format( $timestamp)) """
576
576
})
577
577
}
@@ -741,11 +741,11 @@ abstract class UnixTime
741
741
case StringType =>
742
742
val tz = ctx.addReferenceObj(" timeZone" , timeZone)
743
743
val locale = ctx.addReferenceObj(" locale" , Locale .US )
744
- val dtu = TimestampFormatter .getClass.getName.stripSuffix(" $" )
744
+ val tf = TimestampFormatter .getClass.getName.stripSuffix(" $" )
745
745
nullSafeCodeGen(ctx, ev, (string, format) => {
746
746
s """
747
747
try {
748
- ${ev.value} = $dtu .apply( $format.toString(), $tz, $locale)
748
+ ${ev.value} = $tf $$ .MODULE $$ .apply( $format.toString(), $tz, $locale)
749
749
.parse( $string.toString()) / 1000000L;
750
750
} catch (java.lang.IllegalArgumentException e) {
751
751
${ev.isNull} = true;
0 commit comments