Skip to content

Commit

Permalink
Fix incorrect timestamp of tidbMapDatabase (pingcap#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdstorm committed Jun 26, 2019
1 parent fe07ee1 commit 823636e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/scala/org/apache/spark/sql/TiContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ class TiContext(val sparkSession: SparkSession, options: Option[TiDBOptions] = N
val tiRelation = TiDBRelation(
tiSession,
TiTableReference(dbName, tableName),
meta,
tiSession.getTimestamp
meta
)(sqlContext)
sqlContext.baseRelationToDataFrame(tiRelation)
}
Expand Down Expand Up @@ -214,8 +213,7 @@ class TiContext(val sparkSession: SparkSession, options: Option[TiDBOptions] = N
val rel: TiDBRelation = TiDBRelation(
tiSession,
TiTableReference(dbName, tableName, sizeInBytes),
meta,
tiSession.getTimestamp
meta
)(sqlContext)

val viewName = getViewName(dbName, tableName, dbNameAsPrefix)
Expand Down

0 comments on commit 823636e

Please sign in to comment.