arijeetmukherjee3108-droid opened a new pull request, #41705: URL: https://github.com/apache/beam/pull/41705
Addresses #41345 ### Summary - Fix `UnboundLocalError` in `VertexAIFeatureStoreEnrichmentHandler.__call__` when `fetch_feature_values` raises `NotFound` and `exception_level=ExceptionLevel.QUIET` by returning `(request, beam.Row())` without logging. - Honor `exception_level` (`RAISE`, `WARN`, `QUIET`) on `NotFound` in `VertexAIFeatureStoreLegacyEnrichmentHandler.__call__` instead of unconditionally raising `ValueError`. - Add unit tests in `sdks/python/apache_beam/transforms/enrichment_handlers/vertex_ai_feature_store_test.py` covering `QUIET`, `WARN`, and `RAISE` on `NotFound` for both handlers. *Note on `__init__` existence checks (item 3 in #41345):* Kept the eager admin checks in `__init__` unchanged to preserve existing fail-fast behavior verified by `test_permission_denied_online_store`, `test_raise_error_feature_store_not_found_online_store`, and `test_vertex_ai_legacy_feature_store_invalid_featurestore`. Happy to address that separately if maintainers prefer deferring it to `__enter__`. ### Testing - Ran `pytest sdks/python/apache_beam/transforms/enrichment_handlers/vertex_ai_feature_store_test.py -v` (10 passed) and `enrichment_test.py` (11/11 total passed). - Verified clean skip when `google.cloud.aiplatform` is unavailable (non-GCP environment). - Verified `pylint --rcfile=sdks/python/.pylintrc` (10.00/10), `yapf --diff`, and `git diff --cached --check` report no issues. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
