]
RH Bugzilla Integration commented on TEIIDDES-2683:
---------------------------------------------------
Barry LaFond <blafond(a)redhat.com> changed the Status of [bug
Importing Excel file using Teiid Connection does not import extension
properties
--------------------------------------------------------------------------------
Key: TEIIDDES-2683
URL:
https://issues.jboss.org/browse/TEIIDDES-2683
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 9.0.4
Reporter: Andrej Šmigala
When importing an excel file using Teiid Connection, the extension properties are
silently discarded. This results in invalid model, which, when deployed and queried,
causes the following error in the server log:
bq. Connector worker process failed for atomic-request=AVU37BnZoOUS.0.0.0:
org.teiid.translator.TranslatorException: TEIID23007 OPTIONS property CELL_NUMBER is
required and it not defined on column ROW_ID
The DDL obtained from the server is
{code:sql}
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'),
StringNum string OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '1'),
CharValue string OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '2'),
DoubleNum double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '3'),
BigIntegerValue double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '4'),
ShortValue double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '5'),
FloatNum double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '6'),
ObjectValue string OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '7'),
IntNum double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '8'),
BigDecimalValue double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '9'),
LongNum double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '10'),
BooleanValue boolean OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '11'),
TimestampValue double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '12'),
ByteNum double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '13'),
IntKey double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '14'),
StringKey string OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '15'),
TimeValue double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '16'),
DateValue double OPTIONS (SEARCHABLE 'Unsearchable',
"teiid_excel:CELL_NUMBER" '17'),
CONSTRAINT PK0 PRIMARY KEY(ROW_ID)
) OPTIONS ("teiid_excel:FILE" 'smalla.xlsx',
"teiid_excel:FIRST_DATA_ROW_NUMBER" '2');
{code}
When trying to import the same DDL using the DDL import wizard, a warning dialog is shown
stating that the extension properties could not be processed and the Model Extension
Definition should be registered