Details
-
Bug
-
Resolution: Done
-
Minor
-
3.8.0.Final, 3.8.1.Final, 4.1.0.Final
Description
The CreateTableParser component of the DdlSequencer assigns the wrong scheme element type when parsing "CREATE VIEW ...".
According to both Teiid's BNF and Teiid's parser, the token VIRTUAL is optional in "CREATE VIRTUAL VIEW" and has no differing affect to using "CREATE VIEW".
The parser logic demonstrates that the existence of the token "VIEW" is enough to make the Table virtual.
Thus, the CreateTableParser logic for both CREATE VIEW and CREATE VIRTUAL VIEW should be collapsed together.