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

[Bug] Microbatch does not work with date field types #1412

Open
2 tasks done
Tracked by #10624
jschintz-nytimes opened this issue Nov 25, 2024 · 0 comments
Open
2 tasks done
Tracked by #10624

[Bug] Microbatch does not work with date field types #1412

jschintz-nytimes opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jschintz-nytimes
Copy link

Is this a new bug in dbt-bigquery?

  • I believe this is a new bug in dbt-bigquery
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

When configuring microbatch incremental strategy, if the upstream event_time field is a date - an error is returned:
Could not cast literal "2024-11-11 00:00:00+00:00" to type DATE

Expected Behavior

Should the event_time field should be cast to a datetime datatype to handle issues where

Steps To Reproduce

  1. Make an upstream microbatch that outputs a date(event_time) partitioned column.
  2. Query in a downstream model that is also microbatch.

Relevant log output

No response

Environment

- OS:
- Python:
- dbt-core:
- dbt-bigquery:

Additional Context

No response

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

2 participants