Skip to content

Commit

Permalink
Update cid/helpers/cur.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yuriy Prykhodko <yprikhodko@gmail.com>
  • Loading branch information
iakov-aws and yprikhodko authored Jan 3, 2024
1 parent f7bc593 commit d7910e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cid/helpers/cur.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def ensure_column(self, column: str, column_type: str=None):
try:
self.athena.query(f'ALTER TABLE {self.table_name} ADD COLUMNS ({column} {column_type})')
except (self.athena.client.exceptions.ClientError, CidCritical) as exc:
raise CidCritical(f'Column {column} is not found in CUR and we were unable to add it. Please check FAQ.') from exc
raise CidCritical(f'Column {column} is not found in CUR and we were unable to add it.') from exc
self._metadata = self.athena.get_table_metadata(self.table_name) # refresh table metadata
logger.critical(f"Column '{column}' was added to CUR ({self.table_name}). Please make sure crawler do not override that columns. Crawler='{crawler_name}'")

Expand Down

0 comments on commit d7910e1

Please sign in to comment.