GitHub user scwf opened a pull request:

    https://github.com/apache/spark/pull/4395

    [SPARK-5617][SQL] fix test failure of SQLQuerySuite

    SQLQuerySuite test failure: 
    [info] - simple select (22 milliseconds)
    [info] - sorting (722 milliseconds)
    [info] - external sorting (728 milliseconds)
    [info] - limit (95 milliseconds)
    [info] - date row *** FAILED *** (35 milliseconds)
    [info]   Results do not match for query:
    [info]   'Limit 1
    [info]    'Project [CAST(2015-01-28, DateType) AS c0#3630]
    [info]     'UnresolvedRelation [testData], None
    [info]   
    [info]   == Analyzed Plan ==
    [info]   Limit 1
    [info]    Project [CAST(2015-01-28, DateType) AS c0#3630]
    [info]     LogicalRDD [key#0,value#1], MapPartitionsRDD[1] at mapPartitions 
at ExistingRDD.scala:35
    [info]   
    [info]   == Physical Plan ==
    [info]   Limit 1
    [info]    Project [16463 AS c0#3630]
    [info]     PhysicalRDD [key#0,value#1], MapPartitionsRDD[1] at 
mapPartitions at ExistingRDD.scala:35
    [info]   
    [info]   == Results ==
    [info]   !== Correct Answer - 1 ==   == Spark Answer - 1 ==
    [info]   ![2015-01-28]               [2015-01-27] (QueryTest.scala:77)
    [info]   org.scalatest.exceptions.TestFailedException:
    [info]   at 
org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:495)
    [info]   at 
org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1555)
    [info]   at org.scalatest.Assertions$class.fail(Assertions.scala:1328)
    [info]   at org.scalatest.FunSuite.fail(FunSuite.scala:1555)
    [info]   at org.apache.spark.sql.QueryTest.checkAnswer(QueryTest.scala:77)
    [info]   at org.apache.spark.sql.QueryTest.checkAnswer(QueryTest.scala:95)
    [info]   at 
org.apache.spark.sql.SQLQuerySuite$$anonfun$23.apply$mcV$sp(SQLQuerySuite.scala:300)
    [info]   at 
org.apache.spark.sql.SQLQuerySuite$$anonfun$23.apply(SQLQuerySuite.scala:300)
    [info]   at 
org.apache.spark.sql.SQLQuerySuite$$anonfun$23.apply(SQLQuerySuite.scala:300)
    [info]   at 
org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
    [info]   at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
    [info]   at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
    [info]   at org.scalatest.Transformer.apply(Transformer.scala:22)
    [info]   at org.scalatest.Transformer.apply(Transformer.scala:20)
    [info]   at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
    [info]   at org.scalatest.Suite$class.withFixture(Suite.scala:1122)
    [info]   at org.scalatest.FunSuite.withFixture(FunSuite.scala:1555)
    [info]   at 
org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)
    [info]   at 
org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
    [info]   at 
org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
    [info]   at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
    [info]   at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)
    [info]   at org.scalatest.FunSuite.runTest(FunSuite.scala:1555)
    [info]   at 
org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
    [info]   at 
org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
    [info]   at org.scalatest.SuperEngine$$anonfun$traverseSubNode

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/scwf/spark SQLQuerySuite

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/4395.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4395
    
----
commit 01dab3af4247256d1c8f41ca08cf25125c7b0623
Author: wangfei <[email protected]>
Date:   2015-02-05T11:32:18Z

    fix test failure of SQLQuerySuite

commit b9fdb96acf5e2f0cb00075b7d0d50fbb4b4fa7aa
Author: wangfei <[email protected]>
Date:   2015-02-05T11:40:02Z

    minor fix

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to