@@ -259,6 +259,30 @@ def schema_manager(self) -> SchemaManager:
259259 """Return the store's schema manager."""
260260 return self ._schema_mgr
261261
262+ def check_timestamps (self , name : str , connection : Connection | None = None ) -> None :
263+ """Check the timestamps in the table.
264+
265+ This is useful if you call a :meth:`ingest_table` many times with skip_time_checks=True
266+ and then want to check the final table.
267+
268+ Parameters
269+ ----------
270+ name
271+ Name of the table to check.
272+
273+ Raises
274+ ------
275+ InvalidTable
276+ Raised if the timestamps do not match the schema.
277+ """
278+ table = self .get_table (name )
279+ schema = self ._schema_mgr .get_schema (name )
280+ if connection is None :
281+ with self ._engine .connect () as conn :
282+ check_timestamps (conn , table , schema )
283+ else :
284+ check_timestamps (connection , table , schema )
285+
262286 def create_view_from_parquet (
263287 self , path : Path , schema : TableSchema , bypass_checks : bool = False
264288 ) -> None :
@@ -771,13 +795,13 @@ def _ingest_tables(
771795 conn : Connection ,
772796 data : Iterable [pd .DataFrame | DuckDBPyRelation ],
773797 schema : TableSchema ,
774- bypass_time_checks : bool = False ,
798+ skip_time_checks : bool = False ,
775799 ) -> bool :
776800 created_table = False
777801 for table in data :
778802 if self ._ingest_table (conn , table , schema ):
779803 created_table = True
780- if not bypass_time_checks :
804+ if not skip_time_checks :
781805 check_timestamps (conn , Table (schema .name , self ._metadata ), schema )
782806 return created_table
783807
0 commit comments