[GitHub] [carbondata] ravipesala commented on a change in pull request #3158: [WIP] Fixed deadlock issue during failed query

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] ravipesala commented on a change in pull request #3158: [WIP] Fixed deadlock issue during failed query

GitBox
ravipesala commented on a change in pull request #3158: [WIP] Fixed deadlock issue during failed query
URL: https://github.com/apache/carbondata/pull/3158#discussion_r268491676
 
 

 ##########
 File path: integration/spark2/src/main/scala/org/apache/spark/sql/CarbonDatasourceHadoopRelation.scala
 ##########
 @@ -56,8 +56,8 @@ 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
+  lazy val databaseName: String = identifier.getDatabaseName
+  lazy val tableName: String = identifier.getTableName
 
 Review comment:
   I don't think it is necessary to take as lazy val, just access `identifier` in `toString` method

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services