Skip to content

Commit

Permalink
added for binary
Browse files Browse the repository at this point in the history
  • Loading branch information
buraksenn committed Oct 21, 2024
1 parent 6da48af commit cae5fb4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion datafusion/sqllogictest/test_files/scalar.slt
Original file line number Diff line number Diff line change
Expand Up @@ -544,13 +544,28 @@ select log(arrow_cast(10, 'Float64')) a ,log(arrow_cast(100, 'Float32')) b;

# log overloaded base 10 float64 and float32 casting with columns
query RR rowsort
select log(arrow_cast(a, 'Float64')) ,log(arrow_cast(b, 'Float32')) from signed_integers;
select log(arrow_cast(a, 'Float64')), log(arrow_cast(b, 'Float32')) from signed_integers;
----
0.301029995664 NaN
0.602059991328 NULL
NaN 2
NaN 4

# log float64 and float32 casting scalar
query RR rowsort
select log(2,arrow_cast(8, 'Float64')) a, log(2,arrow_cast(16, 'Float32')) b;
----
3 4

# log float64 and float32 casting with columns
query RR rowsort
select log(2,arrow_cast(a, 'Float64')), log(4,arrow_cast(b, 'Float32')) from signed_integers;
----
1 NaN
2 NULL
NaN 3.321928
NaN 6.643856


## log10

Expand Down

0 comments on commit cae5fb4

Please sign in to comment.