SociopathicPixel commented on a change in pull request #230: dev/add datatypes
to excel columns
URL: https://github.com/apache/metamodel/pull/230#discussion_r328561508
##########
File path:
excel/src/main/java/org/apache/metamodel/excel/DefaultSpreadsheetReaderDelegate.java
##########
@@ -128,6 +126,12 @@ private MutableTable createTable(final Workbook wb, final
Sheet sheet) {
row = rowIterator.next();
}
+ // Get first 1000 rows for the eager-read
+ final Iterator<Row> data = ExcelUtils.getRowIterator(sheet,
_configuration, false);
+ int rowLength = row.getLastCellNum();
+ ColumnType[] columnTypes = new ColumnType[rowLength];
+
+ setColumnType(data, rowLength, columnTypes);
Review comment:
done with next commit
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services