You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/05/28 01:01:14 UTC

[spark] branch branch-2.4 updated: [SPARK-31839][TESTS] Delete duplicate code in castsuit

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 8bde6ed  [SPARK-31839][TESTS] Delete duplicate code in castsuit
8bde6ed is described below

commit 8bde6ed4563985a3b474abd67c171b11867e755d
Author: GuoPhilipse <46...@users.noreply.github.com>
AuthorDate: Thu May 28 09:57:11 2020 +0900

    [SPARK-31839][TESTS] Delete duplicate code in castsuit
    
    ### What changes were proposed in this pull request?
    Delete duplicate code castsuit
    
    ### Why are the changes needed?
    keep spark code clean
    
    ### Does this PR introduce _any_ user-facing change?
    no
    
    ### How was this patch tested?
    no need
    
    Closes #28655 from GuoPhilipse/delete-duplicate-code-castsuit.
    
    Lead-authored-by: GuoPhilipse <46...@users.noreply.github.com>
    Co-authored-by: GuoPhilipse <gu...@126.com>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
    (cherry picked from commit dfbc5edf20040e8163ee3beef61f2743a948c508)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 .../test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala
index 7616645..3f25f06 100644
--- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala
+++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala
@@ -286,7 +286,6 @@ class CastSuite extends SparkFunSuite with ExpressionEvalHelper {
     checkCast(1.5, "1.5")
 
     checkEvaluation(cast(cast(1.toDouble, TimestampType), DoubleType), 1.toDouble)
-    checkEvaluation(cast(cast(1.toDouble, TimestampType), DoubleType), 1.toDouble)
   }
 
   test("cast from string") {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org