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

    https://github.com/apache/spark/pull/10260#discussion_r47584808
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala 
---
    @@ -481,10 +481,17 @@ class DatasetSuite extends QueryTest with 
SharedSQLContext {
         val ds = Seq(2 -> 2.toByte, 3 -> 3.toByte).toDF("a", "b").as[ClassData]
         assert(ds.collect().toSeq == Seq(ClassData("2", 2), ClassData("3", 3)))
       }
    -}
     
    +  test("verify mismatching field names fail with a good error") {
    +    val ds = Seq(ClassData("a", 1)).toDS()
    +    intercept[AnalysisException] {
    --- End diff --
    
    Check that the message has some key things in it? (variable names, types, 
etc.)


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