Open
Description
Issue:
When I attempt to see if a table exists (inspection.has_table(table_name='x', schema='y'), I get an error saying that the catalog name
must be surrounded by back-quote.
Recreation Steps:
- Build a sqlalchemy connection to databricks
- Put sqlalchemy engine into a variable
- Put inspection (sqlachemy.inspect) into a variable.
The engine will be an parameter for inspect (e.g. inspect = inspect(engine))
- Attempt to use has table
inspect.has_table(table_name='y', schema='x')
Expected: You will get no error message
Actual: You get an error message:
[INVALID_IDENTIFIER] The identifier intelli-intelli-curvgh is invalid. Please, consider quoting it with back-quotes as intelli-intelli-curvgh
.(line 1, pos 22)
== SQL ==
DESCRIBE TABLE intelli-intelli-curvgh.dm2_mortality_in.diagnosis_pre
Environment Info:
OS Windows
Python = 3.10
Python Libraries:
databricks-sql-connector==2.9.3
sqlalchemy==1.4.49