ShreelekhyaG commented on a change in pull request #3841:
URL: https://github.com/apache/carbondata/pull/3841#discussion_r458854322
##########
File path:
integration/spark/src/main/scala/org/apache/carbondata/view/MVManagerInSpark.scala
##########
@@ -48,17 +48,14 @@ class MVManagerInSpark(session: SparkSession) extends
MVManager {
object MVManagerInSpark {
- private val MANAGER_MAP_BY_SESSION =
- new util.HashMap[SparkSession, MVManagerInSpark]()
+ private var viewManager: MVManagerInSpark = null
+ // returns single MVManager instance for all the current sessions.
Review comment:
There should be only one MVManagerInSpark instance sharing the same
sparkcontext. If not, in different spark sessions, the query will not hit MV.
----------------------------------------------------------------
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:
[email protected]