You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by QiangCai <gi...@git.apache.org> on 2018/04/19 08:50:48 UTC
[GitHub] carbondata pull request #2189: [CARBONDATA-2363][branch-1.3] Add CarbonStrea...
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
---