File size: 2,726 Bytes
80a0e81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
  "schema_version": "1.0",
  "scenario_id": "dictionary_reencoded",
  "title": "Dictionary contents change without any value change",
  "category": "representation",
  "description": "Both versions store the same dictionary<int8, string> column with the same decoded values. The stored dictionaries differ: v0 has a different order and an entry that no row uses; v1 has exactly the used values. Schema, rows and values are unchanged, so both versions have the same logical fingerprint.",
  "notes": [
    "Tools that compare dictionary indices, category lists or category codes observe a change here. The decoded values do not change.",
    "The unused dictionary entry survives a PyArrow round trip; other readers may rebuild the dictionary on read and drop it."
  ],
  "tags": [
    "dictionary",
    "categorical",
    "encoding",
    "no-schema-change",
    "no-value-change"
  ],
  "row_identity": [
    "id"
  ],
  "versions": [
    {
      "id": "v0",
      "file": "v0.parquet",
      "row_count": 6,
      "fingerprint": "sha256:6dfdbf0a9de0eac2a01b3d7a88cb06abe18009dfa4d033259c14f39d7bf16d9b",
      "schema": [
        {
          "name": "id",
          "type": "int64",
          "nullable": false
        },
        {
          "name": "status",
          "type": "dictionary<values=string, indices=int8, ordered=0>",
          "nullable": true
        }
      ],
      "writer": {
        "use_dictionary": true
      },
      "dictionaries": [
        {
          "path": "status",
          "values": [
            "pending",
            "active",
            "inactive",
            "archived"
          ]
        }
      ]
    },
    {
      "id": "v1",
      "file": "v1.parquet",
      "row_count": 6,
      "fingerprint": "sha256:6dfdbf0a9de0eac2a01b3d7a88cb06abe18009dfa4d033259c14f39d7bf16d9b",
      "schema": [
        {
          "name": "id",
          "type": "int64",
          "nullable": false
        },
        {
          "name": "status",
          "type": "dictionary<values=string, indices=int8, ordered=0>",
          "nullable": true
        }
      ],
      "writer": {
        "use_dictionary": true
      },
      "dictionaries": [
        {
          "path": "status",
          "values": [
            "active",
            "inactive",
            "pending"
          ]
        }
      ]
    }
  ],
  "transitions": [
    {
      "from": "v0",
      "to": "v1",
      "mutations": [],
      "invariants": {
        "row_count_preserved": true,
        "row_identity_preserved": true,
        "rows_retained": true,
        "paths_retained": true,
        "common_values_preserved": true,
        "value_changes": [],
        "parquet_schema_preserved": true
      }
    }
  ]
}