| { |
| "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" |
| ] |
| } |
|
|