Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-37533][FOLLOWUP] Remove useless code in Analyzer and TryEvalSuite #35260

Closed
wants to merge 1 commit into from

Conversation

gengliangwang
Copy link
Member

What changes were proposed in this pull request?

Remove useless code in Analyzer and TryEvalSuite

Why are the changes needed?

Code clean up and avoid confusion.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing UT

@@ -1879,9 +1879,6 @@ class Analyzer(override val catalogManager: CatalogManager)
}}
}

// Group by alias is not allowed in ANSI mode.
private def allowGroupByAlias: Boolean = conf.groupByAliases && !conf.ansiEnabled
Copy link
Member Author

Choose a reason for hiding this comment

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

Somehow this one is missed in 8bfb4f1e72.

@@ -45,28 +45,4 @@ class TryEvalSuite extends SparkFunSuite with ExpressionEvalHelper {
checkEvaluation(input, expected)
}
}

test("try_element_at: array") {
Copy link
Member Author

Choose a reason for hiding this comment

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

try_element_at doesn't rely on TryEval after #34833

@dongjoon-hyun dongjoon-hyun changed the title [MINOR][SPARK-35028][SPARK-37533][FOLLOWUP] Remove useless code in Analyzer and TryEvalSuite [SPARK-37533][FOLLOWUP] Remove useless code in Analyzer and TryEvalSuite Jan 20, 2022
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

I removed SPARK-35028 from the title because it's a follow-up for the Revert SPARK-35028 commit. So, it's a little misleading in the commit log if we have SPARK-35028 after removing it from our code base.

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants