vincbeck commented on code in PR #75997:
URL: https://github.com/apache/airflow/pull/75997#discussion_r4424940236


##########
providers/amazon/src/airflow/providers/amazon/aws/hooks/duckdb.py:
##########
@@ -196,6 +200,25 @@ def get_s3_endpoint_url(self) -> str | None:
             return explicit
         return self.connection_extra.get("endpoint_url") or 
self.aws_hook.conn_config.endpoint_url
 
+    def get_conn(self) -> DuckDBPyConnection:
+        """Return a DuckDB connection, and log the AWS identity once to help 
debug S3 ``HTTP 403`` errors."""
+        conn = super().get_conn()
+        if self._aws_identity_looked_up:
+            return conn
+        self._aws_identity_looked_up = True

Review Comment:
   So this blocks is skipped but the first call? Am I reading it correctly?



-- 
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]

Reply via email to