Re: readCsvFile

2016-10-09 Thread Alberto Ramón
orrect: >>>> [image: Imágenes integradas 2] >>>> >>>> The correct result must be only 1º Column >>>> (a,1) >>>> (aa,1) >>>> >>>> 2016-10-06 21:37 GMT+02:00 Fabian Hueske : >>>> >>>>

Re: readCsvFile

2016-10-09 Thread Fabian Hueske
gt;> >>> The output is incorrect: >>> [image: Imágenes integradas 2] >>> >>> The correct result must be only 1º Column >>> (a,1) >>> (aa,1) >>> >>> 2016-10-06 21:37 GMT+02:00 Fabian Hueske : >>> >>>> Hi A

Re: readCsvFile

2016-10-09 Thread Alberto Ramón
> if you want to read a single column you have to wrap it in a Tuple1: >>> >>> val text4 = env.readCsvFile[Tuple1[String]]("file:data.csv" ,includedFields >>> = Array(1)) >>> >>> Best, Fabian >>> >>> 2016-10-06 20

Re: readCsvFile

2016-10-07 Thread Fabian Hueske
00 Fabian Hueske : > >> Hi Alberto, >> >> if you want to read a single column you have to wrap it in a Tuple1: >> >> val text4 = env.readCsvFile[Tuple1[String]]("file:data.csv" ,includedFields >> = Array(1)) >> >> Best, Fabian >> &g

Re: readCsvFile

2016-10-07 Thread Alberto Ramón
t; if you want to read a single column you have to wrap it in a Tuple1: > > val text4 = env.readCsvFile[Tuple1[String]]("file:data.csv" ,includedFields = > Array(1)) > > Best, Fabian > > 2016-10-06 20:59 GMT+02:00 Alberto Ramón : > >> I'm learning re

Re: readCsvFile

2016-10-06 Thread Fabian Hueske
Hi Alberto, if you want to read a single column you have to wrap it in a Tuple1: val text4 = env.readCsvFile[Tuple1[String]]("file:data.csv" ,includedFields = Array(1)) Best, Fabian 2016-10-06 20:59 GMT+02:00 Alberto Ramón : > I'm learning readCsvFile > (I discover if

readCsvFile

2016-10-06 Thread Alberto Ramón
I'm learning readCsvFile (I discover if the file ends on "/n", you will return a null exception) *if I try to read only 1 column * val text4 = env.readCsvFile[String]("file:data.csv" ,includedFields = Array(1)) The error is: he type String has to be a tuple or pojo ty