This is an automated email from the ASF dual-hosted git repository.

philo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 6b6444e57 [VL] Add test for log function (#6211)
6b6444e57 is described below

commit 6b6444e57efb61bff3dd6842029e9feb9dfaa8c4
Author: Zhen Li <[email protected]>
AuthorDate: Tue Jul 2 20:31:07 2024 +0800

    [VL] Add test for log function (#6211)
---
 .../org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala  | 6 ++++++
 docs/velox-backend-support-progress.md                              | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala
 
b/backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala
index 3db0f5e79..9d0a926e3 100644
--- 
a/backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala
+++ 
b/backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala
@@ -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]
diff --git a/docs/velox-backend-support-progress.md 
b/docs/velox-backend-support-progress.md
index f39bd7016..f3f1e100b 100644
--- a/docs/velox-backend-support-progress.md
+++ b/docs/velox-backend-support-progress.md
@@ -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      |      |           |        |         |      |        |          | 
      |     |        |     |


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to