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

    https://github.com/apache/spark/pull/16672#discussion_r100735110
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala 
---
    @@ -1431,4 +1432,133 @@ class HiveDDLSuite
           }
         }
       }
    +
    +  test("insert data to a data source table which has a not existed 
location should succeed") {
    +    withTable("t") {
    +      withTempDir { dir =>
    +        spark.sql(
    +          s"""CREATE TABLE t(a string, b int)
    +              |USING parquet
    +              |OPTIONS(path "file:${dir.getCanonicalPath}")
    +           """.stripMargin)
    +        var table = 
spark.sessionState.catalog.getTableMetadata(TableIdentifier("t"))
    --- End diff --
    
    Another general comment. Please avoid using `var`, if possible.


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