Get the schema for the IMDB dataset tables see benchmarks/data/imdb/schematext.sql
(table: &str)
| 60 | /// Get the schema for the IMDB dataset tables |
| 61 | /// see benchmarks/data/imdb/schematext.sql |
| 62 | pub fn get_imdb_table_schema(table: &str) -> Schema { |
| 63 | match table { |
| 64 | "aka_name" => Schema::new(vec![ |
| 65 | Field::new("id", DataType::UInt32, false), |
| 66 | Field::new("person_id", DataType::Int32, false), |
| 67 | Field::new("name", DataType::Utf8, true), |
| 68 | Field::new("imdb_index", DataType::Utf8, true), |
| 69 | Field::new("name_pcode_cf", DataType::Utf8, true), |
| 70 | Field::new("name_pcode_nf", DataType::Utf8, true), |
| 71 | Field::new("surname_pcode", DataType::Utf8, true), |
| 72 | Field::new("md5sum", DataType::Utf8, true), |
| 73 | ]), |
| 74 | "aka_title" => Schema::new(vec![ |
| 75 | Field::new("id", DataType::UInt32, false), |
| 76 | Field::new("movie_id", DataType::Int32, false), |
| 77 | Field::new("title", DataType::Utf8, true), |
| 78 | Field::new("imdb_index", DataType::Utf8, true), |
| 79 | Field::new("kind_id", DataType::Int32, false), |
| 80 | Field::new("production_year", DataType::Int32, true), |
| 81 | Field::new("phonetic_code", DataType::Utf8, true), |
| 82 | Field::new("episode_of_id", DataType::Int32, true), |
| 83 | Field::new("season_nr", DataType::Int32, true), |
| 84 | Field::new("episode_nr", DataType::Int32, true), |
| 85 | Field::new("note", DataType::Utf8, true), |
| 86 | Field::new("md5sum", DataType::Utf8, true), |
| 87 | ]), |
| 88 | "cast_info" => Schema::new(vec![ |
| 89 | Field::new("id", DataType::UInt32, false), |
| 90 | Field::new("person_id", DataType::Int32, false), |
| 91 | Field::new("movie_id", DataType::Int32, false), |
| 92 | Field::new("person_role_id", DataType::Int32, true), |
| 93 | Field::new("note", DataType::Utf8, true), |
| 94 | Field::new("nr_order", DataType::Int32, true), |
| 95 | Field::new("role_id", DataType::Int32, false), |
| 96 | ]), |
| 97 | "char_name" => Schema::new(vec![ |
| 98 | Field::new("id", DataType::UInt32, false), |
| 99 | Field::new("name", DataType::Utf8, false), |
| 100 | Field::new("imdb_index", DataType::Utf8, true), |
| 101 | Field::new("imdb_id", DataType::Int32, true), |
| 102 | Field::new("name_pcode_nf", DataType::Utf8, true), |
| 103 | Field::new("surname_pcode", DataType::Utf8, true), |
| 104 | Field::new("md5sum", DataType::Utf8, true), |
| 105 | ]), |
| 106 | "comp_cast_type" => Schema::new(vec![ |
| 107 | Field::new("id", DataType::UInt32, false), |
| 108 | Field::new("kind", DataType::Utf8, false), |
| 109 | ]), |
| 110 | "company_name" => Schema::new(vec![ |
| 111 | Field::new("id", DataType::UInt32, false), |
| 112 | Field::new("name", DataType::Utf8, false), |
| 113 | Field::new("country_code", DataType::Utf8, true), |
| 114 | Field::new("imdb_id", DataType::Int32, true), |
| 115 | Field::new("name_pcode_nf", DataType::Utf8, true), |
| 116 | Field::new("name_pcode_sf", DataType::Utf8, true), |
| 117 | Field::new("md5sum", DataType::Utf8, true), |
| 118 | ]), |
| 119 | "company_type" => Schema::new(vec![ |