You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2024/10/30 13:55:47 UTC

[I] [EPIC] Add support for all array expressions [datafusion-comet]

andygrove opened a new issue, #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042

   ### What is the problem the feature request solves?
   
   We would like to support all array operations natively in Comet.
   
   - [ ] array: SELECT array(1, 2, 3)
   - [ ] array_agg: SELECT array_agg(col) FROM VALUES (1), (2), (1) AS tab(col)
   - [ ] array_append: SELECT array_append(array('b', 'd', 'c', 'a'), 'd')
   - [ ] array_compact: SELECT array_compact(array(1, 2, 3, null))
   - [ ] array_contains: SELECT array_contains(array(1, 2, 3), 2)
   - [ ] array_distinct: SELECT array_distinct(array(1, 2, 3, null, 3))
   - [ ] array_except: SELECT array_except(array(1, 2, 3), array(1, 3, 5))
   - [ ] array_insert: SELECT array_insert(array(1, 2, 3, 4), 5, 5)
   - [ ] array_intersect: SELECT array_intersect(array(1, 2, 3), array(1, 3, 5))
   - [ ] array_join: SELECT array_join(array('hello', 'world'), ' ')
   - [ ] array_max: SELECT array_max(array(1, 20, null, 3))
   - [ ] array_min: SELECT array_min(array(1, 20, null, 3))
   - [ ] array_position: SELECT array_position(array(3, 2, 1), 1)
   - [ ] array_remove: SELECT array_remove(array(1, 2, 3, null, 3), 3)
   - [ ] array_repeat: SELECT array_repeat('123', 2)
   - [ ] array_size: SELECT array_size(array('b', 'd', 'c', 'a'))
   - [ ] array_sort: SELECT array_sort(array(5, 6, 1), (left, right) -> case when left < right then -1 when left > right then 1 else 0 end)
   - [ ] array_union: SELECT array_union(array(1, 2, 3), array(1, 3, 5))
   - [ ] arrays_overlap: SELECT arrays_overlap(array(1, 2, 3), array(3, 4, 5))
   - [ ] arrays_zip: SELECT arrays_zip(array(1, 2, 3), array(2, 3, 4))
   
   ### Describe the potential solution
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "jatin510 (via GitHub)" <gi...@apache.org>.
jatin510 commented on issue #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042#issuecomment-2552035359

   @andygrove 
   
   ```
    select array(1, 2, 3) ;
   24/12/19 00:13:47 WARN CometSparkSessionExtensions$CometExecRule: Comet cannot execute some parts of this plan natively (set spark.comet.explainFallback.enabled=false to disable this logging):
    Project [COMET: Project is not native because the following children are not native (Scan OneRowRelation)]
   +-  Scan OneRowRelation [COMET: Scan OneRowRelation is not supported]
   
   [1,2,3]
   ```
   
   is `array` function not supported in comet yet ?
   it is marked as done above ?
   
   
   


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "kazantsev-maksim (via GitHub)" <gi...@apache.org>.
kazantsev-maksim commented on issue #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042#issuecomment-2599787008

   I would like to work on array_except followed up by array_compact. 
   @andygrove 


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #1042: [EPIC] Add support for all array expressions
URL: https://github.com/apache/datafusion-comet/issues/1042


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "jatin510 (via GitHub)" <gi...@apache.org>.
jatin510 commented on issue #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042#issuecomment-2520587583

   I would like to work on `array_remove` followed up by `array_repeat` and `array_size`.
   @andygrove 


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "SemyonSinchenko (via GitHub)" <gi...@apache.org>.
SemyonSinchenko commented on issue #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042#issuecomment-2506696139

   I would like to work on `array_zip`


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "dharanad (via GitHub)" <gi...@apache.org>.
dharanad commented on issue #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042#issuecomment-2552202948

   > @andygrove
   > 
   > ```
   >  select array(1, 2, 3) ;
   > 24/12/19 00:13:47 WARN CometSparkSessionExtensions$CometExecRule: Comet cannot execute some parts of this plan natively (set spark.comet.explainFallback.enabled=false to disable this logging):
   >  Project [COMET: Project is not native because the following children are not native (Scan OneRowRelation)]
   > +-  Scan OneRowRelation [COMET: Scan OneRowRelation is not supported]
   > 
   > [1,2,3]
   > ```
   > 
   > is `array` function not supported in comet yet ? it is marked as done above ?
   
   If you can observe the error logs.  `Scan OneRowRelation` is not supported by Comet yet. Which is why vanilla Project operator is used instead of CometProject


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "dharanad (via GitHub)" <gi...@apache.org>.
dharanad commented on issue #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042#issuecomment-2573945137

   Many array functions in DataFusion currently have limited visibility. I have a pull request that addresses this issue https://github.com/apache/datafusion/pull/14030
   We can support for a wider range of array functions when comet is updated it consume next DataFusion release.


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "dharanad (via GitHub)" <gi...@apache.org>.
dharanad commented on issue #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042#issuecomment-2516237692

   I would like to work on `array_contains ` followed up by `array_min` & `array_max`


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Add support for all array expressions [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #1042:
URL: https://github.com/apache/datafusion-comet/issues/1042#issuecomment-4391772066

   All listed array expressions are now implemented in `spark/src/main/scala/org/apache/comet/serde/arrays.scala`. The remaining `array_agg` (CollectList) work is tracked separately in #2524, so this EPIC can be closed.


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org