cloud-fan commented on code in PR #48664:
URL: https://github.com/apache/spark/pull/48664#discussion_r1850341691
##########
sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala:
##########
@@ -245,13 +262,17 @@ class Dataset[T] private[sql](
}
@transient private[sql] val logicalPlan: LogicalPlan = {
- val plan = queryExecution.commandExecuted
- if
(sparkSession.sessionState.conf.getConf(SQLConf.FAIL_AMBIGUOUS_SELF_JOIN_ENABLED))
{
- val dsIds = plan.getTagValue(Dataset.DATASET_ID_TAG).getOrElse(new
HashSet[Long])
- dsIds.add(id)
- plan.setTagValue(Dataset.DATASET_ID_TAG, dsIds)
+ if (queryExecution.isLazyAnalysis) {
+ queryExecution.logical
Review Comment:
you can't put a command inside a subquery expression (neither in SQL).
--
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]