[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
GitHub user xubo245 opened a pull request:

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

    [CARBONDATA-3116] Support set carbon.query.directQueryOnDataMap.enabled=true

    [CARBONDATA-3116] support set carbon.query.directQueryOnDataMap.enabled=true
    Be sure to do all of the following checklist to help us incorporate
    your contribution quickly and easily:
   
     - [ ] Any interfaces changed?
     No
     - [ ] Any backward compatibility impacted?
     No
     - [ ] Document update required?
    No
     - [ ] Testing done
         add
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
    no


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

    $ git pull https://github.com/xubo245/carbondata CARBONDATA-3116_queryOnDataMap

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

    https://github.com/apache/carbondata/pull/2940.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 #2940
   
----
commit 951817802fda9df1720e0ba6341031b5183c619b
Author: xubo245 <xubo29@...>
Date:   2018-11-21T16:32:13Z

    [CARBONDATA-3116] set carbon.query.directQueryOnDataMap.enabled=true

----


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1494/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1703/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    Build Success with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9751/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2940#discussion_r235494866
 
    --- Diff: integration/spark2/pom.xml ---
    @@ -105,6 +105,11 @@
             </exclusion>
           </exclusions>
         </dependency>
    +    <dependency>
    +      <groupId>org.apache.httpcomponents</groupId>
    --- End diff --
   
    Is this required in this PR?


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user xubo245 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2940#discussion_r235578689
 
    --- Diff: integration/spark2/pom.xml ---
    @@ -105,6 +105,11 @@
             </exclusion>
           </exclusions>
         </dependency>
    +    <dependency>
    +      <groupId>org.apache.httpcomponents</groupId>
    --- End diff --
   
    I test this issue with CarbonThrfitServer and beeline in the local,  it throw the exception, so I fix it in this PR too.small change.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user xubo245 commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    @jackylk @ravipesala @KanakaKumar @kunal642  This is a bug, please review it.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kunal642 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2940#discussion_r238142863
 
    --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/preaggregate/TestPreAggCreateCommand.scala ---
    @@ -463,6 +464,39 @@ class TestPreAggCreateCommand extends QueryTest with BeforeAndAfterAll {
         executorService.shutdown()
       }
     
    +  test("support set carbon.query.directQueryOnDataMap.enabled=true") {
    +    val rootPath = new File(this.getClass.getResource("/").getPath
    +      + "../../../..").getCanonicalPath
    +    val testData = s"$rootPath/integration/spark-common-test/src/test/resources/sample.csv"
    +    sql("drop table if exists mainTable")
    +    sql(
    +      s"""
    +         | CREATE TABLE mainTable
    +         |   (id Int,
    +         |   name String,
    +         |   city String,
    +         |   age Int)
    +         | STORED BY 'org.apache.carbondata.format'
    +      """.stripMargin);
    +
    +
    +    sql(
    +      s"""
    +         | LOAD DATA LOCAL INPATH '$testData'
    +         | into table mainTable
    +       """.stripMargin);
    +
    +    sql(
    +      s"""
    +         | create datamap preagg_sum on table mainTable
    +         | using 'preaggregate'
    +         | as select id,sum(age) from mainTable group by id
    +       """.stripMargin);
    +
    +    sql("set carbon.query.directQueryOnDataMap.enabled=true");
    --- End diff --
   
    Setting this property here would not be of use as this property is never validated in tests.
   
    Check https://github.com/apache/carbondata/blob/master/integration/spark-common/src/main/scala/org/apache/spark/sql/test/util/QueryTest.scala#L45 for reference



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user manishgupta88 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2940#discussion_r238152763
 
    --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/preaggregate/TestPreAggCreateCommand.scala ---
    @@ -463,6 +464,39 @@ class TestPreAggCreateCommand extends QueryTest with BeforeAndAfterAll {
         executorService.shutdown()
       }
     
    +  test("support set carbon.query.directQueryOnDataMap.enabled=true") {
    +    val rootPath = new File(this.getClass.getResource("/").getPath
    +      + "../../../..").getCanonicalPath
    +    val testData = s"$rootPath/integration/spark-common-test/src/test/resources/sample.csv"
    +    sql("drop table if exists mainTable")
    +    sql(
    +      s"""
    +         | CREATE TABLE mainTable
    +         |   (id Int,
    +         |   name String,
    +         |   city String,
    +         |   age Int)
    +         | STORED BY 'org.apache.carbondata.format'
    +      """.stripMargin);
    +
    +
    +    sql(
    +      s"""
    +         | LOAD DATA LOCAL INPATH '$testData'
    +         | into table mainTable
    +       """.stripMargin);
    --- End diff --
   
    for scala code semi-colon `;` is not required


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user xubo245 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2940#discussion_r238156400
 
    --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/preaggregate/TestPreAggCreateCommand.scala ---
    @@ -463,6 +464,39 @@ class TestPreAggCreateCommand extends QueryTest with BeforeAndAfterAll {
         executorService.shutdown()
       }
     
    +  test("support set carbon.query.directQueryOnDataMap.enabled=true") {
    +    val rootPath = new File(this.getClass.getResource("/").getPath
    +      + "../../../..").getCanonicalPath
    +    val testData = s"$rootPath/integration/spark-common-test/src/test/resources/sample.csv"
    +    sql("drop table if exists mainTable")
    +    sql(
    +      s"""
    +         | CREATE TABLE mainTable
    +         |   (id Int,
    +         |   name String,
    +         |   city String,
    +         |   age Int)
    +         | STORED BY 'org.apache.carbondata.format'
    +      """.stripMargin);
    +
    +
    +    sql(
    +      s"""
    +         | LOAD DATA LOCAL INPATH '$testData'
    +         | into table mainTable
    +       """.stripMargin);
    --- End diff --
   
    ok, removed


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kunal642 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2940#discussion_r238161863
 
    --- Diff: integration/spark2/pom.xml ---
    @@ -105,6 +105,11 @@
             </exclusion>
           </exclusions>
         </dependency>
    +    <dependency>
    +      <groupId>org.apache.httpcomponents</groupId>
    --- End diff --
   
    @xubo245 This change is already there in #2925 .  We can discuss on that PR on this. Please remove the changes from this PR.
   
    @jackylk Let us discuss whether this is actually required. Please refer the PR #2925 and give inputs


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user xubo245 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2940#discussion_r238166894
 
    --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/preaggregate/TestPreAggCreateCommand.scala ---
    @@ -463,6 +464,39 @@ class TestPreAggCreateCommand extends QueryTest with BeforeAndAfterAll {
         executorService.shutdown()
       }
     
    +  test("support set carbon.query.directQueryOnDataMap.enabled=true") {
    +    val rootPath = new File(this.getClass.getResource("/").getPath
    +      + "../../../..").getCanonicalPath
    +    val testData = s"$rootPath/integration/spark-common-test/src/test/resources/sample.csv"
    +    sql("drop table if exists mainTable")
    +    sql(
    +      s"""
    +         | CREATE TABLE mainTable
    +         |   (id Int,
    +         |   name String,
    +         |   city String,
    +         |   age Int)
    +         | STORED BY 'org.apache.carbondata.format'
    +      """.stripMargin);
    +
    +
    +    sql(
    +      s"""
    +         | LOAD DATA LOCAL INPATH '$testData'
    +         | into table mainTable
    +       """.stripMargin);
    +
    +    sql(
    +      s"""
    +         | create datamap preagg_sum on table mainTable
    +         | using 'preaggregate'
    +         | as select id,sum(age) from mainTable group by id
    +       """.stripMargin);
    +
    +    sql("set carbon.query.directQueryOnDataMap.enabled=true");
    --- End diff --
   
    ok, optimized it. Why don't we use the default value for test?


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1616/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kumarvishal09 commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    @xubo245 this property was added for internal purpose to restrict user from directly querying on pre-ggregate data map as it will show aggregated output


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2940: [CARBONDATA-3116] Support set carbon.query.di...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user xubo245 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2940#discussion_r238188148
 
    --- Diff: integration/spark2/pom.xml ---
    @@ -105,6 +105,11 @@
             </exclusion>
           </exclusions>
         </dependency>
    +    <dependency>
    +      <groupId>org.apache.httpcomponents</groupId>
    --- End diff --
   
    Please handle it fast,no this dependency will affect the carbonThriftServer


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1827/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1618/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    Build Success with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9878/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1829/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2940: [CARBONDATA-3116] Support set carbon.query.directQue...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user xubo245 commented on the issue:

    https://github.com/apache/carbondata/pull/2940
 
    CI pass, please review it. @jackylk @manishgupta88 @kunal642


---
12