You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/08/03 21:26:11 UTC

[jira] [Updated] (SPARK-8382) Improve Analysis Unit test framework

     [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org