kaxil commented on a change in pull request #10025:
URL: https://github.com/apache/airflow/pull/10025#discussion_r464664463



##########
File path: airflow/providers/amazon/aws/operators/athena.py
##########
@@ -72,19 +82,17 @@ def __init__(  # pylint: disable=too-many-arguments
         self.result_configuration = result_configuration or {}
         self.sleep_time = sleep_time
         self.max_tries = max_tries
-        self.query_execution_id = None
-        self.hook = None
+        self.query_execution_id = None  # type: Optional[str]
 
-    def get_hook(self):
+    @cached_property

Review comment:
       :) -- Glad that you found it useful. Tbh I learned it just before I 
became an Airflow committer -- someone had suggested me in my PR  2-3 years 
back :)




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to