Skip to content

Commit

Permalink
fixed deadlock issue during failed query
Browse files Browse the repository at this point in the history
  • Loading branch information
kunal642 committed Mar 25, 2019
1 parent 1c8e9b6 commit 2c7fe5b
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -56,8 +56,6 @@ case class CarbonDatasourceHadoopRelation(
paths.head,
CarbonEnv.getDatabaseName(caseInsensitiveMap.get("dbname"))(sparkSession),
caseInsensitiveMap("tablename"))
lazy val databaseName: String = carbonTable.getDatabaseName
lazy val tableName: String = carbonTable.getTableName
CarbonSession.updateSessionInfoToCurrentThread(sparkSession)

@transient lazy val carbonRelation: CarbonRelation =
Expand Down Expand Up @@ -198,8 +196,8 @@ case class CarbonDatasourceHadoopRelation(
override def unhandledFilters(filters: Array[Filter]): Array[Filter] = new Array[Filter](0)

override def toString: String = {
"CarbonDatasourceHadoopRelation [ " + "Database name :" + databaseName +
", " + "Table name :" + tableName + ", Schema :" + tableSchema + " ]"
"CarbonDatasourceHadoopRelation [ " + "Database name :" + identifier.getDatabaseName +
", " + "Table name :" + identifier.getTableName + ", Schema :" + tableSchema + " ]"
}

override def sizeInBytes: Long = carbonRelation.sizeInBytes
Expand Down

0 comments on commit 2c7fe5b

Please sign in to comment.