Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
address comments
  • Loading branch information
cloud-fan committed Feb 22, 2021
commit 643f002379a712a7fe1da3245ac396a1c4c8ad42
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ final class DataStreamReader private[sql](sparkSession: SparkSession) extends Lo
* @since 2.3.0
*/
def schema(schemaString: String): DataStreamReader = {
val rawSchema = StructType.fromDDL(schemaString)
val schema = CharVarcharUtils.failIfHasCharVarchar(rawSchema).asInstanceOf[StructType]
this.userSpecifiedSchema = Option(schema)
this
schema(StructType.fromDDL(schemaString))
}

/**
Expand Down