To run a local ingestion test, use the following command:
python test_local_ingestion.pyThis will:
- Fetch flight data from OpenSky API for the last 2 hours
- Save the data to a local Parquet file in the
samplesdirectory - Update the database with the new record
- Print a summary of the results
The database is initialized in the data/ingestion.db file. The schema is defined in the src/ingestion/db/models.py file.