Re: Load multiple CSV from different paths

2017-07-05 Thread Didac Gil
Thanks man! That was the key. source = […].toSeq sources: _* Learnt something more with Scala. > On 5 Jul 2017, at 16:29, Radhwane Chebaane wrote: > > Hi, > > Referring to spark 2.x documentation, in org.apache.spark.sql.DataFrameReader > you have this function:

Re: Load multiple CSV from different paths

2017-07-05 Thread Radhwane Chebaane
Hi, Referring to spark 2.x documentation, in org.apache.spark.sql.DataFrameReader you have this function: def csv(paths: String*): DataFrame So you

Load multiple CSV from different paths

2017-07-05 Thread Didac Gil
Hi, Do you know any simple way to load multiple csv files (same schema) that are in different paths? Wildcards are not a solution, as I want to load specific csv files from different folders. I came across a solution