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

Function create_external_kudu_query

tests/query_test/test_kudu.py:66–75  ·  view source on GitHub ↗
(db, tbl, kudu_tbl_name, other_props=None)

Source from the content-addressed store, hash-verified

64
65
66def create_external_kudu_query(db, tbl, kudu_tbl_name, other_props=None):
67 props = {'kudu.table_name': kudu_tbl_name}
68 if other_props is not None:
69 props.update(other_props)
70 props_str = ', '.join(["'{}'='{}'".format(k, v) for k, v in props.items()])
71 return (
72 """
73 CREATE EXTERNAL TABLE {}.{}
74 STORED AS KUDU
75 TBLPROPERTIES ({})""").format(db, tbl, props_str)
76
77
78def set_latest_observed_option(vector, kudu_client):

Calls 3

updateMethod · 0.45
joinMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected