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

    https://github.com/apache/spark/pull/14207#discussion_r71380691
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/catalog/Catalog.scala ---
    @@ -223,6 +223,9 @@ abstract class Catalog {
        * If this table is cached as an InMemoryRelation, drop the original 
cached version and make the
        * new version cached lazily.
        *
    +   * If the table's schema is inferred at runtime, infer the schema again 
and update the schema
    --- End diff --
    
    refreshTable shouldn't run schema inference. Only run schema inference when 
creating the table.
    
    And don't make this a config flag. Just run schema inference when creating 
the table. For managed tables, store the schema explicitly. Users must 
explicitly change it.



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