File size: 4,066 Bytes
5faf0a7
 
c2b7c31
5faf0a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c2b7c31
5faf0a7
 
 
 
 
 
 
 
 
 
 
c2b7c31
5faf0a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c2b7c31
5faf0a7
 
 
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
  "schema_name": "sample_index_parquet",
  "schema_version": 3,
  "artifact": "sample_index.parquet",
  "format": "parquet",
  "row_grain": "one row per WebDataset tar member",
  "description": "Physical lookup table for random access into uncompressed WebDataset tar shards. Semantic filtering lives in manifest.parquet.",
  "primary_key": [
    "sample_key",
    "resolution",
    "member_suffix"
  ],
  "columns": [
    {
      "name": "sample_key",
      "arrow_type": "string",
      "nullable": false
    },
    {
      "name": "match_id",
      "arrow_type": "string",
      "nullable": false
    },
    {
      "name": "round_id",
      "arrow_type": "string",
      "nullable": false
    },
    {
      "name": "round_idx",
      "arrow_type": "int32",
      "nullable": false
    },
    {
      "name": "pov_idx",
      "arrow_type": "int32",
      "nullable": false
    },
    {
      "name": "resolution",
      "arrow_type": "string",
      "nullable": false,
      "valid_values": [
        "720p",
        "360p"
      ]
    },
    {
      "name": "video_width",
      "arrow_type": "int32",
      "nullable": false
    },
    {
      "name": "video_height",
      "arrow_type": "int32",
      "nullable": false
    },
    {
      "name": "member_name",
      "arrow_type": "string",
      "nullable": false,
      "description": "Full tar member name, for example {sample_key}.mp4."
    },
    {
      "name": "member_suffix",
      "arrow_type": "string",
      "nullable": false,
      "valid_values": [
        "mp4",
        "actions.bin",
        "state.bin",
        "events.json",
        "json"
      ]
    },
    {
      "name": "modality",
      "arrow_type": "string",
      "nullable": false,
      "valid_values": [
        "video",
        "actions",
        "state",
        "events",
        "metadata"
      ]
    },
    {
      "name": "content_type",
      "arrow_type": "string",
      "nullable": false,
      "valid_values": [
        "video/mp4",
        "application/octet-stream",
        "application/json"
      ]
    },
    {
      "name": "shard_path",
      "arrow_type": "string",
      "nullable": false,
      "description": "Relative path to the public shard inside the release repo."
    },
    {
      "name": "shard_id",
      "arrow_type": "int32",
      "nullable": false
    },
    {
      "name": "member_index",
      "arrow_type": "int32",
      "nullable": false,
      "description": "Zero-indexed member order within the tar shard."
    },
    {
      "name": "member_offset",
      "arrow_type": "int64",
      "nullable": false,
      "description": "Byte offset of the member payload inside the uncompressed tar."
    },
    {
      "name": "member_length",
      "arrow_type": "int64",
      "nullable": false,
      "description": "Payload length in bytes."
    },
    {
      "name": "member_sha256",
      "arrow_type": "string",
      "nullable": false,
      "description": "Hex SHA-256 of the member payload."
    },
    {
      "name": "shard_size_bytes",
      "arrow_type": "int64",
      "nullable": false
    },
    {
      "name": "shard_sha256",
      "arrow_type": "string",
      "nullable": false,
      "description": "Hex SHA-256 of the full tar shard."
    },
    {
      "name": "tar_format",
      "arrow_type": "string",
      "nullable": false,
      "valid_values": [
        "ustar"
      ]
    },
    {
      "name": "compression",
      "arrow_type": "string",
      "nullable": false,
      "valid_values": [
        "none"
      ],
      "description": "Shard tar compression. Current release shards are uncompressed."
    }
  ],
  "validation": [
    "primary key is unique",
    "member_offset >= 0",
    "member_length > 0",
    "member_sha256 is a 64-character lowercase hex SHA-256",
    "shard_sha256 is a 64-character lowercase hex SHA-256",
    "HTTP range bytes=member_offset-(member_offset+member_length-1) returns exactly the member payload",
    "each sample_key has exactly five member_suffix values per resolution",
    "no column is named clip_id"
  ]
}