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 :
>>>>
>>>>
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
> 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
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
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
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
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