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

Object of type 'datetime' is not JSON serializable Failed. #2373

Closed
1 of 5 tasks
fazulk opened this issue Apr 29, 2020 · 2 comments
Closed
1 of 5 tasks

Object of type 'datetime' is not JSON serializable Failed. #2373

fazulk opened this issue Apr 29, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@fazulk
Copy link

fazulk commented Apr 29, 2020

Describe the bug

Running a basic query that retreives a row(s) from big query.

These rows contain nested objects which contain a datefield:

select * from db

example row:

"id": "dog", 
"my_object": {
      "domain": "geocities.com",    
      "update_date": "2017-06-02 14:00:00 UTC",     
}

Steps To Reproduce

run select * from db on a table where the row contains a object which contains a date field.

Expected behavior

the row gets retrieved normally.

Screenshots and log output

image

System information

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

DBT Web interface

The operating system you're using:
Win 10

The output of python --version:

Additional context

This same query executes correctly inside Big Query

@fazulk fazulk added bug Something isn't working triage labels Apr 29, 2020
@beckjake
Copy link
Contributor

Thanks for the bug report @fazulk! I'm pretty sure this is a dupe of #2336 (different type, but otherwise the same problem) and is fixed by #2348 - I can't reproduce it locally with the current dev/octavius-catto.

That means this should be resolved in dbt 0.17.0.

@fazulk
Copy link
Author

fazulk commented Apr 29, 2020

perfect, thanks!

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

No branches or pull requests

3 participants