We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb2e08 commit 7385b9dCopy full SHA for 7385b9d
ingester/datalake_ingester/storage.py
@@ -59,11 +59,14 @@ def _latest_table(self):
59
return Table(self.latest_table_name, connection=self._connection)
60
61
def store(self, record):
62
- try:
63
- self._table.put_item(data=record)
64
- except ConditionalCheckFailedException:
65
- # Tolerate duplicate stores
66
- pass
+ if self.use_latest:
+ self._latest_table.store_latest(record)
+ else:
+ try:
+ self._table.put_item(data=record)
67
+ except ConditionalCheckFailedException:
68
+ # Tolerate duplicate stores
69
+ pass
70
71
def update(self, record):
72
self._table.put_item(data=record, overwrite=True)
0 commit comments