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

[Backport] Fix microbatch dbt list --output JSON (#11187) #11203

Open
wants to merge 1 commit into
base: 1.9.latest
Choose a base branch
from

Conversation

MichelleArk
Copy link
Contributor

Manual backport of #11187

Currently, running this command on a project containing a microbatch
model results in an error, as microbatch models require a datetime
value in their config which cannot be serialized by the default JSON
serializer.

There already exists a custom JSON serializer within the dbt-core
project that converts datetime to ISO string format. This change uses
the above serializer to resolve the error.
@MichelleArk MichelleArk requested a review from a team as a code owner January 9, 2025 16:07
@MichelleArk MichelleArk changed the title Fix microbatch dbt list --output JSON (#11187) [Backport] Fix microbatch dbt list --output JSON (#11187) Jan 9, 2025
@cla-bot cla-bot bot added the cla:yes label Jan 9, 2025
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.13%. Comparing base (42a58bb) to head (928a815).

Additional details and impacted files
@@             Coverage Diff             @@
##           1.9.latest   #11203   +/-   ##
===========================================
  Coverage       89.13%   89.13%           
===========================================
  Files             183      183           
  Lines           23895    23896    +1     
===========================================
+ Hits            21298    21300    +2     
+ Misses           2597     2596    -1     
Flag Coverage Δ
integration 86.55% <100.00%> (+0.01%) ⬆️
unit 62.11% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Unit Tests 62.11% <100.00%> (+<0.01%) ⬆️
Integration Tests 86.55% <100.00%> (+0.01%) ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants