scan_file
Scan CSV, Parquet, JSONL, XLSX, DuckDB files, PostgreSQL or MySQL tables, and S3/GS/Azure objects to detect data quality issues, then persist a report with scores and issue counts.
Instructions
Scan a data file (CSV/Parquet/JSONL/XLSX/DuckDB), a PostgreSQL table (postgresql://DSN, Step 55), a MySQL table (mysql://DSN, Step 56) or a cloud storage file (s3:// gs:// az:// CSV/Parquet/JSONL, Step 57) and persist the quality report. Returns scan id, status, row count, quality score and issue counts. Optional sampling (sampling_size or sampling_ratio; sampling_method random|stratified|reservoir|time_based|rare_oversampling|none, default reservoir; sampling_seed, default 42), detector whitelist and tags mirror the CLI (Step 76, ADR-076).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the data file, a postgresql:// / mysql:// DSN (table_name required), or an s3:// gs:// az:// cloud file URI | |
| seed | No | ||
| tags | No | ||
| detectors | No | ||
| dataset_id | No | ||
| table_name | No | ||
| sampling_seed | No | ||
| sampling_size | No | ||
| sampling_ratio | No | ||
| sampling_method | No | sampling strategy accepted by core (ADR-076) |