Skip to content

Commit

Permalink
[bugfix][file-execl] Fix the Issue of Abnormal Data Reading from Exce…
Browse files Browse the repository at this point in the history
…l Files (apache#5932)
  • Loading branch information
ic4y authored and chaorongzhi committed Aug 21, 2024
1 parent 95a9966 commit 243812a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public void read(String path, String tableId, Collector<SeaTunnelRow> output) {
: workbook.getSheetAt(0);
cellCount = seaTunnelRowType.getTotalFields();
cellCount = partitionsMap.isEmpty() ? cellCount : cellCount + partitionsMap.size();
SeaTunnelRow seaTunnelRow = new SeaTunnelRow(cellCount);
SeaTunnelDataType<?>[] fieldTypes = seaTunnelRowType.getFieldTypes();
int rowCount = sheet.getPhysicalNumberOfRows();
if (skipHeaderNumber > Integer.MAX_VALUE
Expand All @@ -111,6 +110,7 @@ public void read(String path, String tableId, Collector<SeaTunnelRow> output) {
? IntStream.range(0, cellCount).toArray()
: indexes;
int z = 0;
SeaTunnelRow seaTunnelRow = new SeaTunnelRow(cellCount);
for (int j : cellIndexes) {
Cell cell = rowData.getCell(j);
seaTunnelRow.setField(
Expand Down

0 comments on commit 243812a

Please sign in to comment.