File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
shims/spark40/src/main/scala/org/apache/gluten/sql/shims/spark40 Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -700,6 +700,22 @@ class Spark40Shims extends SparkShims {
700700 plan.offset
701701 }
702702
703+ override def extractExpressionTimestampAddUnit (exp : Expression ): Option [Seq [String ]] = {
704+ exp match {
705+ case timestampAdd : TimestampAdd =>
706+ Option .apply(Seq (timestampAdd.unit, timestampAdd.timeZoneId.getOrElse(" " )))
707+ case _ => Option .empty
708+ }
709+ }
710+
711+ override def extractExpressionTimestampDiffUnit (exp : Expression ): Option [String ] = {
712+ exp match {
713+ case timestampDiff : TimestampDiff =>
714+ Some (timestampDiff.unit)
715+ case _ => Option .empty
716+ }
717+ }
718+
703719 override def widerDecimalType (d1 : DecimalType , d2 : DecimalType ): DecimalType = {
704720 DecimalPrecisionTypeCoercion .widerDecimalType(d1, d2)
705721 }
You can’t perform that action at this time.
0 commit comments