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-1882] select with group by and insertoverwrite to another carbon table #1641
Conversation
Can one of the admins verify this patch? |
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1877/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2223/ |
@@ -486,6 +486,21 @@ object CarbonDataRDDFactory { | |||
// if segment is empty then fail the data load |
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.
Correct comment
loadDetails.setSegmentStatus(SegmentStatus.MARKED_FOR_DELETE) | ||
} | ||
} | ||
val carbonTablePath = CarbonStorePath |
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.
- loadTablePreStatusUpdateEvent is not fired,
- how about old dictionary to be overwritten?
- updatestatus file also needs to be handled accordingly.
Suggest to flow the original flow handling empty segment 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.
loadTablePreStatusUpdateEvent is not fired, :- it will fire only when the data loading is done . in case of zero record data loading is not done
how about old dictionary to be overwritten :- in case of insert overwrite dictionary is appending
07c3f12
to
caff22d
Compare
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1926/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2256/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2257/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2258/ |
caff22d
to
65aae37
Compare
|
||
} | ||
|
||
test("insert overwrite in group by scenario with t1 no record and t2 some record") { |
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.
Move common code to a function
@@ -375,7 +375,15 @@ object CarbonDataRDDFactory { | |||
} | |||
} | |||
} else { | |||
loadStatus = SegmentStatus.LOAD_FAILURE | |||
if (dataFrame.isDefined && updateModel.isEmpty) { |
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.
Write comment explaining this
LOGGER.audit(s"Data load is failed for " + | ||
s"${ carbonLoadModel.getDatabaseName }.${ carbonLoadModel.getTableName }" + | ||
" as there is no data to load") | ||
LOGGER.warn("Cannot write load metadata file as data load failed") | ||
throw new Exception("No Data to load") | ||
|
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.
write comment 'as no records loaded in new segment, new segment should be deleted'
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1946/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2272/ |
65aae37
to
d750892
Compare
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1959/ |
d750892
to
87fb160
Compare
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2281/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1969/ |
87fb160
to
c42461b
Compare
|
||
test("insert overwrite in group by scenario with t1 no record and t2 some record") { | ||
queryExecution("overwriteTable1_noRecord.csv","overwriteTable2_someRecord.csv") | ||
sql ("insert overwrite table OverwriteTable_t2 select id,name,sum(salary) as TotalSalary,'98' as age from OverwriteTable_t1 group by id,name,salary") |
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.
only insert overwrite query is kept in all the testcases as we handled two different scenario 1) IN GROUP BY CASE
2) WITHOUT GROUP BY CASE if we refactor so one extra method need to be written where again same code will exists
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2289/ |
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1980/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2299/ |
3 load test cases are failing.. plz fix |
c42461b
to
ba1dddb
Compare
@@ -505,7 +516,11 @@ object CarbonDataRDDFactory { | |||
carbonLoadModel) | |||
operationContext.setProperty("isOverwrite", overwriteTable) | |||
OperationListenerBus.getInstance().fireEvent(loadTablePreStatusUpdateEvent, operationContext) | |||
val done = updateTableStatus(status, carbonLoadModel, loadStatus, overwriteTable) | |||
val done = updateTableStatus(status, |
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.
move status to next line
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2001/ |
2dbe03a
to
ab5e467
Compare
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2010/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2323/ |
Retest SDV please |
retest sdv please |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2347/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2348/ |
retest sdv please |
retest this please |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2349/ |
add to whitelist |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2353/ |
Build Success with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/811/ |
ab5e467
to
b974499
Compare
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2042/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2359/ |
Build Success with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/820/ |
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2049/ |
b974499
to
43664ec
Compare
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2051/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2362/ |
Build Failed with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/823/ |
LGTM |
Build Failed with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/826/ |
… carbon table This closes apache#1641
… carbon table This closes apache#1641
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?
- 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.
Yes
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.