File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
datafusion/core/src/physical_plan Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -660,6 +660,18 @@ fn signature(fun: &BuiltinScalarFunction) -> Signature {
660660 ) ,
661661 BuiltinScalarFunction :: Pi => Signature :: exact ( vec ! [ ] , fun. volatility ( ) ) ,
662662 BuiltinScalarFunction :: Random => Signature :: exact ( vec ! [ ] , fun. volatility ( ) ) ,
663+ BuiltinScalarFunction :: Log => Signature :: one_of (
664+ vec ! [
665+ TypeSignature :: Exact ( vec![ DataType :: Float64 ] ) ,
666+ TypeSignature :: Exact ( vec![ DataType :: Float32 ] ) ,
667+ // NOTE: stub, won't execute
668+ TypeSignature :: Exact ( vec![
669+ DataType :: Decimal ( 38 , 10 ) ,
670+ DataType :: Decimal ( 38 , 10 ) ,
671+ ] ) ,
672+ ] ,
673+ fun. volatility ( ) ,
674+ ) ,
663675 // math expressions expect 1 argument of type f64 or f32
664676 // priority is given to f64 because e.g. `sqrt(1i32)` is in IR (real numbers) and thus we
665677 // return the best approximation for it (in f64).
You can’t perform that action at this time.
0 commit comments