throws exception when $schema does not subsumes the $subSchema
return true if $schema subsumes the $subSchema.
return true if $schema subsumes the $subSchema.
A schema A subsumes B if all columns of B are present in A and their corresponding datatypes are compatible with each other. Example In following example schemaA subsumes schemaB
val schemaA = StructType( Seq( StructField("col1", StringType, true), StructField("col2", DoubleType, true), StructField("col3", DoubleType, true) ) ) val schemaB = StructType( Seq( StructField("col1", StringType, true), StructField("col2", IntegerType, true), ) )
(Since version ) see corresponding Javadoc for more information.