Skip to content

Commit

Permalink
fix get datahub schema
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxuanguan committed Jul 26, 2019
1 parent eb6680e commit 6d4a8fb
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 @@ -52,7 +52,7 @@ class DatahubContinuousReader(

private var offset: Offset = _

override def readSchema: StructType = DatahubSchema.getSchema(schema, sourceOptions)
override lazy val readSchema: StructType = DatahubSchema.getSchema(schema, sourceOptions)

override def commit(end: Offset): Unit = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class DatahubSource(
})
}.shardToOffsets

override def schema: StructType = DatahubSchema.getSchema(userSpecifiedSchema, sourceOptions)
override lazy val schema: StructType = DatahubSchema.getSchema(userSpecifiedSchema, sourceOptions)

// TODO: remove fallback
private val fallback = schema.sameType(DatahubSchema.getDefaultSchema)
Expand Down

0 comments on commit 6d4a8fb

Please sign in to comment.