Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19864#discussion_r157427036
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/columnar/InMemoryColumnarQuerySuite.scala
 ---
    @@ -479,4 +485,43 @@ class InMemoryColumnarQuerySuite extends QueryTest 
with SharedSQLContext {
           }
         }
       }
    +
    +  test("SPARK-22673: InMemoryRelation should utilize existing stats of the 
plan to be cached") {
    +    withSQLConf("spark.sql.cbo.enabled" -> "true") {
    +      withTempDir { workDir =>
    +        withTable("table1") {
    +          val workDirPath = workDir.getAbsolutePath + "/table1"
    --- End diff --
    
    seems you can use `withTempPath`, which just gives you a path string 
without creating it.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to