Closed ghost closed 1 year ago
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.
Describe the bug
When the macro is run from the on-run-start hook (like described here : https://github.com/dbt-labs/dbt-external-tables/issues/34) , it causes in an error on dbt-databricks. When I run 'dbt run-operation stage_external_sources' there are no errors.
In line 22 of plugins\spark\get_external_build_plan.sql a module reference is missing.
Steps to reproduce
install dbt-code and dbt-databricks. Add and external source to the project. Add this to project yml
on-run-start:
Expected results
The stage_external_sources would run during 'dbt run' without any problems.
Actual results
The following error is thrown:
Database error while running on-run-start Encountered an error: Compilation Error in operation fnp-on-run-start-0 (.\dbt_project.yml) 'spark__recover_partitions' is undefined
Screenshots and log output
n.a.
System information
packages:
version: 0.3.0
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using: Windows 11
The output of
python --version
: Python 3.9.4Additional context
n.a.