airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] kaxil commented on a change in pull request #3898: [AIRFLOW-3059] PostgresToGCS Log the number of rows read
Date Sat, 15 Sep 2018 18:48:53 GMT
kaxil commented on a change in pull request #3898: [AIRFLOW-3059] PostgresToGCS Log the number
of rows read
URL: https://github.com/apache/incubator-airflow/pull/3898#discussion_r217892517
 
 

 ##########
 File path: airflow/contrib/operators/postgres_to_gcs_operator.py
 ##########
 @@ -155,6 +156,9 @@ def _write_local_data_files(self, cursor):
                 file_no += 1
                 tmp_file_handle = NamedTemporaryFile(delete=True)
                 tmp_file_handles[self.filename.format(file_no)] = tmp_file_handle
+            row_no += 1
+
+        self.log.info('Received %s rows over %s files', row_no, file_no + 1)
 
 Review comment:
   Line156 already increments the `file_no` variable.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message