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

Doesn't work with spark 3.4.0 #234

Closed
sid-deshmukh opened this issue Sep 4, 2023 · 3 comments
Closed

Doesn't work with spark 3.4.0 #234

sid-deshmukh opened this issue Sep 4, 2023 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@sid-deshmukh
Copy link

sid-deshmukh commented Sep 4, 2023

Describe the bug

The external tables creation is failing with spark 3.4.0 where as it works with pervious versions

Steps to reproduce

version: 2

sources:

  • name: Schema_name
    tables:
    • name: external_table
      description: ""
      external:
      location: s3 path
      using: json

Expected results

External table created in Glue catelog when run from EMR

Actual results

Its fails with below Error:
Encountered an error while running operation: Compilation Error
'NoneType' object is not iterable

in macro stage_external_sources (macros/common/stage_external_sources.sql)
called by

Which database are you using dbt with?

  • Spark
@sid-deshmukh sid-deshmukh added bug Something isn't working triage labels Sep 4, 2023
@dataders
Copy link
Collaborator

dataders commented Sep 5, 2023

@sid-deshmukh can you please share what version of dbt-core dbt-spark and dbt-external-tables you are using? was there no change to these versions besides upgrading the version of Spark itself?

can you share the full error message as well as any relevant section of logs/dbt.log?

@dataders dataders added question Further information is requested and removed triage labels Sep 5, 2023
@sid-deshmukh
Copy link
Author

sid-deshmukh commented Sep 6, 2023

@dataders There was no dbt-core and dbt-spark version changes. But I have tried with both 1.5.0 and 1.6.0, I get the same error.
I have attached the logs for dbt.log
dbt.log

@dataders
Copy link
Collaborator

dataders commented Sep 6, 2023

closing in favor of dbt-labs/dbt-spark#885. @sid-deshmukh I would very much love to see if you can

  • get the same error you shared when running dbt run
  • reproduce this error in dbt-spark 1.4.0

@dataders dataders closed this as completed Sep 6, 2023
lmarcondes added a commit to lmarcondes/PyHive that referenced this issue Nov 2, 2023
- was causing issues with dbt-external-tables integration
  (dbt-labs/dbt-external-tables#234)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants