wForget commented on code in PR #46132:
URL: https://github.com/apache/spark/pull/46132#discussion_r1578808475


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala:
##########
@@ -681,11 +681,14 @@ class SparkSqlAstBuilder extends AstBuilder {
     } else {
       val serdeInfo = maybeSerdeInfo.get
       if (serdeInfo.storedAs.isEmpty) {
+        val serde = serdeInfo.formatClasses
+          .flatMap(f => HiveSerDe.getSerDeFromFormatClasses(f.input, f.output))
+          .orElse(serdeInfo.serde)

Review Comment:
   Thanks for your review. I have made some adjustments to prioritize the 
user-defined 'ROW FORMAT SERDE'.



-- 
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]

Reply via email to