[ 
https://issues.apache.org/jira/browse/SPARK-8382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Armbrust updated SPARK-8382:
------------------------------------
    Target Version/s: 1.6.0  (was: 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
>
> 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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to