carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] carbondata pull request #1611: [CARBONDATA-1848] Carbondata streaming sink a...
Date Tue, 05 Dec 2017 14:32:45 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1611#discussion_r154961448
  
    --- Diff: streaming/src/main/scala/org/apache/spark/sql/execution/streaming/CarbonStreamingQueryListener.scala
---
    @@ -33,7 +33,16 @@ class CarbonStreamingQueryListener(spark: SparkSession) extends StreamingQueryLi
       private val cache = new util.HashMap[UUID, ICarbonLock]()
     
       override def onQueryStarted(event: StreamingQueryListener.QueryStartedEvent): Unit
= {
    -    val qry = spark.streams.get(event.id).asInstanceOf[StreamExecution]
    +    val streamQuery = spark.streams.get(event.id)
    +    val qry = if (streamQuery.isInstanceOf[StreamExecution]) {
    --- End diff --
    
    Isn't there an utility to check spark version?


---

Mime
View raw message