Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4967

File name with comma will cause exception for SQLContext.parquetFile

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:

      Description

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chenghao Cheng Hao
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: