#NEWLINE# @ expose ( '/ddl/' ) #NEWLINE# def ddl( self ) : #NEWLINE# #INDENT# table = request . args . get ( 'table' ) #NEWLINE# sql = 'SHOW CREATE TABLE {table};' . format ( table = sql ) #NEWLINE# h = HiveCliHook ( HIVE_CLI_CONN_ID ) #NEWLINE# return h . run_cli ( sql )