File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import org.apache.spark.sql.types.StructType
27
27
28
28
29
29
private [sql] class DefaultSource
30
- extends RelationProvider with SchemaRelationProvider with CreateableRelationProvider {
30
+ extends RelationProvider with SchemaRelationProvider with CreatableRelationProvider {
31
31
32
32
/** Returns a new base relation with the parameters. */
33
33
override def createRelation (
Original file line number Diff line number Diff line change @@ -279,9 +279,9 @@ object ResolvedDataSource {
279
279
}
280
280
281
281
val relation = clazz.newInstance match {
282
- case dataSource : org.apache.spark.sql.sources.CreateableRelationProvider =>
282
+ case dataSource : org.apache.spark.sql.sources.CreatableRelationProvider =>
283
283
dataSource
284
- .asInstanceOf [org.apache.spark.sql.sources.CreateableRelationProvider ]
284
+ .asInstanceOf [org.apache.spark.sql.sources.CreatableRelationProvider ]
285
285
.createRelation(sqlContext, options, data)
286
286
case _ =>
287
287
sys.error(s " ${clazz.getCanonicalName} does not allow create table as select. " )
@@ -366,7 +366,7 @@ private [sql] case class CreateTempTableUsingAsSelect(
366
366
/**
367
367
* Builds a map in which keys are case insensitive
368
368
*/
369
- protected class CaseInsensitiveMap (map : Map [String , String ]) extends Map [String , String ]
369
+ protected class CaseInsensitiveMap (map : Map [String , String ]) extends Map [String , String ]
370
370
with Serializable {
371
371
372
372
val baseMap = map.map(kv => kv.copy(_1 = kv._1.toLowerCase))
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ trait SchemaRelationProvider {
78
78
}
79
79
80
80
@ DeveloperApi
81
- trait CreateableRelationProvider {
81
+ trait CreatableRelationProvider {
82
82
def createRelation (
83
83
sqlContext : SQLContext ,
84
84
parameters : Map [String , String ],
You can’t perform that action at this time.
0 commit comments