sqlalchemy-teradata icon indicating copy to clipboard operation
sqlalchemy-teradata copied to clipboard

has_table does not check the existence of volatile tables

Open Similacrest opened this issue 5 years ago • 1 comments

engine.execute('CREATE VOLATILE TABLE test(id BIGINT) UNIQUE PRIMARY INDEX (id) ON COMMIT PRESERVE ROWS;')

engine.has_table('test')

False

Maybe check

HELP VOLATILE TABLE

too?

Similacrest avatar Jul 19 '19 15:07 Similacrest

@ShareDVI has_table currently looks at TableKinds in teradatasqlalchemy: O - non-partitioned tables T - partitioned tables V - views

The Teradata SQLEngine doesn't keep volatile tables in the data dictionary since it is non-persistent. Perhaps we can add a has_volatile_table to the dialect?

Also, be aware that teradatasqlalchemy will be succeeding sqlalchemy-teradata as the primary dialect. Any changes will be pushed to teradatasqlalchemy.

sandan avatar Oct 14 '19 16:10 sandan