MCPcopy Create free account
hub / github.com/apache/impala / create_table

Method create_table

tests/query_test/test_iceberg.py:290–297  ·  view source on GitHub ↗
(tbl_name, file_format, partition_cols)

Source from the content-addressed store, hash-verified

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)

Calls 2

execute_queryMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected