cloud-fan commented on code in PR #52334:
URL: https://github.com/apache/spark/pull/52334#discussion_r2425751788
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AbstractSqlParser.scala:
##########
@@ -90,15 +90,17 @@ abstract class AbstractSqlParser extends AbstractParser
with ParserInterface {
}
/** Creates LogicalPlan for a given SQL string. */
- override def parsePlan(sqlText: String): LogicalPlan = parse(sqlText) {
parser =>
- val ctx = parser.compoundOrSingleStatement()
- withErrorHandling(ctx, Some(sqlText)) {
- astBuilder.visitCompoundOrSingleStatement(ctx) match {
- case compoundBody: CompoundPlanStatement => compoundBody
- case plan: LogicalPlan => plan
- case _ =>
- val position = Origin(None, None)
- throw QueryParsingErrors.sqlStatementUnsupportedError(sqlText,
position)
+ override def parsePlan(sqlText: String): LogicalPlan = {
+ parse(sqlText) { parser =>
Review Comment:
let's revert the code style change. `parse(sqlText)` should be in the same
line of `def parsePlan`
--
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]