(db, tbl, kudu_tbl_name, other_props=None)
| 64 | |
| 65 | |
| 66 | def 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 | |
| 78 | def set_latest_observed_option(vector, kudu_client): |
no test coverage detected