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:05:21 UTC

[GitHub] carbondata pull request #2189: [HOTFIX][branch-1.3] Add CarbonStreamingQuery...

GitHub user QiangCai opened a pull request:

    https://github.com/apache/carbondata/pull/2189

    [HOTFIX][branch-1.3] Add CarbonStreamingQueryListener to SparkSession

    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [x] Any interfaces changed?
     
     - [x] Any backward compatibility impacted?
     no
     - [x] Document update required?
    no
     - [x] Testing done
            Please provide details on 
            - Whether new unit test cases have been added or why no new tests are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance test report.
            - Any additional information to help reviewers in testing this change.
           
     - [x] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. 
    small

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/QiangCai/carbondata streaming_listener_for_branch_1_3

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/2189.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2189
    
----
commit 0e42656837724052b0bfe057d3bd5a774c0098c7
Author: QiangCai <qi...@...>
Date:   2018-04-19T07:49:31Z

    add CarbonStreamingQueryListener to SparkSession

----


---

[GitHub] carbondata pull request #2189: [CARBONDATA-2363][branch-1.3] Add CarbonStrea...

Posted by QiangCai <gi...@git.apache.org>.
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


---

[GitHub] carbondata pull request #2189: [HOTFIX][branch-1.3] Add CarbonStreamingQuery...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2189#discussion_r182666738
  
    --- 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 --
    
    move this function to createSink


---

[GitHub] carbondata pull request #2189: [CARBONDATA-2363][branch-1.3] Add CarbonStrea...

Posted by QiangCai <gi...@git.apache.org>.
Github user QiangCai closed the pull request at:

    https://github.com/apache/carbondata/pull/2189


---

[GitHub] carbondata issue #2189: [CARBONDATA-2363][branch-1.3] Add CarbonStreamingQue...

Posted by zzcclp <gi...@git.apache.org>.
Github user zzcclp commented on the issue:

    https://github.com/apache/carbondata/pull/2189
  
    @jackylk @QiangCai I raise a hotfix pr to fix import error after this pr was merged. The 'CarbonStreamingQueryListener' is in the package 'import org.apache.spark.sql.execution.streaming' on branch-1.3, not the package 'org.apache.carbondata.streaming'.


---

[GitHub] carbondata issue #2189: [CARBONDATA-2363][branch-1.3] Add CarbonStreamingQue...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on the issue:

    https://github.com/apache/carbondata/pull/2189
  
    LGTM


---

[GitHub] carbondata pull request #2189: [HOTFIX][branch-1.3] Add CarbonStreamingQuery...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2189#discussion_r182666461
  
    --- 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
    --- End diff --
    
    please change to `add CarbonStreamingQueryListener if it is SparkSession instance`


---

[GitHub] carbondata issue #2189: [CARBONDATA-2363][branch-1.3] Add CarbonStreamingQue...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2189
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5215/



---