You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by jatin9896 <gi...@git.apache.org> on 2018/07/13 17:00:05 UTC
[GitHub] carbondata pull request #2507: [CABONDATA-2741]Fix for fetching random query...
GitHub user jatin9896 opened a pull request:
https://github.com/apache/carbondata/pull/2507
[CABONDATA-2741]Fix for fetching random query order by set in case of restructure
Description :
Using AttributeSet changes the order id of the query, as a set does not maintain order. so, changes the same with Sequence.
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
Please provide details on
- Whether new unit test cases have been added or why no new tests are required? yes
- 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.
- [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. Na
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jatin9896/incubator-carbondata CARBONDATA-2741
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2507.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 #2507
----
commit d4fd5ef44b2528b00456f19f02cee73cd9d427c2
Author: Jatin <ja...@...>
Date: 2018-07-13T15:30:33Z
Fix for fetching random query order by set in case of restructure
----
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5944/
---
[GitHub] carbondata pull request #2507: [CABONDATA-2741]Fix for filling measure colum...
Posted by jatin9896 <gi...@git.apache.org>.
Github user jatin9896 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2507#discussion_r202988752
--- Diff: core/src/main/java/org/apache/carbondata/core/scan/collector/impl/DictionaryBasedVectorResultCollector.java ---
@@ -109,13 +109,19 @@ void prepareDimensionAndMeasureColumnVectors() {
allColumnInfo[queryDimensions[i].getOrdinal()] = columnVectorInfo;
}
}
+ //skipping non existing measure columns in measureColumnInfo as here data filling to be done only on existing columns
+ // for non existing column it is already been filled from restructure based collector
+ int j = 0;
--- End diff --
@ravipesala
For RestructureBasedDictionaryResultCollector already handled implementation of filling measure of non existing and existing column in method fillmeasureData which is correct handling.
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2507
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5841/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by brijoobopanna <gi...@git.apache.org>.
Github user brijoobopanna commented on the issue:
https://github.com/apache/carbondata/pull/2507
retest sdv please
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2507
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5869/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2507
@jatin9896 The fix is not right, U think there is an issue in core not in integration. Please try to fix core.
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7186/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7168/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5961/
---
[GitHub] carbondata pull request #2507: [CABONDATA-2741]Fix for filling measure colum...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2507#discussion_r202900184
--- Diff: core/src/main/java/org/apache/carbondata/core/scan/collector/impl/DictionaryBasedVectorResultCollector.java ---
@@ -109,13 +109,19 @@ void prepareDimensionAndMeasureColumnVectors() {
allColumnInfo[queryDimensions[i].getOrdinal()] = columnVectorInfo;
}
}
+ //skipping non existing measure columns in measureColumnInfo as here data filling to be done only on existing columns
+ // for non existing column it is already been filled from restructure based collector
+ int j = 0;
--- End diff --
Please handle in other implementation classes of `AbstractScannedResultCollector`
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7183/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6014/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7241/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7251/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6027/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2507
LGTM
---
[GitHub] carbondata pull request #2507: [CABONDATA-2741]Fix for filling measure colum...
Posted by jatin9896 <gi...@git.apache.org>.
Github user jatin9896 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2507#discussion_r202897146
--- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/AlterTableValidationTestCase.scala ---
@@ -709,6 +710,18 @@ test("test alter command for boolean data type with correct default measure valu
Seq(Row(1))
)
}
+
+ test("Alter table selection in random order"){
+ sql("create table restructure_random_select (imei string,channelsId string,gamePointId double,deviceInformationId double," +
+ " deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='2000','sort_columns'='imei')")
+ sql("insert into restructure_random_select values('abc','def',50.5,30.2,40.6) ")
+ sql("Alter table restructure_random_select add columns (age int,name String)")
+ checkAnswer(
+ sql("select gamePointId,deviceInformationId,age,name from restructure_random_select where name is NULL or channelsId=4"),
--- End diff --
did the required changes in core.
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2507
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5888/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by jatin9896 <gi...@git.apache.org>.
Github user jatin9896 commented on the issue:
https://github.com/apache/carbondata/pull/2507
retest this please
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7204/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5997/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2507
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5838/
---
[GitHub] carbondata pull request #2507: [CABONDATA-2741]Fix for fetching random query...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2507#discussion_r202634979
--- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/AlterTableValidationTestCase.scala ---
@@ -709,6 +710,18 @@ test("test alter command for boolean data type with correct default measure valu
Seq(Row(1))
)
}
+
+ test("Alter table selection in random order"){
+ sql("create table restructure_random_select (imei string,channelsId string,gamePointId double,deviceInformationId double," +
+ " deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='2000','sort_columns'='imei')")
+ sql("insert into restructure_random_select values('abc','def',50.5,30.2,40.6) ")
+ sql("Alter table restructure_random_select add columns (age int,name String)")
+ checkAnswer(
+ sql("select gamePointId,deviceInformationId,age,name from restructure_random_select where name is NULL or channelsId=4"),
--- End diff --
Try query `select age,name,gamePointId,deviceInformationId from restructure_random_select where name is NULL or channelsId=4` , it still fails so the fix should not be order problem, I think the fix should be core package not in integration.
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2507
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5844/
---
[GitHub] carbondata pull request #2507: [CABONDATA-2741]Fix for fetching random query...
Posted by manishgupta88 <gi...@git.apache.org>.
Github user manishgupta88 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2507#discussion_r202576343
--- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/AlterTableValidationTestCase.scala ---
@@ -709,6 +709,22 @@ test("test alter command for boolean data type with correct default measure valu
Seq(Row(1))
)
}
+
+ test("Alter table selection in random order"){
+ sql("drop database if exists carbon cascade")
+ sql(s"create database carbon location '$dblocation'")
+ sql("use carbon")
+ sql("create table brinjal (imei string,channelsId string,gamePointId double,deviceInformationId double," +
--- End diff --
No need to create database in the test case. Use default database and also use a unique tableName...
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for filling measure column data ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7262/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5979/
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2507
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7224/
---
[GitHub] carbondata pull request #2507: [CABONDATA-2741]Fix for filling measure colum...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/carbondata/pull/2507
---
[GitHub] carbondata issue #2507: [CABONDATA-2741]Fix for fetching random query order ...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2507
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5848/
---