You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/02/24 13:43:52 UTC
[GitHub] [spark] cloud-fan commented on a change in pull request #31601: [SPARK-34484][SQL] Introduce a new syntax to represent map types with the Catalyst DSL
cloud-fan commented on a change in pull request #31601:
URL: https://github.com/apache/spark/pull/31601#discussion_r581968701
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
##########
@@ -308,10 +308,10 @@ package object dsl {
AttributeReference(s, arrayType)()
/** Creates a new AttributeReference of type map */
- def map(keyType: DataType, valueType: DataType): AttributeReference =
- map(MapType(keyType, valueType))
+ def mapAttr(keyType: DataType, valueType: DataType): AttributeReference =
+ mapAttr(MapType(keyType, valueType))
- def map(mapType: MapType): AttributeReference =
+ def mapAttr(mapType: MapType): AttributeReference =
AttributeReference(s, mapType, nullable = true)()
Review comment:
If you have fixed all the places, shall we remove DSL APIs that take Symbol?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org