Closed case-k-git closed 5 months ago
Core issue is cert related, not idempotency. We should debug why the certificate is invalid, not removing an API call.
Recommend filling a ticket with Databricks saying the error you're getting when trying to call this API: https://docs.databricks.com/api/workspace/pipelines/get
The cert issue is because your python installation isn't connected to your certificate store. If you're on osx, running commands like this should help:
open /Applications/Python\ 3.11/Install\ Certificates.command
pip install --upgrade certifi
@benc-db @kdazzle Thank you for your review. I see so this my environment issue. I try the command to upgrade certifi but still have this issue.Let me check that. Thank you.
This is solve the issue in my case thank you!
pip install pip-system-certs
Resolves #
https://github.com/databricks/dbt-databricks/issues/710
Description
As I post the issue , Running the following model more than twice causes dbt run to fail. The refresh process is supposed to be called, but the process fails before that.
SQL
ERROR LOG
I also confirm existing idempotency integration test code is failing.
tests/functional/adapter/streaming_tables/test_st_basic.py::TestStreamingTablesBasic::test_streaming_table_create_idempotent
https://github.com/databricks/dbt-databricks/blob/main/tests/functional/adapter/streaming_tables/test_st_basic.py#L131ERROR LOG
Investigation
Step for Investigation.
the task has been failed when called get_streaming_table_configuration_changes method. So task is faield before executing refresh_streaming_table method. Checked inside get_streaming_table_configuration_changes method, it failed when calling adapter.get_relation_config. Inside get_relation_cofnig, finally find the method get_from_relation which causing this issue.
Checklist
Confirm all streaming_tables test has been passed
CHANGELOG.md
and added information about my change to the "dbt-databricks next" section.