Skip to content

Conversation

@ajantha-bhat
Copy link
Member

This PR is a backport of #3757 to spark-3.1

@github-actions github-actions bot added the spark label Dec 23, 2021
// Add a dummy prefix linking to the table to collect the resolved spark expression from optimized plan.
val prefix = String.format("SELECT 42 from %s where ", tableName)
val logicalPlan = session.sessionState.sqlParser.parsePlan(prefix + where)
val optimizedLogicalPlan = session.sessionState.executePlan(logicalPlan).optimizedPlan
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change compared to spark-3.2 PR is this. executePlan accepts only one argument in spark-3.0 and spark-3.1

@rdblue rdblue merged commit 768126a into apache:master Dec 30, 2021
@rdblue
Copy link
Contributor

rdblue commented Dec 30, 2021

Thanks, @ajantha-bhat!

@ajantha-bhat ajantha-bhat deleted the exp31 branch January 24, 2023 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants