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_r217892500
 
 

 ##########
 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:
   Shouldn't it be just `file_no` and not `file_no + 1`?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to