Skip to content
  • Wenchen Fan's avatar
    b9a14718
    [SPARK-17720][SQL] introduce static SQL conf · b9a14718
    Wenchen Fan authored
    ## What changes were proposed in this pull request?
    
    SQLConf is session-scoped and mutable. However, we do have the requirement for a static SQL conf, which is global and immutable, e.g. the `schemaStringThreshold` in `HiveExternalCatalog`, the flag to enable/disable hive support, the global temp view database in https://github.com/apache/spark/pull/14897.
    
    Actually we've already implemented static SQL conf implicitly via `SparkConf`, this PR just make it explicit and expose it to users, so that they can see the config value via SQL command or `SparkSession.conf`, and forbid users to set/unset static SQL conf.
    
    ## How was this patch tested?
    
    new tests in SQLConfSuite
    
    Author: Wenchen Fan <wenchen@databricks.com>
    
    Closes #15295 from cloud-fan/global-conf.
    b9a14718
    [SPARK-17720][SQL] introduce static SQL conf
    Wenchen Fan authored
    ## What changes were proposed in this pull request?
    
    SQLConf is session-scoped and mutable. However, we do have the requirement for a static SQL conf, which is global and immutable, e.g. the `schemaStringThreshold` in `HiveExternalCatalog`, the flag to enable/disable hive support, the global temp view database in https://github.com/apache/spark/pull/14897.
    
    Actually we've already implemented static SQL conf implicitly via `SparkConf`, this PR just make it explicit and expose it to users, so that they can see the config value via SQL command or `SparkSession.conf`, and forbid users to set/unset static SQL conf.
    
    ## How was this patch tested?
    
    new tests in SQLConfSuite
    
    Author: Wenchen Fan <wenchen@databricks.com>
    
    Closes #15295 from cloud-fan/global-conf.
Loading