New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CARBONDATA-3607] Remove batch_sort feature #3499
Conversation
Build Failed with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1092/ |
Build Failed with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1083/ |
Build Failed with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1102/ |
+1 👍 refactor carbondata project. |
Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1086/ |
Build Failed with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1105/ |
Build Failed with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1095/ |
c7d0ef5
to
7d764a8
Compare
Build Failed with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1095/ |
Build Failed with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1114/ |
Build Failed with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1104/ |
Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1092/ |
Build Failed with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1112/ |
Build Failed with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1104/ |
Build Failed with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1123/ |
Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1111/ |
Build Success with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1130/ |
Build Success with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1120/ |
LGTM, thanks for your contribution. |
After merged #3498 , there are some conflicts, please fix. |
@@ -68,10 +68,10 @@ class TestCreateTableWithSortScope extends QueryTest with BeforeAndAfterAll { | |||
| stringField STRING | |||
| ) | |||
| STORED BY 'carbondata' | |||
| TBLPROPERTIES('SORT_COLUMNS'='stringField', 'SORT_SCOPE'='BATCH_SORT') | |||
| TBLPROPERTIES('SORT_COLUMNS'='stringField', 'SORT_SCOPE'='local_sort') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already this suite has test case local sort, can remove this batch sort test case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove test case about table 'tableWithBatchSort':
line 32: sql("DROP TABLE IF EXISTS tableWithBatchSort")
and the code from line 64.
@@ -1,292 +0,0 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SDVSuites.scala is still pointing to this file. Need to modify that file also ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, it also needs to remove 'PartitionTestCase'.
@@ -939,7 +939,7 @@ class StandardPartitionGlobalSortTestCase extends QueryTest with BeforeAndAfterA | |||
assert(exMessage.getMessage.contains("day is not a valid partition column in table default.partitionnocolumn")) | |||
} | |||
|
|||
ignore("data loading with default partition in static partition table with batchsort") { | |||
ignore("data loading with default partition in static partition table with local_sort") { | |||
sql("DROP TABLE IF EXISTS partitiondefaultbatchsort") | |||
sql( | |||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Table name is still a batch sort, better to rename for readability.
looked for "batchsort" in the code. only this file and TestCreateTableWithSortScope has this problem
5a2a6c6
to
82c371a
Compare
Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1133/ |
Build Success with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1142/ |
Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1152/ |
@@ -447,7 +447,7 @@ class TestSortColumns extends QueryTest with BeforeAndAfterAll { | |||
def setLoadingProperties(offheap: String, unsafe: String, useBatch: String): Unit = { | |||
CarbonProperties.getInstance().addProperty(CarbonCommonConstants.ENABLE_OFFHEAP_SORT, offheap) | |||
if (useBatch.equalsIgnoreCase("true")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use unsafe.equalsIgnoreCase("true")
instead of useBatch.equalsIgnoreCase("true")
@@ -939,7 +939,7 @@ class StandardPartitionGlobalSortTestCase extends QueryTest with BeforeAndAfterA | |||
assert(exMessage.getMessage.contains("day is not a valid partition column in table default.partitionnocolumn")) | |||
} | |||
|
|||
ignore("data loading with default partition in static partition table with batchsort") { | |||
ignore("data loading with default partition in static partition table with local_sort") { | |||
sql("DROP TABLE IF EXISTS partitiondefaultbatchsort") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename 'partitiondefaultbatchsort' to 'partitiondefaultlocalsort'
@@ -948,7 +948,7 @@ class StandardPartitionGlobalSortTestCase extends QueryTest with BeforeAndAfterA | |||
| projectcode int, projectenddate Timestamp,attendance int, | |||
| utilization int, doj Timestamp, empname String) | |||
| PARTITIONED BY (projectjoindate Timestamp, salary decimal) | |||
| STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('SORT_SCOPE'='BATCH_SORT') | |||
| STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('SORT_SCOPE'='local_sort') | |||
""".stripMargin) | |||
sql(s"""LOAD DATA local inpath '$resourcesPath/data.csv' INTO TABLE partitiondefaultbatchsort OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '"')""") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename 'partitiondefaultbatchsort' to 'partitiondefaultlocalsort'
@@ -948,7 +948,7 @@ class StandardPartitionGlobalSortTestCase extends QueryTest with BeforeAndAfterA | |||
| projectcode int, projectenddate Timestamp,attendance int, | |||
| utilization int, doj Timestamp, empname String) | |||
| PARTITIONED BY (projectjoindate Timestamp, salary decimal) | |||
| STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('SORT_SCOPE'='BATCH_SORT') | |||
| STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('SORT_SCOPE'='local_sort') | |||
""".stripMargin) | |||
sql(s"""LOAD DATA local inpath '$resourcesPath/data.csv' INTO TABLE partitiondefaultbatchsort OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '"')""") | |||
checkAnswer(sql("select count(*) from partitiondefaultbatchsort"), Seq(Row(10))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename 'partitiondefaultbatchsort' to 'partitiondefaultlocalsort'
82c371a
to
2e5f9e5
Compare
Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1160/ |
Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1178/ |
Build Success with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1169/ |
LGTM |
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
Any interfaces changed?
Any backward compatibility impacted?
Document update required?
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.
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.