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-1669] Clean up code in CarbonDataRDDFactory #1467
Conversation
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/811/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/1444/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/818/ |
retest this please |
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/821/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/1450/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/1451/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/1454/ |
5c15d10
to
eb3365b
Compare
eb3365b
to
21f3172
Compare
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/1472/ |
retest this please |
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/840/ |
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.
I think better to keep previous code style.
@@ -79,16 +82,45 @@ object CarbonStore { | |||
dbName: String, | |||
tableName: String, | |||
storePath: String, | |||
carbonTable: CarbonTable, forceTableClean: Boolean): Unit = { | |||
carbonTable: CarbonTable, forceTableClean: Boolean |
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.
one parameter one row
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.
fixed
} | ||
Seq.empty | ||
try { |
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 separate it to two try-catch block
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.
fixed
@@ -79,16 +82,45 @@ object CarbonStore { | |||
dbName: String, | |||
tableName: String, | |||
storePath: String, | |||
carbonTable: CarbonTable, forceTableClean: Boolean): Unit = { | |||
carbonTable: CarbonTable, forceTableClean: Boolean | |||
): Unit = { |
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 to last row
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.
fixed
carbonLoadModel | ||
.setSegmentUpdateStatusManager(alterTableModel.segmentUpdateStatusManager.get) | ||
|
||
carbonLoadModel |
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.
I prefer to :
carbonLoadModel.setLoadMetadataDetails(
alterTableModel.segmentUpdateStatusManager.get.getLoadMetadataDetails.toList.asJava)
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.
fixed
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/1473/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/842/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/1475/ |
@@ -49,105 +44,6 @@ object DataManagementFunc { | |||
|
|||
private val LOGGER = LogServiceFactory.getLogService(this.getClass.getCanonicalName) | |||
|
|||
def deleteLoadByDate( |
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.
Just confirm : this method(deleteLoadByDate) is for spark 1.6?
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 one use this function
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/846/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/1479/ |
LGTM |
Inside CarbonDataRDDFactory.loadCarbonData, there are many function defined inside function, makes the loading logic very hard to read
This PR improves its readability
Any interfaces changed?
No
Any backward compatibility impacted?
No
Document update required?
No
Testing done
No new testcase is required
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
NA