Skip to content

Commit

Permalink
[VL] enable log function
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Jul 2, 2024
1 parent eb1b913 commit 3b8cb4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ class ScalarFunctionsValidateSuite extends FunctionsValidateTest {
}
}

test("Test log function") {
runQueryAndCompare("SELECT log(10, l_orderkey) from lineitem limit 1") {
checkGlutenOperatorMatch[ProjectExecTransformer]
}
}

test("Test shiftleft function") {
val df = runQueryAndCompare("SELECT shiftleft(int_field1, 1) from datatab limit 1") {
checkGlutenOperatorMatch[ProjectExecTransformer]
Expand Down
2 changes: 1 addition & 1 deletion docs/velox-backend-support-progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Gluten supports 199 functions. (Drag to right to see all data types)
| hex | | | S | | | | | | S | | | | | S | | | S | | | | | |
| hypot | | | | | | | | | | | | | | | | | | | | | | |
| ln | ln | | S | | | S | S | S | S | S | S | | | | | | | | | | | |
| log | ln | | S | | | S | S | S | S | S | S | | | | | | | | | | | |
| log | ln | log | S | | | S | S | S | S | S | S | | | | | | | | | | | |
| log10 | log10 | | S | | | S | S | S | S | S | S | | | | | | | | | | | |
| log1p | | | | | | | | | | | | | | | | | | | | | | |
| log2 | log2 | | S | | | S | S | S | S | S | S | | | | | | | | | | | |
Expand Down

0 comments on commit 3b8cb4c

Please sign in to comment.