You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "sandip-db (via GitHub)" <gi...@apache.org> on 2024/05/07 23:29:21 UTC
Re: [PR] [SPARK-48100][SQL] Fix issues in skipping nested structure fields not selected in schema [spark]
sandip-db commented on code in PR #46348:
URL: https://github.com/apache/spark/pull/46348#discussion_r1593198748
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/xml/StaxXmlParser.scala:
##########
@@ -397,8 +397,7 @@ class StaxXmlParser(
row(anyIndex) = values :+ newValue
}
} else {
- StaxXmlParserUtils.skipChildren(parser)
- StaxXmlParserUtils.skipNextEndElement(parser, field, options)
+ StaxXmlParserUtils.skipChildren(parser, field, options)
Review Comment:
super nit:
```suggestion
StaxXmlParserUtils.skipChildren(parser, field, options)
```
--
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-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org