You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "xinghuayu007 (via GitHub)" <gi...@apache.org> on 2025/02/26 09:54:27 UTC
[PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
xinghuayu007 opened a new pull request, #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835
## What changes were proposed in this pull request?
Update the document 'docs/velox-backend-support-progress.md' and clarify the supported functions.
(Fixes: \#ISSUE-ID)
## How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma commented on PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#issuecomment-2684601618
Thanks for working on this. However, we already have an issue #8821 to track the function support. https://github.com/apache/incubator-gluten/pull/8822 is for this issue and the function support lists are automatically generated from an internal script. With this approach, we can regularly update the function support list without much manual maintenance in the future.
I will close this one and it's welcomed to review https://github.com/apache/incubator-gluten/pull/8822 and the follow-up PRs. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#issuecomment-2684470612
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICEGJ-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
Thanks for opening a pull request!
Could you open an issue for this pull request on Github Issues?
https://github.com/apache/incubator-gluten/issues
Then could you also rename ***commit message*** and ***pull request title*** in the following format?
[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}
See also:
* [Other pull requests](https://github.com/apache/incubator-gluten/pulls/)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma commented on code in PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#discussion_r1971947840
##########
docs/velox-backend-support-progress.md:
##########
@@ -442,14 +441,14 @@ Gluten supports 199 functions. (Drag to right to see all data types)
| rank | rank | | S | | | | | | | | | | | | | | | | | | | |
| row_number | row_number | | S | | | | S | S | S | | | | | | | | | | | | | |
| from_csv | | | | | | | | | | | | | | | | | | | | | | |
-| from_json | | | | | | | | | | | | | | | | | | | | | | |
+| from_json | from_json | from_json | S | | | | | | | | | | | | | | | | | | | |
| get_json_object | json_extract_scalar | get_json_object | S | | | | | | | | | | | | | | | | | | S | |
| json_array_length | json_array_length | | S | | | | | | | | | | | | | | | | | | S | |
-| json_tuple | | | | | | | | | | | | | | | | | | | | | | |
+| json_tuple | json_tuple | json_tuple | S | | | | | | | | | | | | | | | | | | | |
| schema_of_csv | | | | | | | | | | | | | | | | | | | | | | |
| schema_of_json | | | | | | | | | | | | | | | | | | | | | | |
| to_csv | | | | | | | | | | | | | | | | | | | | | | |
-| to_json | | | | | | | | | | | | | | | | | | | | | | |
+| to_json | to_json | to_json | S | | | | | | | | | | | | | | | | | | | |
Review Comment:
```
12:37:58.806 WARN org.apache.spark.sql.execution.GlutenFallbackReporter: Validation failed for plan: Project[QueryId=3176], due to:
- Native validation failed:
|- Validation failed due to exception caught at file:SubstraitToVeloxPlanValidator.cc line:1368 function:validate, thrown from file:ExprCompiler.cpp line:475 function:compileRewrittenExpression, reason:Scalar function name not registered: to_json, called with arguments: (ROW<a:INTEGER,b:INTEGER>).
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma commented on code in PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#discussion_r1971949749
##########
docs/velox-backend-support-progress.md:
##########
@@ -371,13 +370,13 @@ Gluten supports 199 functions. (Drag to right to see all data types)
| timestamp | | | | | | | | | | | | | | | | | | | | | | |
| timestamp_micros | | timestamp_micros | S | | | | | | | | | | | | | | | | | | | |
| timestamp_millis | | timestamp_millis | S | | | | | | | | | | | | | | | | | | | |
-| timestamp_seconds | | | | | | | | | | | | | | | | | | | | | | |
+| timestamp_seconds | timestamp_seconds | timestamp_seconds | S | | | | | | | | | | | | | | | | | | | |
Review Comment:
```
12:35:41.114 WARN org.apache.spark.sql.execution.GlutenFallbackReporter: Validation failed for plan: Project[QueryId=985], due to:
- Native validation failed:
|- Validation failed due to exception caught at file:SubstraitToVeloxPlanValidator.cc line:1368 function:validate, thrown from file:ExprCompiler.cpp line:475 function:compileRewrittenExpression, reason:Scalar function name not registered: timestamp_seconds, called with arguments: (INTEGER).
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma closed pull request #8835: [Doc] Update the document of velox backend support functions
URL: https://github.com/apache/incubator-gluten/pull/8835
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma commented on code in PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#discussion_r1971938644
##########
docs/velox-backend-support-progress.md:
##########
@@ -299,20 +299,19 @@ Gluten supports 199 functions. (Drag to right to see all data types)
| array_remove | array_remove | | S | | | | | | | | | | | | | | | | | | | |
| array_repeat | | | S | | S | S | S | S | S | S | S | S | S | S | S | | | | | | | |
| array_sort | array_sort | array_sort | S | | | | | | | | | | | | | | | | | | | |
-| array_union | | | | | | | | | | | | | | | | | | | | | | |
-| arrays_overlap | array_overlap | S | | | | | | | | | | | | | | | | | | | | |
+| array_union | array_union | array_union | S | | | | | | | | | | | | | | | | | | | |
+| arrays_overlap | array_overlap | array_overlap | S | | | | | | | | | | | | | | | | | | | |
| arrays_zip | zip | | S | | | | | | | | | | | | | | | | | | | |
| cardinality | cardinality | | | | | | | | | | | | | | | | | | | | | |
| element_at | element_at | element_at | S | | | | | | | | | | | | | | | | S | S | | |
| exists | any_match | | S | | | | | | | | | | | | | | | | | | | |
-| explode, explode_outer | | | | | | | | | | | | | | | | | | | | | | |
-| explode_outer, explode | | | | | | | | | | | | | | | | | | | | | | |
+| explode, explode_outer | explode | explode | S | | | | | | | | | | | | | | | | | | | |
Review Comment:
explode is supported, while explode_outer is not. [This PR](https://github.com/apache/incubator-gluten/pull/8333) is working on it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma commented on code in PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#discussion_r1971937263
##########
docs/velox-backend-support-progress.md:
##########
@@ -299,20 +299,19 @@ Gluten supports 199 functions. (Drag to right to see all data types)
| array_remove | array_remove | | S | | | | | | | | | | | | | | | | | | | |
| array_repeat | | | S | | S | S | S | S | S | S | S | S | S | S | S | | | | | | | |
| array_sort | array_sort | array_sort | S | | | | | | | | | | | | | | | | | | | |
-| array_union | | | | | | | | | | | | | | | | | | | | | | |
-| arrays_overlap | array_overlap | S | | | | | | | | | | | | | | | | | | | | |
+| array_union | array_union | array_union | S | | | | | | | | | | | | | | | | | | | |
Review Comment:
There are fallback logs
```
12:35:13.302 WARN org.apache.spark.sql.execution.GlutenFallbackReporter: Validation failed for plan: Project[QueryId=133], due to:
- Native validation failed:
|- Validation failed due to exception caught at file:SubstraitToVeloxPlanValidator.cc line:1368 function:validate, thrown from file:ExprCompiler.cpp line:475 function:compileRewrittenExpression, reason:Scalar function name not registered: array_union, called with arguments: (ARRAY<DOUBLE>, ARRAY<DOUBLE>).
```
Seems like `array_union` is not supported.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma commented on code in PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#discussion_r1971948470
##########
docs/velox-backend-support-progress.md:
##########
@@ -388,7 +387,7 @@ Gluten supports 199 functions. (Drag to right to see all data types)
| aggregate | | aggregate | S | | | | | | | | | | | | | | | | | | | |
| any | | | | | | | | | | | | | | | | | | | | | | |
| approx_count_distinct | approx_distinct | | S | | S | S | S | S | S | S | S | S | | S | | | | | | | | |
-| approx_percentile | | | | | | | | | | | | | | | | | | | | | | |
+| approx_percentile | approx_percentile | approx_percentile | S | | | | | | | | | | | | | | | | | | | |
Review Comment:
```
12:35:31.555 WARN org.apache.spark.sql.execution.GlutenFallbackReporter: Validation failed for plan: ObjectHashAggregate[QueryId=675], due to:
- Native validation failed:
|- Validation failed at file:SubstraitToVeloxPlanValidator.cc, line:1235, function:validate, reason:approx_percentile was not supported in AggregateRel.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma commented on code in PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#discussion_r1971946965
##########
docs/velox-backend-support-progress.md:
##########
@@ -442,14 +441,14 @@ Gluten supports 199 functions. (Drag to right to see all data types)
| rank | rank | | S | | | | | | | | | | | | | | | | | | | |
| row_number | row_number | | S | | | | S | S | S | | | | | | | | | | | | | |
| from_csv | | | | | | | | | | | | | | | | | | | | | | |
-| from_json | | | | | | | | | | | | | | | | | | | | | | |
+| from_json | from_json | from_json | S | | | | | | | | | | | | | | | | | | | |
Review Comment:
```
12:38:33.093 WARN org.apache.spark.sql.execution.GlutenFallbackReporter: Validation failed for plan: Project[QueryId=3888], due to:
- Native validation failed:
|- Validation failed at file:SubstraitToVeloxPlanValidator.cc, line:236, function:validateScalarFunction, reason:Function is not supported: from_json
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [Doc] Update the document of velox backend support functions [incubator-gluten]
Posted by "marin-ma (via GitHub)" <gi...@apache.org>.
marin-ma commented on code in PR #8835:
URL: https://github.com/apache/incubator-gluten/pull/8835#discussion_r1971944753
##########
docs/velox-backend-support-progress.md:
##########
@@ -344,25 +343,25 @@ Gluten supports 199 functions. (Drag to right to see all data types)
| date_from_unix_date | | | S | | | | | | | | | | | | | | | | | | | |
| date_part | | | | | | | | | | | | | | | | | | | | | | |
| date_sub | | | S | | | | | | | | | | | | | | | | | | | |
-| date_trunc | date_trunc | | | | | | | | | | | | | | | | | | | | | |
+| date_trunc | date_trunc | date_trunc | S | | | | | | | | | | | | | | | | | | | |
| datediff | date_diff | | S | | | | | | | | | S | S | | | | | | | | | |
| day | day | | S | | | | | | | | | S | S | | | | | | | | | |
| dayofmonth | day_of_month | | S | | | | | | | | | S | S | | | | | | | | | |
| dayofweek | day_of_week,dow | | S | | | | | | | | | S | S | | | | | | | | | |
| dayofyear | day_of_year,doy | | S | | | | | | | | | S | S | | | | | | | | | |
-| extract | | | | | | | | | | | | S | S | | | | | | | | | |
+| extract | extract | extract | S | | | | | | | | | S | S | | | | | | | | | |
| from_unixtime | from_unixtime | | S | | | | | | S | | | | | | | | | | | | | |
| from_utc_timestamp | | from_utc_timestamp | S | | | | | | | | | | | | | | | | | | | |
| hour | hour | | S | | | | | | | | | | S | | | | | | | | | |
| last_day | | last_day | S | | | | | | | | | | | | | | | | | | | |
| make_date | | make_date | S | | | | | | | | | | | | | | | | | | | |
| make_dt_interval | | | | | | | | | | | | | | | | | | | | | | |
-| make_interval | | | | | | | | | | | | | | | | | | | | | | |
-| make_timestamp | | | | | | | | | | | | | | | | | | | | | | |
-| make_ym_interval | | | | | | | | | | | | | | | | | | | | | | |
+| make_interval | make_interval | make_interval | S | | | | | | | | | | | | | | | | | | | |
Review Comment:
The return type for "make_interval" is `CalendarIntervalType`, which is not supported yet.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org