Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/13269#issuecomment-222252647
  
    As we discussed offline, this PR also enables case insensitive encoder 
resolution. Would be nice to add a test case for it. Basically something like 
this:
    
    ```scala
    case class A(a: String)
    
    val data = Seq(
      "{ 'A': 'foo' }",
      "{ 'A': 'bar' }"
    )
    
    val df1 = spark.read.json(sc.parallelize(data))
    df1.printSchema()
    // root
    //  |-- A: string (nullable = true)
    
    val ds1 = df1.as[A]
    ds1.printSchema()
    // root
    //  |-- a: string (nullable = true)
    ```


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to