{
  "duckdb_version": "1.5.6",
  "python": "3.14.7",
  "platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O",
  "data": "synthetic",
  "source_sha256": "a4e2e35aae1f052880a69ad0fdf74634121931f5198a72ffa3790ea268ecd3c3",
  "expected": {
    "lignes": 10,
    "identifiants": 10,
    "montants_absents": 1,
    "zeros": 1,
    "total_eur": "500.00",
    "premier_id": "0001",
    "dernier_id": "0010"
  },
  "results": [
    {
      "scenario": "nominal",
      "expected_accept": true,
      "behaviour_as_expected": true,
      "checks": {
        "reference_metier_csv": true,
        "reference_metier_parquet": true,
        "egalite_lignes_csv_parquet": true,
        "totaux_pays": true,
        "partitions": true,
        "max_partition_filtree": true
      },
      "accepted": true,
      "csv": {
        "lignes": 10,
        "identifiants": 10,
        "montants_absents": 1,
        "zeros": 1,
        "total_eur": "500.00",
        "premier_id": "0001",
        "dernier_id": "0010"
      },
      "parquet": {
        "lignes": 10,
        "identifiants": 10,
        "montants_absents": 1,
        "zeros": 1,
        "total_eur": "500.00",
        "premier_id": "0001",
        "dernier_id": "0010"
      },
      "difference_lignes": 0,
      "totaux_pays": {
        "DE": "100.00",
        "FR": "400.00"
      },
      "partitions": [
        [
          9,
          5,
          "210.00"
        ],
        [
          10,
          5,
          "290.00"
        ]
      ],
      "max_partition_filtree": 9,
      "fichiers_lus": [
        "annee=2026/mois=10/data_0.parquet",
        "annee=2026/mois=9/data_0.parquet"
      ],
      "plan_max_partition": "┌───────────────────────────┐\n│    UNGROUPED_AGGREGATE    │\n│    ────────────────────   │\n│    Aggregates: max(#0)    │\n└─────────────┬─────────────┘\n┌─────────────┴─────────────┐\n│         PROJECTION        │\n│    ────────────────────   │\n│            mois           │\n│                           │\n│          ~5 rows          │\n└─────────────┬─────────────┘\n┌─────────────┴─────────────┐\n│        READ_PARQUET       │\n│    ────────────────────   │\n│         Function:         │\n│        READ_PARQUET       │\n│                           │\n│     Projections: mois     │\n│                           │\n│       File Filters:       │\n│         (mois = 9)        │\n│                           │\n│    Scanning Files: 1/2    │\n│                           │\n│          ~5 rows          │\n└───────────────────────────┘\n"
    },
    {
      "scenario": "doublon",
      "expected_accept": false,
      "behaviour_as_expected": true,
      "checks": {
        "reference_metier_csv": false,
        "reference_metier_parquet": false,
        "egalite_lignes_csv_parquet": true,
        "totaux_pays": false,
        "partitions": false,
        "max_partition_filtree": true
      },
      "accepted": false,
      "csv": {
        "lignes": 11,
        "identifiants": 10,
        "montants_absents": 1,
        "zeros": 1,
        "total_eur": "600.10",
        "premier_id": "0001",
        "dernier_id": "0010"
      },
      "parquet": {
        "lignes": 11,
        "identifiants": 10,
        "montants_absents": 1,
        "zeros": 1,
        "total_eur": "600.10",
        "premier_id": "0001",
        "dernier_id": "0010"
      },
      "difference_lignes": 0,
      "totaux_pays": {
        "DE": "100.00",
        "FR": "500.10"
      },
      "partitions": [
        [
          9,
          6,
          "310.10"
        ],
        [
          10,
          5,
          "290.00"
        ]
      ],
      "max_partition_filtree": 9,
      "fichiers_lus": [
        "annee=2026/mois=10/data_0.parquet",
        "annee=2026/mois=9/data_0.parquet"
      ],
      "plan_max_partition": "┌───────────────────────────┐\n│    UNGROUPED_AGGREGATE    │\n│    ────────────────────   │\n│    Aggregates: max(#0)    │\n└─────────────┬─────────────┘\n┌─────────────┴─────────────┐\n│         PROJECTION        │\n│    ────────────────────   │\n│            mois           │\n│                           │\n│          ~5 rows          │\n└─────────────┬─────────────┘\n┌─────────────┴─────────────┐\n│        READ_PARQUET       │\n│    ────────────────────   │\n│         Function:         │\n│        READ_PARQUET       │\n│                           │\n│     Projections: mois     │\n│                           │\n│       File Filters:       │\n│         (mois = 9)        │\n│                           │\n│    Scanning Files: 1/2    │\n│                           │\n│          ~5 rows          │\n└───────────────────────────┘\n"
    },
    {
      "scenario": "centimes",
      "expected_accept": false,
      "behaviour_as_expected": true,
      "checks": {
        "reference_metier_csv": false,
        "reference_metier_parquet": false,
        "egalite_lignes_csv_parquet": true,
        "totaux_pays": false,
        "partitions": false,
        "max_partition_filtree": true
      },
      "accepted": false,
      "csv": {
        "lignes": 10,
        "identifiants": 10,
        "montants_absents": 1,
        "zeros": 1,
        "total_eur": "10409.90",
        "premier_id": "0001",
        "dernier_id": "0010"
      },
      "parquet": {
        "lignes": 10,
        "identifiants": 10,
        "montants_absents": 1,
        "zeros": 1,
        "total_eur": "10409.90",
        "premier_id": "0001",
        "dernier_id": "0010"
      },
      "difference_lignes": 0,
      "totaux_pays": {
        "DE": "100.00",
        "FR": "10309.90"
      },
      "partitions": [
        [
          9,
          5,
          "10119.90"
        ],
        [
          10,
          5,
          "290.00"
        ]
      ],
      "max_partition_filtree": 9,
      "fichiers_lus": [
        "annee=2026/mois=10/data_0.parquet",
        "annee=2026/mois=9/data_0.parquet"
      ],
      "plan_max_partition": "┌───────────────────────────┐\n│    UNGROUPED_AGGREGATE    │\n│    ────────────────────   │\n│    Aggregates: max(#0)    │\n└─────────────┬─────────────┘\n┌─────────────┴─────────────┐\n│         PROJECTION        │\n│    ────────────────────   │\n│            mois           │\n│                           │\n│          ~5 rows          │\n└─────────────┬─────────────┘\n┌─────────────┴─────────────┐\n│        READ_PARQUET       │\n│    ────────────────────   │\n│         Function:         │\n│        READ_PARQUET       │\n│                           │\n│     Projections: mois     │\n│                           │\n│       File Filters:       │\n│         (mois = 9)        │\n│                           │\n│    Scanning Files: 1/2    │\n│                           │\n│          ~5 rows          │\n└───────────────────────────┘\n"
    },
    {
      "scenario": "partition_manquante",
      "expected_accept": false,
      "behaviour_as_expected": true,
      "checks": {
        "reference_metier_csv": true,
        "reference_metier_parquet": false,
        "egalite_lignes_csv_parquet": false,
        "totaux_pays": false,
        "partitions": false,
        "max_partition_filtree": true
      },
      "accepted": false,
      "csv": {
        "lignes": 10,
        "identifiants": 10,
        "montants_absents": 1,
        "zeros": 1,
        "total_eur": "500.00",
        "premier_id": "0001",
        "dernier_id": "0010"
      },
      "parquet": {
        "lignes": 5,
        "identifiants": 5,
        "montants_absents": 1,
        "zeros": 0,
        "total_eur": "210.00",
        "premier_id": "0001",
        "dernier_id": "0005"
      },
      "difference_lignes": 5,
      "totaux_pays": {
        "DE": "60.00",
        "FR": "150.00"
      },
      "partitions": [
        [
          9,
          5,
          "210.00"
        ]
      ],
      "max_partition_filtree": 9,
      "fichiers_lus": [
        "annee=2026/mois=9/data_0.parquet"
      ],
      "plan_max_partition": "┌───────────────────────────┐\n│    UNGROUPED_AGGREGATE    │\n│    ────────────────────   │\n│    Aggregates: max(#0)    │\n└─────────────┬─────────────┘\n┌─────────────┴─────────────┐\n│         PROJECTION        │\n│    ────────────────────   │\n│            mois           │\n│                           │\n│          ~5 rows          │\n└─────────────┬─────────────┘\n┌─────────────┴─────────────┐\n│        READ_PARQUET       │\n│    ────────────────────   │\n│         Function:         │\n│        READ_PARQUET       │\n│                           │\n│     Projections: mois     │\n│                           │\n│          ~5 rows          │\n└───────────────────────────┘\n"
    },
    {
      "scenario": "valeur_invalide",
      "expected_accept": false,
      "behaviour_as_expected": true,
      "accepted": false,
      "error_type": "ConversionException",
      "error": "Conversion Error: CSV Error on Line: 2\nOriginal Line: 0001;2026-09-30;FR;inconnu\nError when converting column \"montant_eur\". Could not convert string \"inconnu\" to 'DECIMAL'\n\nColumn montant_eur is being converted as type DECIMAL\nThis type was auto-detected from the CSV file.\nPossible solutions:\n* Override the type for this column manually by setting the type explicitly, e.g., types={'montant_eur': 'VARCHAR'}\n* Set the sample size to a larger value to enable the auto-detection to scan more values, e.g., sample_size=-1\n* Use a COPY statement to automatically derive types from an existing table.\n* Check whether the null string value is set correctly (e.g., nullstr = 'N/A')\n\n  file = <atelier>/valeur_invalide.csv\n  delimiter = ; (Set By User)\n  quote = \" (Auto-Detected)\n  escape = \" (Auto-Detected)\n  new_line = \\r\\n (Auto-Detected)\n  header = true (Set By User)\n  skip_rows = 0 (Auto-Detected)\n  comment = (empty) (Auto-Detected)\n  strict_mode = true (Auto-Detected)\n  date_format =  (Auto-Detected)\n  timestamp_format =  (Auto-Detected)\n  null_padding = 0\n  sample_size = 20480\n  ignore_errors = false\n  all_varchar = 0\n\n"
    }
  ],
  "success": true
}
