(tbl_name, file_format, partition_cols)
| 288 | return '%s/%s.db/%s/' % (WAREHOUSE, unique_database, tbl_name) |
| 289 | |
| 290 | def create_table(tbl_name, file_format, partition_cols): |
| 291 | self.execute_query("""CREATE TABLE IF NOT EXISTS {}.{} ( |
| 292 | id INT, |
| 293 | name STRING, |
| 294 | teststeps array<struct<step_number:int,step_description:string>>) |
| 295 | PARTITIONED BY ({}) |
| 296 | STORED AS {} |
| 297 | """.format(unique_database, tbl_name, partition_cols, file_format)) |
| 298 | |
| 299 | def add_file_to_table_partition(tbl_name, part_dir, local_filename): |
| 300 | tbl_loc = get_table_loc(tbl_name) |
no test coverage detected