dongjoon-hyun commented on a change in pull request #26927: [SPARK-29505][SQL]
desc extended <table name> <column name> to be case insensitive
URL: https://github.com/apache/spark/pull/26927#discussion_r358937261
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
##########
@@ -720,8 +720,8 @@ case class DescribeColumnCommand(
}
val catalogTable = catalog.getTempViewOrPermanentTableMetadata(table)
- val colStats = catalogTable.stats.map(_.colStats).getOrElse(Map.empty)
- val cs = colStats.get(field.name)
+ val colStats = catalogTable.stats.map(_.colStats.map{ case (key, value) =>
key.toLowerCase -> value}).getOrElse(Map.empty)
Review comment:
Hi, @PavithraRamachandran .
Could you run `dev/scalastyle` and fix the errors?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]