File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
datafusion/functions/src/math Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,7 @@ impl ScalarUDFImpl for LogFunc {
140
140
let arr: ArrayRef = match args[ 0 ] . data_type ( ) {
141
141
DataType :: Float64 => match base {
142
142
ColumnarValue :: Scalar ( ScalarValue :: Float64 ( Some ( base) ) ) => Arc :: new (
143
- args[ 0 ]
144
- . as_primitive :: < Float64Type > ( )
143
+ x. as_primitive :: < Float64Type > ( )
145
144
. unary :: < _ , Float64Type > ( |value : f64 | f64:: log ( value, base) ) ,
146
145
) ,
147
146
ColumnarValue :: Array ( base) => Arc :: new ( make_function_inputs2 ! (
@@ -159,8 +158,7 @@ impl ScalarUDFImpl for LogFunc {
159
158
160
159
DataType :: Float32 => match base {
161
160
ColumnarValue :: Scalar ( ScalarValue :: Float32 ( Some ( base) ) ) => Arc :: new (
162
- args[ 0 ]
163
- . as_primitive :: < Float32Type > ( )
161
+ x. as_primitive :: < Float32Type > ( )
164
162
. unary :: < _ , Float32Type > ( |value : f32 | f32:: log ( value, base) ) ,
165
163
) ,
166
164
ColumnarValue :: Array ( base) => Arc :: new ( make_function_inputs2 ! (
You can’t perform that action at this time.
0 commit comments