Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gengliangwang committed Mar 14, 2019
1 parent 144b076 commit 6475d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FallbackOrcDataSourceV2(sparkSession: SparkSession) extends Rule[LogicalPl
val relation = HadoopFsRelation(
table.fileIndex,
table.fileIndex.partitionSchema,
table.schema(),
table.schema,
None,
v1FileFormat,
d.options.asScala.toMap)(sparkSession)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ abstract class FileTable(
s"Unable to infer schema for $name. It must be specified manually.")
}.asNullable

override def schema(): StructType = {
override lazy val schema: StructType = {
val caseSensitive = sparkSession.sessionState.conf.caseSensitiveAnalysis
SchemaUtils.checkColumnNameDuplication(dataSchema.fieldNames,
"in the data schema", caseSensitive)
Expand Down

0 comments on commit 6475d4f

Please sign in to comment.