spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xwu0226 <...@git.apache.org>
Subject [GitHub] spark pull request #16878: [SPARK-19539][SQL] Block duplicate temp table dur...
Date Sun, 12 Feb 2017 16:34:08 GMT
Github user xwu0226 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16878#discussion_r100697200
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
---
    @@ -213,27 +216,33 @@ class CSVSuite extends QueryTest with SharedSQLContext with SQLTestUtils
{
       }
     
       test("DDL test with tab separated file") {
    -    spark.sql(
    -      s"""
    +    withView("carsTable") {
    +      spark.sql(
    +        s"""
              |CREATE TEMPORARY TABLE carsTable USING csv
              |OPTIONS (path "${testFile(carsTsvFile)}", header "true", delimiter "\t")
    -      """.stripMargin.replaceAll("\n", " "))
    +      """.stripMargin.replaceAll("\n", " "
     
    -    verifyCars(spark.table("carsTable"), numFields = 6, withHeader = true, checkHeader
= false)
    +        ))
    --- End diff --
    
    yes. Thanks!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message