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

Function test_make_create_table_sql

tests/comparison/tests/test_cursor.py:110–119  ·  view source on GitHub ↗

Test that for a given Table representation, both the Impala and PostgreSQL cursor objects generate valid SQL for creating their tables.

(unittest_cursor_map, table_data)

Source from the content-addressed store, hash-verified

108 storage_format='KUDU')},
109 ])
110def test_make_create_table_sql(unittest_cursor_map, table_data):
111 """
112 Test that for a given Table representation, both the Impala and PostgreSQL cursor
113 objects generate valid SQL for creating their tables.
114 """
115 which_sql = table_data['descr']
116 table_object = table_data['data']
117 expected_sql = unittest_cursor_map['sql'][which_sql]
118 cursor = unittest_cursor_map['cursor']
119 assert expected_sql == cursor.make_create_table_sql(table_object)
120
121
122@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

make_create_table_sqlMethod · 0.45

Tested by

no test coverage detected