quote all fields to avoid some compatibility issues
This commit is contained in:
Родитель
0bbdb3c382
Коммит
b232b7af3c
|
@ -1,6 +1,6 @@
|
|||
name := "spark-cdm"
|
||||
|
||||
version := "0.3"
|
||||
version := "0.3~markbaas"
|
||||
|
||||
scalaVersion := "2.11.8"
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@ object CsvParserFactory {
|
|||
}
|
||||
|
||||
def buildWriter(outputWriter: OutputStreamWriter): CsvWriter = {
|
||||
new CsvWriter(outputWriter, new CsvWriterSettings())
|
||||
val settings = new CsvWriterSettings()
|
||||
settings.setQuoteAllFields(true);
|
||||
new CsvWriter(outputWriter, settings)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче