Github user AndreSchumacher commented on a diff in the pull request:
https://github.com/apache/spark/pull/360#discussion_r11986096
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/complexTypes.scala
---
@@ -52,6 +52,7 @@ case class GetItem(child: Expression, ordinal:
Expression) extends Expression {
}
} else {
val baseValue = child.eval(input).asInstanceOf[Map[Any, _]]
+ // TODO: recover key type!!
--- End diff --
`MapType` records the type of the key. I was wondering whether one should
use that instead if possible and not just Any. The comment relates to the other
comments inside the resolver.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---