Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18961#discussion_r135749554
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala 
---
    @@ -2029,4 +2029,13 @@ class DataFrameSuite extends QueryTest with 
SharedSQLContext {
           testData2.select(lit(7), 'a, 'b).orderBy(lit(1), lit(2), lit(3)),
           Seq(Row(7, 1, 1), Row(7, 1, 2), Row(7, 2, 1), Row(7, 2, 2), Row(7, 
3, 1), Row(7, 3, 2)))
       }
    +
    +  test("SPARK-21746: nondeterministic expressions correctly for filter 
predicates") {
    +    withTempPath { path =>
    +      val p = path.getAbsolutePath
    +      Seq(1 -> "a").toDF("a", "b").write.partitionBy("a").parquet(p)
    +      val df = spark.read.parquet(p)
    +      checkAnswer(df.filter(rand(10) <= 1.0).select($"a"), Row(1))
    --- End diff --
    
    First, you don't add any comment to explain it. Reviewers don't know that.
    Second, a new test should test against some regressions or the proposed 
changes. This test is neither of both.


---
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