Skip to content
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

Agate error running dbt docs generate #158

Closed
friendofasquid opened this issue Apr 12, 2021 · 0 comments · Fixed by #159
Closed

Agate error running dbt docs generate #158

friendofasquid opened this issue Apr 12, 2021 · 0 comments · Fixed by #159
Labels
bug Something isn't working

Comments

@friendofasquid
Copy link
Contributor

Describe the bug

When running dbt docs generate, we get an error:

Tables contain columns with the same names (table_owner), but different types (<agate.data_types.number.Number object at 0x7f6112b244c0> vs <agate.data_types.text.Text object at 0x7f61128e16a0>)

Steps To Reproduce

We narrowed this down to our sources, so configure at least two source in dbt. One should have its table owner be any string (e.g. "hadoop") and the other should be an Integer (1234). Doing a CTAS with AWS Athena will, by default, give you a table with an integer for the table owner, e.g. CREATE TABLE foo AS SELECT 1 AS col1 SparkSQL CTAS will put a string in that metadata.

With those tables configured as sources, run dbt docs generate.

Expected behavior

dbt docs generate should generate the catalog.json without incident.

Screenshots and log output

If applicable, add screenshots or log output to help explain your problem.

The output of dbt --version:

installed version: 0.19.1
   latest version: 0.19.1

Up to date!

Plugins:
  - spark: 0.19.1

The operating system you're using:

Docker (python3.8-slim)

The output of python --version:

Python 3.8.9

Additional context

Add any other context about the problem here.

@friendofasquid friendofasquid added bug Something isn't working triage labels Apr 12, 2021
@jtcohen6 jtcohen6 removed the triage label Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants