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

Always emit warning when microbatch models lack any filtered input node #11196

Merged

Conversation

QMalcolm
Copy link
Contributor

@QMalcolm QMalcolm commented Jan 8, 2025

Resolves #11159

Problem

When doing partial parsing, no warning about microbatch models missing inputs with event time configs are ever fired.

Solution

Ensure we always validate the inputs for microbatch models

Demo

Demo can be found here, or click on the gif.
pf400IOVQRSoGBjUsl61Aw

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

…in raises warning

The first time the project is run, the appropriate warning about inputs is raised. However,
the warning is only being raised when a full parse happens. When partial parsing happens
the warning isn't getting raised. In the next commit we'll fix this issue. This commit updates
the test to show that the second run (with partial parsing) doesn't raise the update, and thus
the test fails.
Of note we are at the point where multiple validations are iterating
all of the nodes in a manifest. We should refactor these _soon_ such that
we are not iterating over the same list multiple times.
@QMalcolm QMalcolm requested a review from a team as a code owner January 8, 2025 00:02
@cla-bot cla-bot bot added the cla:yes label Jan 8, 2025
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.94%. Comparing base (892c545) to head (5b1f64c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11196   +/-   ##
=======================================
  Coverage   88.93%   88.94%           
=======================================
  Files         187      187           
  Lines       24092    24097    +5     
=======================================
+ Hits        21427    21432    +5     
  Misses       2665     2665           
Flag Coverage Δ
integration 86.32% <93.33%> (+<0.01%) ⬆️
unit 62.41% <6.66%> (-0.01%) ⬇️

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

Components Coverage Δ
Unit Tests 62.41% <6.66%> (-0.01%) ⬇️
Integration Tests 86.32% <93.33%> (+<0.01%) ⬆️

@gshank gshank changed the title Always emit warning when microbatch model's lack any filtered input node Always emit warning when microbatch models lack any filtered input node Jan 8, 2025
@QMalcolm QMalcolm merged commit 2eb1a5c into main Jan 8, 2025
62 of 63 checks passed
@QMalcolm QMalcolm deleted the qmalcolm--11159-always-emit-event-time-warning-when-relevant branch January 8, 2025 15:16
github-actions bot pushed a commit that referenced this pull request Jan 8, 2025
…de (#11196)

* Update `TestMicrobatchWithInputWithoutEventTime` to check running again raises warning

The first time the project is run, the appropriate warning about inputs is raised. However,
the warning is only being raised when a full parse happens. When partial parsing happens
the warning isn't getting raised. In the next commit we'll fix this issue. This commit updates
the test to show that the second run (with partial parsing) doesn't raise the update, and thus
the test fails.

* Update manifest loading to _always_ check microbatch model inputs

Of note we are at the point where multiple validations are iterating
all of the nodes in a manifest. We should refactor these _soon_ such that
we are not iterating over the same list multiple times.

* Add changie doc

(cherry picked from commit 2eb1a5c)
QMalcolm added a commit that referenced this pull request Jan 8, 2025
…de (#11196) (#11199)

* Update `TestMicrobatchWithInputWithoutEventTime` to check running again raises warning

The first time the project is run, the appropriate warning about inputs is raised. However,
the warning is only being raised when a full parse happens. When partial parsing happens
the warning isn't getting raised. In the next commit we'll fix this issue. This commit updates
the test to show that the second run (with partial parsing) doesn't raise the update, and thus
the test fails.

* Update manifest loading to _always_ check microbatch model inputs

Of note we are at the point where multiple validations are iterating
all of the nodes in a manifest. We should refactor these _soon_ such that
we are not iterating over the same list multiple times.

* Add changie doc

(cherry picked from commit 2eb1a5c)

Co-authored-by: Quigley Malcolm <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants