Github user QiangCai commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2189#discussion_r182675457
--- Diff:
streaming/src/main/scala/org/apache/carbondata/streaming/StreamSinkFactory.scala
---
@@ -77,6 +78,22 @@ object StreamSinkFactory {
}
}
+ lazy val listenerAdded = new mutable.HashMap[Int, Boolean]()
+
+ // add CarbonStreamingQueryListener to other SparkSession
+ def addListenerForSparkSession(sparkSession: SparkSession): Unit = {
+ if (!"CarbonSession".equals(sparkSession.getClass.getSimpleName)) {
--- End diff --
ok
---