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

    https://github.com/apache/spark/pull/16944#discussion_r102550255
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
    @@ -296,6 +296,21 @@ object SQLConf {
           .longConf
           .createWithDefault(250 * 1024 * 1024)
     
    +  object HiveCaseSensitiveInferenceMode extends Enumeration {
    +    type HiveCaseSensitiveInferenceMode = Value
    +    val INFER_AND_SAVE, INFER_ONLY, NEVER_INFER = Value
    +  }
    +  val HIVE_CASE_SENSITIVE_INFERENCE = 
buildConf("spark.sql.hive.caseSensitiveInferenceMode")
    +    .doc("Configures the action to take when a case-sensitive schema 
cannot be read from a Hive " +
    +      "table's properties. Valid options include INFER_AND_SAVE (infer the 
case-sensitive " +
    --- End diff --
    
    Probably want to add some explanation as to why this matters even though 
SQL is not case sensitive, e.g.
    // Note that Spark SQL itself not case-sensitive, but since file formats 
such as parquet are, a case-sensitive schema is required in order to properly 
read fields.


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