ueshin commented on code in PR #40692: URL: https://github.com/apache/spark/pull/40692#discussion_r1160421573
########## connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/connect/client/SparkResult.scala: ########## @@ -60,13 +61,19 @@ private[sql] class SparkResult[T]( private def processResponses(stopOnFirstNonEmptyResponse: Boolean): Boolean = { while (responses.hasNext) { val response = responses.next() + if (response.hasSchema) { + structType = Review Comment: It is the original schema and the one in the arrow batch is modified to deduplicate the struct field names. Also the original schema contains UDT if it's supported. Python client works fine with that. -- 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