You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculate Table Freshness: abs(current_time()-{table.lastModified}): To answer the universal question of - "How Fresh Is It?".
I was using the table.lastModified timestamp. While this works on a new table, you quickly come to realize that unless there are "modifications" to the structure of the table, or table properties, then the modification timestamp is not useful to calculate the freshness of a table.
instead you can use the dt.history() to gather the last operation that added or otherwise "effectively" modified the table.
The text was updated successfully, but these errors were encountered:
newfront
added
baby-steps
Gentle Introductions to Concepts. This is like the First Steps idea or Gentle Introductions
bug
Something isn't working
and removed
baby-steps
Gentle Introductions to Concepts. This is like the First Steps idea or Gentle Introductions
labels
Jun 3, 2024
https://github.com/newfront/hitchhikers_guide_to_deltalake_streaming/blob/main/hitchhikers_guide/notebooks/101-first-steps/101-dl-streaming.ipynb
Under:
Calculate Table Freshness: abs(current_time()-{table.lastModified}): To answer the universal question of - "How Fresh Is It?".
I was using the
table.lastModified
timestamp. While this works on a new table, you quickly come to realize that unless there are "modifications" to the structure of the table, or table properties, then the modification timestamp is not useful to calculate the freshness of a table.instead you can use the
dt.history()
to gather the lastoperation
thatadded
or otherwise "effectively" modified the table.The text was updated successfully, but these errors were encountered: