You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2026/06/18 15:13:47 UTC
[I] Support `MapType` for `ElementAt` [datafusion-comet]
comphead opened a new issue, #4684:
URL: https://github.com/apache/datafusion-comet/issues/4684
> in Apache Spark, the ElementAt supports Map, and Comet gates for Array only, we should support Map
>
> ```
> override def inputTypes: Seq[AbstractDataType] = {
> (left.dataType, right.dataType) match {
> case (arr: ArrayType, e2: IntegralType) if (e2 != LongType) =>
> Seq(arr, IntegerType)
> case (MapType(keyType, valueType, hasNull), e2) =>
> TypeCoercion.findTightestCommonType(keyType, e2) match {
> case Some(dt) => Seq(MapType(dt, valueType, hasNull), dt)
> case _ => Seq.empty
> }
> case (l, r) => Seq.empty
>
> }
> }
> ```
_Originally posted by @comphead in [#4677](https://github.com/apache/datafusion-comet/pull/4677/changes#r3436913514)_
--
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] Support `MapType` for `ElementAt` [datafusion-comet]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead closed issue #4684: Support `MapType` for `ElementAt`
URL: https://github.com/apache/datafusion-comet/issues/4684
--
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] Support `MapType` for `ElementAt` [datafusion-comet]
Posted by "0lai0 (via GitHub)" <gi...@apache.org>.
0lai0 commented on issue #4684:
URL: https://github.com/apache/datafusion-comet/issues/4684#issuecomment-4753936519
take
--
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