cloud-fan commented on code in PR #36027: URL: https://github.com/apache/spark/pull/36027#discussion_r976029766
########## sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala: ########## @@ -1026,7 +1026,14 @@ private[hive] object HiveClientImpl extends Logging { } else { CharVarcharUtils.getRawTypeString(c.metadata).getOrElse(c.dataType.catalogString) } - new FieldSchema(c.name, typeString, c.getComment().orNull) + val name = if (lowerCase) { + // scalastyle:off caselocale + c.name.toLowerCase + // scalastyle:on caselocale + } else { + c.name Review Comment: We can use `Object` to store the raw hive table, so that we don't need to expose the Hive classes. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org