[
https://issues.apache.org/jira/browse/SPARK-8382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust resolved SPARK-8382.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
> Improve Analysis Unit test framework
> ------------------------------------
>
> Key: SPARK-8382
> URL: https://issues.apache.org/jira/browse/SPARK-8382
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Michael Armbrust
> Assignee: Wenchen Fan
> Fix For: 1.5.0
>
>
> We have some nice frameworks for doing various unit test {{checkAnswer}},
> {{comparePlan}}, {{checkEvaluation}}, etc. However {{AnalysisSuite}} is kind
> of sloppy with each test using assertions in different ways. I'd like a
> function that looks something like the following:
> {code}
> def checkAnalysis(
> inputPlan: LogicalPlan,
> expectedPlan: LogicalPlan = null,
> caseInsensitiveOnly: Boolean = false,
> expectedErrors: Seq[String] = Nil)
> {code}
> This function should construct tests that check the Analyzer works as
> expected and provides useful error messages when any failures are
> encountered. We should then rewrite the existing tests and beef up our
> coverage here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]