HyukjinKwon commented on code in PR #36296:
URL: https://github.com/apache/spark/pull/36296#discussion_r855735028


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcUtils.scala:
##########
@@ -224,8 +224,10 @@ object OrcUtils extends Logging {
         // the physical schema doesn't match the data schema).
         // In these cases we map the physical schema to the data schema by 
index.
         assert(orcFieldNames.length <= dataSchema.length, "The given data 
schema " +
-          s"${dataSchema.catalogString} has less fields than the actual ORC 
physical schema, " +
-          "no idea which columns were dropped, fail to read.")
+          s"${dataSchema.catalogString} (length:${dataSchema.length}) " +
+          s"has less ${orcFieldNames.length - dataSchema.length} fields than " 
+
+          s"the actual ORC physical schema $orcSchema 
(length:${orcFieldNames.length}), " +
+          s"no idea which columns were dropped, fail to read.")

Review Comment:
   ```suggestion
             "no idea which columns were dropped, fail to read.")
   ```



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