Skip to content

[CARBONDATA-319] Bad Records logging for column data type is not proper#241

Closed
sujith71955 wants to merge 1 commit intoapache:masterfrom
sujith71955:master_BadRecord_Issue
Closed

[CARBONDATA-319] Bad Records logging for column data type is not proper#241
sujith71955 wants to merge 1 commit intoapache:masterfrom
sujith71955:master_BadRecord_Issue

Conversation

@sujith71955
Copy link
Copy Markdown
Contributor

Problem:
Bad Records logging for column data type is not proper in case of long, carbon system while creating the table metadata uses BIGINT instead of LONG , internally it converts the bigint to long type and processes , while processing the data if any long type data is having issue it will be logged into the bad record with data type Long which is not proper since as per the metadata the datatype of column is BIGINT.
Solution :
Pass name for each data type ENUM constant in constructor, while logging the bad record get the column data type name value from the data type ENUM constant, for LONG the name will be BIGINT.

@sujith71955
Copy link
Copy Markdown
Contributor Author

please find the pr builder result.
http://136.243.101.176:8080/job/ApacheCarbonManualPRBuilder/443/


private void addEntryToBadRecords(Object[] r, int j, String columnName,
String dataType) {
if (DataType.LONG.toString().equals(dataType)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This check is not required.

@sujith71955 sujith71955 force-pushed the master_BadRecord_Issue branch 2 times, most recently from d71eaae to 425e3c0 Compare October 17, 2016 10:44
Bad Records logging for column data type is not proper in case of long, carbon system while creating the table metadata uses BIGINT instead of LONG , internally it converts the bigint to long type and processes , while processing the data if any long type data is having issue it will be logged into the bad record with data type Long which is not proper since as per the metadata the datatype of column is BIGINT.
@sujith71955
Copy link
Copy Markdown
Contributor Author

Comments handled, Please find the PR Build status.
http://136.243.101.176:8080/job/ApacheCarbonManualPRBuilder/450/

@gvramana
Copy link
Copy Markdown
Contributor

LGTM

@asfgit asfgit closed this in 8235f82 Oct 17, 2016
Beyyes pushed a commit to Beyyes/carbondata that referenced this pull request Jul 12, 2018
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.

2 participants