spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheng Hao (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-4967) File name with comma will cause exception for SQLContext.parquetFile
Date Thu, 25 Dec 2014 08:29:13 GMT
Cheng Hao created SPARK-4967:
--------------------------------

             Summary: File name with comma will cause exception for SQLContext.parquetFile
                 Key: SPARK-4967
                 URL: https://issues.apache.org/jira/browse/SPARK-4967
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Cheng Hao
            Priority: Minor


{code}
  test("simple projection with comma in file name") {
    val tmpFile = util.getTempFilePath("t,t").getCanonicalFile
    Utils.registerShutdownDeleteDir(tmpFile)
    // Test if "," in the file name can be correctly handled
    sparkContext.parallelize((1, 1) :: Nil).saveAsParquetFile(tmpFile.getCanonicalPath)
    assert(parquetFile(tmpFile.getCanonicalPath).first() === Row(1, 1))
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message