cloud-fan commented on a change in pull request #30229:
URL: https://github.com/apache/spark/pull/30229#discussion_r517127493
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
##########
@@ -3249,18 +3249,23 @@ class AstBuilder(conf: SQLConf) extends
SqlBaseBaseVisitor[AnyRef] with Logging
val tableName = visitMultipartIdentifier(ctx.multipartIdentifier())
if (ctx.ALL() != null) {
checkPartitionSpec()
- AnalyzeColumnStatement(tableName, None, allColumns = true)
+ AnalyzeColumn(UnresolvedTableOrView(tableName), None, allColumns = true)
} else if (ctx.identifierSeq() == null) {
val partitionSpec = if (ctx.partitionSpec != null) {
visitPartitionSpec(ctx.partitionSpec)
} else {
Map.empty[String, Option[String]]
}
- AnalyzeTableStatement(tableName, partitionSpec, noScan = ctx.identifier
!= null)
+ AnalyzeTable(
+ UnresolvedTableOrView(tableName, allowTempView = false),
+ partitionSpec,
+ noScan = ctx.identifier != null)
} else {
checkPartitionSpec()
- AnalyzeColumnStatement(
- tableName, Option(visitIdentifierSeq(ctx.identifierSeq())), allColumns
= false)
+ AnalyzeColumn(
+ UnresolvedTableOrView(tableName),
Review comment:
OK, let's keep the current behavior for now, and improve it later.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]