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

Added the case for reading blank cells as empty strings #1736

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class ExcelInputReader extends BatchSource<LongWritable, Object, Structur
private static final String RECORD = "record";
private static final String EXIT_ON_ERROR = "Exit on error";
private static final String WRITE_ERROR_DATASET = "Write to error dataset";
private static final String NULL = "NULL";
private static final String NULL = "";
Nikitapaliwal123 marked this conversation as resolved.
Show resolved Hide resolved
private static final String END = "END";
private static final String SHEET_NO = "Sheet Number";

Expand Down Expand Up @@ -204,7 +204,6 @@ public void transform(KeyValue<LongWritable, Object> input, Emitter<StructuredRe
if (columnValue.length > 1) {
String name = columnValue[0];
String value = columnValue[1];

if (columnMapping.containsKey(name)) {
excelColumnValueMap.put(columnMapping.get(name), value);
} else {
Expand Down
Binary file modified core-plugins/src/test/resources/civil_test_data_two.xlsx
Binary file not shown.