Repository navigation
Conversation
|
Could someone please take a look at this PR when you have a chance? Thanks! |
47b02a4 to
46b60e0
Compare
|
Rebased onto master to resolve the conflict with #7067. The conflicts were in the import block and the troubleshooting section; the check itself is unchanged. All 56 dbt unit tests pass. |
There was a problem hiding this comment.
🔍 Devin Review: 1 flag
Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7038 +/- ##
=======================================
Coverage 53.66% 53.67%
=======================================
Files 462 462
Lines 58546 58549 +3
Branches 8633 8634 +1
=======================================
+ Hits 31421 31424 +3
Misses 24988 24988
Partials 2137 2137
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Signed-off-by: luc-pimentel <154371376+luc-pimentel@users.noreply.github.com>
The import command only checked that the timestamp column exists, so a column declared STRING or INT64 produced a FeatureView whose timestamp_field cannot anchor point-in-time retrieval. Check the column's dbt type with the existing dbt-to-Feast mapping and print a warning when it does not map to a timestamp type. The model is still imported. Signed-off-by: luc-pimentel <154371376+luc-pimentel@users.noreply.github.com>
46b60e0 to
57bb92e
Compare
What this PR does / why we need it:
feast dbt importchecked only that the timestamp column exists. A column declaredSTRINGorINT64imported silently, and the resulting FeatureView fails at the firstget_historical_featurescall withAttributeError: 'str' object has no attribute 'tzinfo'.The import now checks the column's dbt type through the existing dbt-to-Feast type mapping and prints one warning per model when it does not map to a timestamp type. The model is still imported. Columns with no
data_typein schema.yml reach the CLI asSTRINGand get the same warning. Spellings the mapping does not know yet, such as Postgrestimestamp with time zoneorDATETIME2, also warn; extending the mapping is a separate change. The troubleshooting section of the dbt how-to documents the new message.Which issue(s) this PR fixes:
Fixes #5871
Checks
git commit -s)Testing Strategy
New CLI tests build a manifest and run
feast dbt import --dry-run: the warning appears forSTRING,INT64and an undeclared type, and does not appear forTIMESTAMPorTIMESTAMP_NTZ(9); warned models still produce their DataSource and FeatureView. All 43 dbt unit tests pass. Scoped Ruff, formatting and mypy checks pass. The before/after reproduction on Feast 0.67.0 and master passes its controls.Misc
AI-assisted implementation and tests.