]
Ramesh Reddy commented on TEIID-3091:
-------------------------------------
1 = Header Row
2 = Data Row
It does, that is how you got results from above image. If you are using squirrel take the
LIMIT clause off and try to see the results.
Excel translator issue: FIRST_DATA_ROW_NUMBER option not working
-----------------------------------------------------------------
Key: TEIID-3091
URL:
https://issues.jboss.org/browse/TEIID-3091
Project: Teiid
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Misc. Connectors
Affects Versions: 8.7.1
Reporter: Van Halbert
Assignee: Ramesh Reddy
Attachments: excel_row_number_issue.tiff
The FIRST_DATA_ROW_NUMBER option not working, seeing the first row in the results, when
using the following dynamic VDB definition:
{code}
<model name="OtherHoldings">
<property name="importer.headerRowNumber" value="1"/>
<property name="importer.ExcelFileName"
value="otherholdings.xls"/>
<source name="excelconnector" translator-name="excel"
connection-jndi-name="java:/excel-file"/>
<metadata type="DDL"><![CDATA[
SET NAMESPACE 'http://www.teiid.org/translator/excel/2014' AS
teiid_excel;
CREATE FOREIGN TABLE Sheet1 (
ROW_ID integer OPTIONS (SEARCHABLE 'All_Except_Like',
"teiid_excel:CELL_NUMBER" 'ROW_ID'),
FirstName string OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '1'),
LastName string OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '2'),
Age string OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '3'),
CONSTRAINT PK0 PRIMARY KEY(ROW_ID)
) OPTIONS ("teiid_excel:FILE" 'otherholdings.xls',
"teiid_excel:FIRST_DATA_ROW_NUMBER" '2');
]]> </metadata>
</model>
{code}