-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dbt docs generate fails with "Column 'table_schema' is ambiguous" #33
Comments
I found the problem! In this file: AppData\Local\Programs\Python\Python38\Lib\site-packages\dbt\include\athena\macros\catalog.sql Change this line:
to:
I would submit a PR but there are some legal issues with my employer that will take a bit to work out. It was just easier to show you what I changed. Thanks! -Jeff |
@BeantownData Thanks for the workaround! After changing the line I got a different error:
|
@smomni Sorry, I have never seen that error before and I have no idea. |
I'm getting the same error as well.
|
When using the out of the box project from dbt init and dbt-athena (git+https://github.com/daha/[email protected] )
dbt run is successful, but dbt docs generate fails. Copy and paste from Windows 10 / powershell:
PS C:\athena-test> dbt run
Running with dbt=0.17.0
Found 2 models, 4 tests, 0 snapshots, 0 analyses, 134 macros, 0 operations, 0 seed files, 0 sources
15:42:52 | Concurrency: 8 threads (target='dev')
15:42:52 |
15:42:52 | 1 of 2 START table model dev.my_first_dbt_model...................... [RUN]
15:42:58 | 1 of 2 OK created table model dev.my_first_dbt_model................. [OK in 6.29s]
15:42:58 | 2 of 2 START view model dev.my_second_dbt_model...................... [RUN]
15:43:03 | 2 of 2 OK created view model dev.my_second_dbt_model................. [OK in 4.48s]
15:43:03 |
15:43:03 | Finished running 1 table model, 1 view model in 16.43s.
Completed successfully
Done. PASS=2 WARN=0 ERROR=0 SKIP=0 TOTAL=2
PS C:\athena-test> dbt docs generate
Running with dbt=0.17.0
Found 2 models, 4 tests, 0 snapshots, 0 analyses, 134 macros, 0 operations, 0 seed files, 0 sources
15:43:21 | Concurrency: 8 threads (target='dev')
15:43:21 |
15:43:21 | Done.
15:43:21 | Building catalog
Encountered an error while generating catalog: Runtime Error
Runtime Error
SYNTAX_ERROR: line 42:24: Column 'table_schema' is ambiguous
dbt encountered 1 failure while writing the catalog
15:43:22 | Catalog written to C:\athena-test\target\catalog.json
The text was updated successfully, but these errors were encountered: