Is there an existing issue for this?
Current Behavior
When the fully qualified path to a table needs to include a backtick due to the inclusion of a character such as -, the table is unable to be loaded for the list of checks.
This happens because the workspace client checks for the existence of the table here. The Databricks SDK for tables.exists enforces NOT using backticks. However, if you omit the backticks such that the workspace client can confirm the existence of the table, then when the table is loaded into a spark df here, the table cannot be loaded because spark DOES enforce the usage of backticks.
Expected Behavior
Backticks can be included in the location argument of calls to the load_checks function when using a TableChecksStorageConfig without throwing any errors.
Steps To Reproduce
- Create a table with the fully qualified name of
example-catalog.example-schema.example-table (notice the inclusion of the hyphens)
- Attempt to load checks from this table:
checks = dq_engine.load_checks(config=TableChecksStorageConfig(location="`example-catalog`.`example-schema`.`example-table`"))
- Confirm that DQX throws an exception about the table not existing in the workspace (even though it was created in step 1 above).
Cloud
Azure
Operating System
Windows
Relevant log output
When including the backticks:
NotFound: Checks table `example-catalog`.`example-schema`.`example-table` does not exist in the workspace
When excluding the backticks:
ParseException: [INVALID_IDENTIFIER] ...
Is there an existing issue for this?
Current Behavior
When the fully qualified path to a table needs to include a backtick due to the inclusion of a character such as
-, the table is unable to be loaded for the list of checks.This happens because the workspace client checks for the existence of the table here. The Databricks SDK for
tables.existsenforces NOT using backticks. However, if you omit the backticks such that the workspace client can confirm the existence of the table, then when the table is loaded into a spark df here, the table cannot be loaded because spark DOES enforce the usage of backticks.Expected Behavior
Backticks can be included in the
locationargument of calls to theload_checksfunction when using aTableChecksStorageConfigwithout throwing any errors.Steps To Reproduce
example-catalog.example-schema.example-table(notice the inclusion of the hyphens)Cloud
Azure
Operating System
Windows
Relevant log output