@@ -22,37 +22,41 @@ import org.apache.spark.sql.types.{StringType, StructField, StructType}
2222
2323class FakeSourceOne extends RelationProvider {
2424
25- override def format () = " Fluet da Bomb"
25+ override def format (): String = " Fluet da Bomb"
2626
27- override def createRelation (cont : SQLContext , param : Map [String , String ]) = new BaseRelation {
28- override def sqlContext : SQLContext = cont
27+ override def createRelation (cont : SQLContext , param : Map [String , String ]): BaseRelation =
28+ new BaseRelation {
29+ override def sqlContext : SQLContext = cont
2930
30- override def schema : StructType =
31- StructType (Seq (StructField (" stringType" , StringType , nullable = false )))
32- }
31+ override def schema : StructType =
32+ StructType (Seq (StructField (" stringType" , StringType , nullable = false )))
33+ }
3334}
3435
3536class FakeSourceTwo extends RelationProvider {
3637
37- override def format () = " Fluet da Bomb"
38+ override def format (): String = " Fluet da Bomb"
3839
39- override def createRelation (cont : SQLContext , param : Map [String , String ]) = new BaseRelation {
40- override def sqlContext : SQLContext = cont
40+ override def createRelation (cont : SQLContext , param : Map [String , String ]): BaseRelation =
41+ new BaseRelation {
42+ override def sqlContext : SQLContext = cont
4143
42- override def schema : StructType =
43- StructType (Seq (StructField (" stringType" , StringType , nullable = false )))
44- }
44+ override def schema : StructType =
45+ StructType (Seq (StructField (" stringType" , StringType , nullable = false )))
46+ }
4547}
4648
4749class FakeSourceThree extends RelationProvider {
48- override def format () = " gathering quorum"
4950
50- override def createRelation (cont : SQLContext , param : Map [String , String ]) = new BaseRelation {
51- override def sqlContext : SQLContext = cont
51+ override def format (): String = " gathering quorum"
5252
53- override def schema : StructType =
54- StructType (Seq (StructField (" stringType" , StringType , nullable = false )))
55- }
53+ override def createRelation (cont : SQLContext , param : Map [String , String ]): BaseRelation =
54+ new BaseRelation {
55+ override def sqlContext : SQLContext = cont
56+
57+ override def schema : StructType =
58+ StructType (Seq (StructField (" stringType" , StringType , nullable = false )))
59+ }
5660}
5761// please note that the META-INF/services had to be modified for the test directory for this to work
5862class DDLSourceLoadSuite extends DataSourceTest {
0 commit comments