Skip to content

Commit

Permalink
chore: add explicit log for dry-run (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
arinda-arif authored Jul 8, 2024
1 parent 2e20092 commit d514766
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions task/bq2bq/executor/bumblebee/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ def execute(self):

if not self.dry_run:
result = self.loader.load(query)

logger.info(result)
logger.info("finished")

logger.info(result)
logger.info("finished")
else:
logger.info("dry-run finished")

class TableTransformation:
"""
Expand Down Expand Up @@ -295,9 +295,10 @@ def execute(self):
result = None
if not self.dry_run:
result = self.loader.load(self.query)

logger.info(result)
logger.info("finished")
logger.info(result)
logger.info("finished")
else:
logger.info("dry-run finished")

async def async_execute(self):
self.execute()
Expand Down Expand Up @@ -355,6 +356,8 @@ def transform(self):
if not self.dry_run:
result = self.loader.load(query)
logger.info("finished {}".format(result.total_rows))
else:
logger.info("dry-run finished")


class MultiPartitionTransformation:
Expand Down

0 comments on commit d514766

Please sign in to comment.