Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

jackylk
Copy link
Contributor

@jackylk jackylk commented Dec 4, 2019

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.

@CarbonDataQA1
Copy link

Build Failed with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1092/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1083/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1102/

@lamberken
Copy link
Member

+1 👍 refactor carbondata project.

@CarbonDataQA1
Copy link

Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1086/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1105/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1095/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1095/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1114/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1104/

@CarbonDataQA1
Copy link

Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1092/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1112/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1104/

@CarbonDataQA1
Copy link

Build Failed with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1123/

@CarbonDataQA1
Copy link

Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1111/

@CarbonDataQA1
Copy link

Build Success with Spark 2.3.2, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1130/

@CarbonDataQA1
Copy link

Build Success with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1120/

@zzcclp
Copy link
Contributor

zzcclp commented Dec 9, 2019

LGTM, thanks for your contribution.

@zzcclp
Copy link
Contributor

zzcclp commented Dec 9, 2019

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')
Copy link
Member

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

Copy link
Contributor

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 @@

Copy link
Member

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 ?

Copy link
Contributor

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(
"""
Copy link
Member

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

@CarbonDataQA1
Copy link

Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1133/

@CarbonDataQA1
Copy link

Build Success with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1142/

@CarbonDataQA1
Copy link

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")) {
Copy link
Contributor

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")
Copy link
Contributor

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'= '"')""")
Copy link
Contributor

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)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename 'partitiondefaultbatchsort' to 'partitiondefaultlocalsort'

@CarbonDataQA1
Copy link

Build Success with Spark 2.1.0, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.1/1160/

@CarbonDataQA1
Copy link

Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/1178/

@CarbonDataQA1
Copy link

Build Success with Spark 2.2.1, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.2/1169/

@zzcclp
Copy link
Contributor

zzcclp commented Dec 12, 2019

LGTM

@asfgit asfgit closed this in 2c0a1e0 Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants