Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DdlNodeVisitor Processing Of Teiid Temp Tables Needs To Be Improved #349

Open
elvisisking opened this issue Feb 11, 2016 · 4 comments
Open

Comments

@elvisisking
Copy link
Contributor

ModeShape 4.5 now parses Teiid temp table DDL. New node types/mixins were created as there are different kinds of "create temp table" statements. The following, at a minimum, should be done:

  • update DdlNodeVisitor to handle all versions of Teiid temp table DDL,
  • remove the @Ignore from TestDdlNodeVisitor.testGlobalTemporaryTable() and make sure this test passes, and
  • add additional tests to TestDdlNodeVisitor to ensure complete testing of Teiid temp table DDL.

See #347 and #348 for related information.

@elfilip elfilip self-assigned this Feb 23, 2016
@elfilip
Copy link
Collaborator

elfilip commented Mar 4, 2016

Local temporary tables can't be defined in the VDB's ddl because Teiid doesn't support local temporary tables in the schema level metadata. Import of such ddl should fail.

@elvisisking
Copy link
Contributor Author

The Teiid DDL sequencer recently was improved to handle all variations of Teiid DDL create temporary table statements so I am a bit confused. @blafond do you agree with @elfilip's statement that the Komodo importer should fail? If so, then it follows that the DdlNodeVisitor would not need to handle the exporting of those types of temporary tables.

@blafond
Copy link
Contributor

blafond commented Mar 14, 2016

I spent some time trying to understand temp tables recently by reading the Teiid docs. The Teiid BNF definition covers BOTH DDL statements targeted at deployable VDB metadata AND for Statements and SQL that can be executed against the runtime. That's where I think Temp tables will be/are used. So "modelling" Temp Table statements for VDB's is probably not applicable. I'd recommend getting shawkins take on this to confirm.

@blafond
Copy link
Contributor

blafond commented Mar 16, 2016

Local Temp Table DDL statements are not support as "model" metadata DDL statements. Whatever we need to do to prevent this... we need to do. From their docs (https://docs.jboss.org/author/display/TEIID/Temp+Tables) it appears that a DDL statement like: CREATE LOCAL TEMPORARY TABLE TEMP (a integer, b integer, c integer); could be embedded in a Virtual Procedure as part of the SQL statement. So at some level, MS and Komodo will need to support that statement, but just not at the "model child" level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants