o-nikolas commented on code in PR #62962:
URL: https://github.com/apache/airflow/pull/62962#discussion_r2897913633
##########
providers/amazon/src/airflow/providers/amazon/aws/operators/sagemaker_unified_studio.py:
##########
@@ -101,6 +101,11 @@ class SageMakerNotebookOperator(BaseOperator):
"""
operator_extra_links = (SageMakerUnifiedStudioLink(),)
+ # These fields are declared as template_fields so Airflow resolves XCom
references
+ # (e.g. task_instance.xcom_pull(...)) to actual string values before
execute() is called.
+ # Without this, the hook would be instantiated with unresolved
PlainXComArg objects,
+ # causing a ParamValidationError when the underlying SDK tries to use them
as strings.
+ template_fields = ("domain_id", "project_id", "domain_region")
Review Comment:
This was marked as resolved but no change was made or answer to the
question. Unresolving this comment.
--
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]