-
Notifications
You must be signed in to change notification settings - Fork 703
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-1250] change default partition id & Add TaskId group in partitionInfo #1119
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/228/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2809/ |
add to whitelist |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2818/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/238/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2838/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/258/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/259/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2839/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2841/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/261/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2846/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/265/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2847/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/266/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2848/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/267/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2849/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/268/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2850/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/269/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/270/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2851/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/271/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2853/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/273/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2854/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/274/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/275/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2855/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2856/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2857/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/2858/ |
Build Failed with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/276/ |
can you rebase and combine all commits to a commit |
@@ -219,6 +219,10 @@ | |||
externalPartitionInfo.setList_info(wrapperPartitionInfo.getListInfo()); | |||
externalPartitionInfo.setRange_info(wrapperPartitionInfo.getRangeInfo()); | |||
externalPartitionInfo.setNum_partitions(wrapperPartitionInfo.getNumPartitions()); | |||
externalPartitionInfo.setNumOfPartitions(wrapperPartitionInfo.getNumberOfPartitions()); |
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.
what is different between Num_partitions with NumOfPartitions?
@@ -219,6 +219,10 @@ | |||
externalPartitionInfo.setList_info(wrapperPartitionInfo.getListInfo()); | |||
externalPartitionInfo.setRange_info(wrapperPartitionInfo.getRangeInfo()); | |||
externalPartitionInfo.setNum_partitions(wrapperPartitionInfo.getNumPartitions()); | |||
externalPartitionInfo.setNumOfPartitions(wrapperPartitionInfo.getNumberOfPartitions()); | |||
externalPartitionInfo.setMax_partition(wrapperPartitionInfo.getMAX_PARTITION()); | |||
externalPartitionInfo.setTaskId_In_PartitionOrder(wrapperPartitionInfo |
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.
why need to save taskId?
} else { | ||
// LessThan(<), LessThanEqualTo(<=) | ||
partitionMap.set(0, partitioner.numPartitions()); | ||
partitionMap.set(1, partitioner.numPartitions()); |
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.
no need to change it.
It means all partitions were matched.
} | ||
} else { | ||
// filter value is not in default partition | ||
if (result == 0) { | ||
// if result is 0, the filter value is a bound value of range partition. | ||
if (isGreaterThan) { | ||
// GreaterThan(>), GreaterThanEqualTo(>=) | ||
partitionMap.set(partitionIndex + 1, partitioner.numPartitions()); | ||
partitionMap.set(partitionIndex + 1, partitioner.numPartitions() - 1); |
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.
partitionMap.set(partitionIndex + 2, partitioner.numPartitions());
} | ||
} | ||
} else { | ||
// the filter value is not a bound value of range partition | ||
if (isGreaterThan) { | ||
// GreaterThan(>), GreaterThanEqualTo(>=) | ||
partitionMap.set(partitionIndex, partitioner.numPartitions()); | ||
partitionMap.set(partitionIndex + 1, partitioner.numPartitions() - 1); |
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.
partitionMap.set(partitionIndex + 1, partitioner.numPartitions() );
This PR change the default partition id from Max to 0 and add taskId management related code to support later add(split)/drop(merge) partition operations.