zhongjiajie commented on a change in pull request #7802: Make airflow/providers 
pylint compatible
URL: https://github.com/apache/airflow/pull/7802#discussion_r396102613
 
 

 ##########
 File path: airflow/providers/qubole/hooks/qubole_check.py
 ##########
 @@ -93,17 +109,24 @@ def handle_failure_retry(context):
                     log.info('Cancelling the Qubole Command Id: %s', cmd_id)
                     cmd.cancel()
 
-    def get_first(self, sql):
+    def get_first(self):
+        """
+        Get Qubole query first record list
+        """
         self.execute(context=self.context)
         query_result = self.get_query_results()
         row_list = list(filter(None, query_result.split(ROW_DELIM)))
         record_list = self.results_parser_callable(row_list)
         return record_list
 
+    # pylint: disable=inconsistent-return-statements
 
 Review comment:
   Fix

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


With regards,
Apache Git Services

Reply via email to