dejankrak-db commented on code in PR #59640: URL: https://github.com/apache/spark/pull/59640#discussion_r4348278132
########## sql/api/src/main/scala/org/apache/spark/sql/types/FileType.scala: ########## @@ -45,10 +45,9 @@ import org.apache.spark.annotation.Unstable * (mode not yet determined, such as the result of a cast or of a UDF). Mode is part of type * identity - files with different modes are distinct under `equals`. * - * FileType is planned to be not comparable -- it cannot be used in join expressions, grouping - * expressions, or as a partition/clustering column. Users can extract the uri field for such - * operations. This type currently only guarantees the schema-level pieces (DDL and JSON); the - * physical representation and most of the restrictions are added by later parts. + * FileType is not comparable -- it cannot be used in a map key, join expressions, grouping Review Comment: Reworded in 40df55fce0d: the restriction is on maps that a query builds (`map(f, 1)` fails with `INVALID_MAP_KEY_TYPE`) and on the return type of a function, so the doc now says that. A `MAP<FILE EXTERNAL, INT>` table column is still accepted; I kept that as it is, since rejecting map keys in table DDL would need a new error class and is better decided together with the other FILE map restrictions, as a follow-up. Happy to add it as a follow-up if you think it should be blocked. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
