| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality🔴 New feature view schema fields break tests using fake_ingest_data fixture
Adding driver_metadata, driver_config, and driver_profile fields to the create_driver_hourly_stats_feature_view schema breaks tests that use the fake_ingest_data fixture with this feature view.
Root CauseThe fake_ingest_data fixture in sdk/python/tests/conftest.py:427-437 only provides columns driver_id, conv_rate, acc_rate, avg_daily_trips, event_timestamp, and created. It does NOT include the newly added driver_metadata, driver_config, or driver_profile columns.
Tests like test_connection_pool_online_stores (sdk/python/tests/integration/online_store/test_universal_online.py:67-74) and test_entity_ttl_online_store (sdk/python/tests/integration/online_store/test_universal_online.py:99-106) call:
Inside write_to_online_store at sdk/python/feast/feature_store.py:2201-2203:
feature_view.features now includes driver_metadata, driver_config, driver_profile, but the DataFrame from fake_ingest_data doesn't have those columns, causing a KeyError.
Impact: Integration tests test_connection_pool_online_stores and test_entity_ttl_online_store will fail.
Prompt for agentsThe fake_ingest_data fixture in sdk/python/tests/conftest.py (around line 427-437) needs to be updated to include the three new fields added to the driver_stats feature view schema. Add the following keys to the data dict: "driver_metadata": [{"vehicle_type": "sedan", "rating": "4.5"}], "driver_config": [json.dumps({"max_distance_km": 100, "preferred_zones": ["north"]})], "driver_profile": [{"name": "driver_1", "age": "30"}], You will also need to add 'import json' at the top of conftest.py if not already present.Was this helpful? React with 👍 or 👎 to provide feedback.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.