You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a database is specified that doesnt exist then the target returns this error when trying to create the empty table:
Cannot perform CREATE TABLE. This session does not have a current database. Call 'USE DATABASE', or use a qualified name.
Its not clear that the reason for this is because the database wasnt found. If the database is found then its uses it as the default database. We should put a check in place to raise a clear exception when the configured database isnt found. It doesnt look like we're conforming database names right now but its also possible at someone will implement that and some users will be confused when their pre-conformed database name exists but post conformed it does not. So having a clear error message with the database name is important.
The text was updated successfully, but these errors were encountered:
Closes#78
I wanted to write a test to assert the exception gets raised and had a
hard time fitting it into the test framework because by the time I
receive the target in the test methods its already instantiated with the
sample config with the valid database so I cant override it in an
individual test. So I'd need to create a suite and call
get_target_test_class just to run a single test, instead I just ran the
components as a standalone test.
---------
Co-authored-by: Edgar R. M. <[email protected]>
If a database is specified that doesnt exist then the target returns this error when trying to create the empty table:
Cannot perform CREATE TABLE. This session does not have a current database. Call 'USE DATABASE', or use a qualified name.
Its not clear that the reason for this is because the database wasnt found. If the database is found then its uses it as the default database. We should put a check in place to raise a clear exception when the configured database isnt found. It doesnt look like we're conforming database names right now but its also possible at someone will implement that and some users will be confused when their pre-conformed database name exists but post conformed it does not. So having a clear error message with the database name is important.
The text was updated successfully, but these errors were encountered: