File tree Expand file tree Collapse file tree
spark-extension/src/main/scala/org/apache/spark/sql/blaze Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 - name : Setup ${{ inputs.sparkver }}
7474 if : steps.cache-spark.outputs.cache-hit != 'true'
7575 run : |
76- wget -c ${{ inputs.sparkurl }}
76+ wget_retry=0 # wget with retry
77+ while ! wget -c ${{ inputs.sparkurl }}; do
78+ if [ $wget_retry -ge 5 ]; then
79+ exit 1
80+ fi
81+ let wget_retry+=1
82+ sleep 5
83+ done
84+
7785 mkdir -p spark-bin-${{ inputs.sparkver }}
7886 cd spark-bin-${{ inputs.sparkver }} && tar -xf ../spark-*.tgz --strip-component=1
7987
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ import org.apache.spark.sql.catalyst.plans.LeftSemi
5151import org .apache .spark .sql .catalyst .plans .RightOuter
5252import org .apache .spark .sql .catalyst .util .ArrayData
5353import org .apache .spark .sql .catalyst .InternalRow
54- import org .apache .spark .sql .catalyst .expressions .Days
54+ import org .apache .spark .sql .catalyst .expressions .DayOfMonth
5555import org .apache .spark .sql .catalyst .expressions .GetJsonObject
5656import org .apache .spark .sql .catalyst .expressions .LeafExpression
5757import org .apache .spark .sql .catalyst .expressions .Month
@@ -875,7 +875,7 @@ object NativeConverters extends Logging {
875875
876876 case Year (child) => buildExtScalarFunction(" Year" , child :: Nil , DateType )
877877 case Month (child) => buildExtScalarFunction(" Month" , child :: Nil , DateType )
878- case Days (child) => buildExtScalarFunction(" Day" , child :: Nil , DateType )
878+ case DayOfMonth (child) => buildExtScalarFunction(" Day" , child :: Nil , DateType )
879879
880880 // startswith is converted to scalar function in pruning-expr mode
881881 case StartsWith (expr, Literal (prefix, StringType )) if isPruningExpr =>
You can’t perform that action at this time.
0 commit comments