itholic commented on PR #39891:
URL: https://github.com/apache/spark/pull/39891#issuecomment-1418334421

   > MERGE is a SQL Statement, so the term is very confusing.
   
   I agree with that.
   Actually the term MERGE here means that `merge` function of `StructType` 
(`StructType.merge`).
   So, seems like it's `StructType` specific error message.
   
   > Can you explain when this error is being raised?
   
   The `StructType.merge` requires two `StructType` to be merged together.
   When merging the two `StructType`, it raises error if If both schemas don't 
match.
   
   Btw, on my second thought,  it seems to be a private function so can't be 
used in user space ??
   ```scala
   scala> StructType.merge(left, right)
   <console>:29: error: method merge in object StructType cannot be accessed in 
object org.apache.spark.sql.types.StructType
          StructType.merge(left, right)
   ```
   cc @MaxGekk @cloud-fan Would you confirm if we should switched this error 
into internal error ??
   


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