9 from thrift.Thrift
import TType, TMessageType, TFrozenDict, TException, TApplicationException
10 from thrift.protocol.TProtocol
import TProtocolException
11 from thrift.TRecursive
import fix_spec
16 from thrift.Thrift
import TProcessor
17 from thrift.transport
import TTransport
155 - include_system_columns
238 def set_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
245 - for_running_query_kernel
257 - for_running_query_kernel
347 def sql_execute(self, session, query, column_format, nonce, first_n, at_most_n):
360 def sql_execute_df(self, session, query, device_type, device_id, first_n, transport_method):
432 def render_vega(self, session, widget_id, vega_json, compression_level, nonce):
489 - custom_expression_ids
512 def create_dashboard(self, session, dashboard_name, dashboard_state, image_hash, dashboard_metadata):
524 def replace_dashboard(self, session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata):
567 def share_dashboard(self, session, dashboard_id, groups, objects, permissions, grant_role):
664 def load_table(self, session, table_name, rows, column_names):
707 def import_geo_table(self, session, table_name, file_name, copy_params, row_desc, create_params):
777 def start_query(self, leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices):
785 - outer_fragment_indices
807 - is_final_subquery_result
904 def has_role(self, session, granteeName, roleName):
1015 class Client(Iface):
1018 if oprot
is not None:
1034 self._oprot.writeMessageBegin(
'connect', TMessageType.CALL, self.
_seqid)
1037 args.passwd = passwd
1038 args.dbname = dbname
1040 self._oprot.writeMessageEnd()
1041 self._oprot.trans.flush()
1045 (fname, mtype, rseqid) = iprot.readMessageBegin()
1046 if mtype == TMessageType.EXCEPTION:
1047 x = TApplicationException()
1049 iprot.readMessageEnd()
1053 iprot.readMessageEnd()
1054 if result.success
is not None:
1055 return result.success
1056 if result.e
is not None:
1058 raise TApplicationException(TApplicationException.MISSING_RESULT,
"connect failed: unknown result")
1071 self._oprot.writeMessageBegin(
'krb5_connect', TMessageType.CALL, self.
_seqid)
1073 args.inputToken = inputToken
1074 args.dbname = dbname
1076 self._oprot.writeMessageEnd()
1077 self._oprot.trans.flush()
1081 (fname, mtype, rseqid) = iprot.readMessageBegin()
1082 if mtype == TMessageType.EXCEPTION:
1083 x = TApplicationException()
1085 iprot.readMessageEnd()
1089 iprot.readMessageEnd()
1090 if result.success
is not None:
1091 return result.success
1092 if result.e
is not None:
1094 raise TApplicationException(TApplicationException.MISSING_RESULT,
"krb5_connect failed: unknown result")
1106 self._oprot.writeMessageBegin(
'disconnect', TMessageType.CALL, self.
_seqid)
1108 args.session = session
1110 self._oprot.writeMessageEnd()
1111 self._oprot.trans.flush()
1115 (fname, mtype, rseqid) = iprot.readMessageBegin()
1116 if mtype == TMessageType.EXCEPTION:
1117 x = TApplicationException()
1119 iprot.readMessageEnd()
1123 iprot.readMessageEnd()
1124 if result.e
is not None:
1139 self._oprot.writeMessageBegin(
'switch_database', TMessageType.CALL, self.
_seqid)
1141 args.session = session
1142 args.dbname = dbname
1144 self._oprot.writeMessageEnd()
1145 self._oprot.trans.flush()
1149 (fname, mtype, rseqid) = iprot.readMessageBegin()
1150 if mtype == TMessageType.EXCEPTION:
1151 x = TApplicationException()
1153 iprot.readMessageEnd()
1157 iprot.readMessageEnd()
1158 if result.e
is not None:
1172 self._oprot.writeMessageBegin(
'clone_session', TMessageType.CALL, self.
_seqid)
1174 args.session = session
1176 self._oprot.writeMessageEnd()
1177 self._oprot.trans.flush()
1181 (fname, mtype, rseqid) = iprot.readMessageBegin()
1182 if mtype == TMessageType.EXCEPTION:
1183 x = TApplicationException()
1185 iprot.readMessageEnd()
1189 iprot.readMessageEnd()
1190 if result.success
is not None:
1191 return result.success
1192 if result.e
is not None:
1194 raise TApplicationException(TApplicationException.MISSING_RESULT,
"clone_session failed: unknown result")
1206 self._oprot.writeMessageBegin(
'get_server_status', TMessageType.CALL, self.
_seqid)
1208 args.session = session
1210 self._oprot.writeMessageEnd()
1211 self._oprot.trans.flush()
1215 (fname, mtype, rseqid) = iprot.readMessageBegin()
1216 if mtype == TMessageType.EXCEPTION:
1217 x = TApplicationException()
1219 iprot.readMessageEnd()
1223 iprot.readMessageEnd()
1224 if result.success
is not None:
1225 return result.success
1226 if result.e
is not None:
1228 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_server_status failed: unknown result")
1240 self._oprot.writeMessageBegin(
'get_status', TMessageType.CALL, self.
_seqid)
1242 args.session = session
1244 self._oprot.writeMessageEnd()
1245 self._oprot.trans.flush()
1249 (fname, mtype, rseqid) = iprot.readMessageBegin()
1250 if mtype == TMessageType.EXCEPTION:
1251 x = TApplicationException()
1253 iprot.readMessageEnd()
1257 iprot.readMessageEnd()
1258 if result.success
is not None:
1259 return result.success
1260 if result.e
is not None:
1262 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_status failed: unknown result")
1274 self._oprot.writeMessageBegin(
'get_hardware_info', TMessageType.CALL, self.
_seqid)
1276 args.session = session
1278 self._oprot.writeMessageEnd()
1279 self._oprot.trans.flush()
1283 (fname, mtype, rseqid) = iprot.readMessageBegin()
1284 if mtype == TMessageType.EXCEPTION:
1285 x = TApplicationException()
1287 iprot.readMessageEnd()
1291 iprot.readMessageEnd()
1292 if result.success
is not None:
1293 return result.success
1294 if result.e
is not None:
1296 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_hardware_info failed: unknown result")
1308 self._oprot.writeMessageBegin(
'get_tables', TMessageType.CALL, self.
_seqid)
1310 args.session = session
1312 self._oprot.writeMessageEnd()
1313 self._oprot.trans.flush()
1317 (fname, mtype, rseqid) = iprot.readMessageBegin()
1318 if mtype == TMessageType.EXCEPTION:
1319 x = TApplicationException()
1321 iprot.readMessageEnd()
1325 iprot.readMessageEnd()
1326 if result.success
is not None:
1327 return result.success
1328 if result.e
is not None:
1330 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_tables failed: unknown result")
1343 self._oprot.writeMessageBegin(
'get_tables_for_database', TMessageType.CALL, self.
_seqid)
1345 args.session = session
1346 args.database_name = database_name
1348 self._oprot.writeMessageEnd()
1349 self._oprot.trans.flush()
1353 (fname, mtype, rseqid) = iprot.readMessageBegin()
1354 if mtype == TMessageType.EXCEPTION:
1355 x = TApplicationException()
1357 iprot.readMessageEnd()
1361 iprot.readMessageEnd()
1362 if result.success
is not None:
1363 return result.success
1364 if result.e
is not None:
1366 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_tables_for_database failed: unknown result")
1378 self._oprot.writeMessageBegin(
'get_physical_tables', TMessageType.CALL, self.
_seqid)
1380 args.session = session
1382 self._oprot.writeMessageEnd()
1383 self._oprot.trans.flush()
1387 (fname, mtype, rseqid) = iprot.readMessageBegin()
1388 if mtype == TMessageType.EXCEPTION:
1389 x = TApplicationException()
1391 iprot.readMessageEnd()
1395 iprot.readMessageEnd()
1396 if result.success
is not None:
1397 return result.success
1398 if result.e
is not None:
1400 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_physical_tables failed: unknown result")
1412 self._oprot.writeMessageBegin(
'get_views', TMessageType.CALL, self.
_seqid)
1414 args.session = session
1416 self._oprot.writeMessageEnd()
1417 self._oprot.trans.flush()
1421 (fname, mtype, rseqid) = iprot.readMessageBegin()
1422 if mtype == TMessageType.EXCEPTION:
1423 x = TApplicationException()
1425 iprot.readMessageEnd()
1429 iprot.readMessageEnd()
1430 if result.success
is not None:
1431 return result.success
1432 if result.e
is not None:
1434 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_views failed: unknown result")
1446 self._oprot.writeMessageBegin(
'get_tables_meta', TMessageType.CALL, self.
_seqid)
1448 args.session = session
1450 self._oprot.writeMessageEnd()
1451 self._oprot.trans.flush()
1455 (fname, mtype, rseqid) = iprot.readMessageBegin()
1456 if mtype == TMessageType.EXCEPTION:
1457 x = TApplicationException()
1459 iprot.readMessageEnd()
1463 iprot.readMessageEnd()
1464 if result.success
is not None:
1465 return result.success
1466 if result.e
is not None:
1468 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_tables_meta failed: unknown result")
1481 self._oprot.writeMessageBegin(
'get_table_details', TMessageType.CALL, self.
_seqid)
1483 args.session = session
1484 args.table_name = table_name
1486 self._oprot.writeMessageEnd()
1487 self._oprot.trans.flush()
1491 (fname, mtype, rseqid) = iprot.readMessageBegin()
1492 if mtype == TMessageType.EXCEPTION:
1493 x = TApplicationException()
1495 iprot.readMessageEnd()
1499 iprot.readMessageEnd()
1500 if result.success
is not None:
1501 return result.success
1502 if result.e
is not None:
1504 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_details failed: unknown result")
1518 self._oprot.writeMessageBegin(
'get_table_details_for_database', TMessageType.CALL, self.
_seqid)
1520 args.session = session
1521 args.table_name = table_name
1522 args.database_name = database_name
1524 self._oprot.writeMessageEnd()
1525 self._oprot.trans.flush()
1529 (fname, mtype, rseqid) = iprot.readMessageBegin()
1530 if mtype == TMessageType.EXCEPTION:
1531 x = TApplicationException()
1533 iprot.readMessageEnd()
1537 iprot.readMessageEnd()
1538 if result.success
is not None:
1539 return result.success
1540 if result.e
is not None:
1542 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_details_for_database failed: unknown result")
1549 - include_system_columns
1556 self._oprot.writeMessageBegin(
'get_internal_table_details', TMessageType.CALL, self.
_seqid)
1558 args.session = session
1559 args.table_name = table_name
1560 args.include_system_columns = include_system_columns
1562 self._oprot.writeMessageEnd()
1563 self._oprot.trans.flush()
1567 (fname, mtype, rseqid) = iprot.readMessageBegin()
1568 if mtype == TMessageType.EXCEPTION:
1569 x = TApplicationException()
1571 iprot.readMessageEnd()
1575 iprot.readMessageEnd()
1576 if result.success
is not None:
1577 return result.success
1578 if result.e
is not None:
1580 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_internal_table_details failed: unknown result")
1594 self._oprot.writeMessageBegin(
'get_internal_table_details_for_database', TMessageType.CALL, self.
_seqid)
1596 args.session = session
1597 args.table_name = table_name
1598 args.database_name = database_name
1600 self._oprot.writeMessageEnd()
1601 self._oprot.trans.flush()
1605 (fname, mtype, rseqid) = iprot.readMessageBegin()
1606 if mtype == TMessageType.EXCEPTION:
1607 x = TApplicationException()
1609 iprot.readMessageEnd()
1613 iprot.readMessageEnd()
1614 if result.success
is not None:
1615 return result.success
1616 if result.e
is not None:
1618 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_internal_table_details_for_database failed: unknown result")
1630 self._oprot.writeMessageBegin(
'get_users', TMessageType.CALL, self.
_seqid)
1632 args.session = session
1634 self._oprot.writeMessageEnd()
1635 self._oprot.trans.flush()
1639 (fname, mtype, rseqid) = iprot.readMessageBegin()
1640 if mtype == TMessageType.EXCEPTION:
1641 x = TApplicationException()
1643 iprot.readMessageEnd()
1647 iprot.readMessageEnd()
1648 if result.success
is not None:
1649 return result.success
1650 if result.e
is not None:
1652 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_users failed: unknown result")
1664 self._oprot.writeMessageBegin(
'get_databases', TMessageType.CALL, self.
_seqid)
1666 args.session = session
1668 self._oprot.writeMessageEnd()
1669 self._oprot.trans.flush()
1673 (fname, mtype, rseqid) = iprot.readMessageBegin()
1674 if mtype == TMessageType.EXCEPTION:
1675 x = TApplicationException()
1677 iprot.readMessageEnd()
1681 iprot.readMessageEnd()
1682 if result.success
is not None:
1683 return result.success
1684 if result.e
is not None:
1686 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_databases failed: unknown result")
1693 self._oprot.writeMessageBegin(
'get_version', TMessageType.CALL, self.
_seqid)
1696 self._oprot.writeMessageEnd()
1697 self._oprot.trans.flush()
1701 (fname, mtype, rseqid) = iprot.readMessageBegin()
1702 if mtype == TMessageType.EXCEPTION:
1703 x = TApplicationException()
1705 iprot.readMessageEnd()
1709 iprot.readMessageEnd()
1710 if result.success
is not None:
1711 return result.success
1712 if result.e
is not None:
1714 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_version failed: unknown result")
1726 self._oprot.writeMessageBegin(
'start_heap_profile', TMessageType.CALL, self.
_seqid)
1728 args.session = session
1730 self._oprot.writeMessageEnd()
1731 self._oprot.trans.flush()
1735 (fname, mtype, rseqid) = iprot.readMessageBegin()
1736 if mtype == TMessageType.EXCEPTION:
1737 x = TApplicationException()
1739 iprot.readMessageEnd()
1743 iprot.readMessageEnd()
1744 if result.e
is not None:
1758 self._oprot.writeMessageBegin(
'stop_heap_profile', TMessageType.CALL, self.
_seqid)
1760 args.session = session
1762 self._oprot.writeMessageEnd()
1763 self._oprot.trans.flush()
1767 (fname, mtype, rseqid) = iprot.readMessageBegin()
1768 if mtype == TMessageType.EXCEPTION:
1769 x = TApplicationException()
1771 iprot.readMessageEnd()
1775 iprot.readMessageEnd()
1776 if result.e
is not None:
1790 self._oprot.writeMessageBegin(
'get_heap_profile', TMessageType.CALL, self.
_seqid)
1792 args.session = session
1794 self._oprot.writeMessageEnd()
1795 self._oprot.trans.flush()
1799 (fname, mtype, rseqid) = iprot.readMessageBegin()
1800 if mtype == TMessageType.EXCEPTION:
1801 x = TApplicationException()
1803 iprot.readMessageEnd()
1807 iprot.readMessageEnd()
1808 if result.success
is not None:
1809 return result.success
1810 if result.e
is not None:
1812 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_heap_profile failed: unknown result")
1825 self._oprot.writeMessageBegin(
'get_memory', TMessageType.CALL, self.
_seqid)
1827 args.session = session
1828 args.memory_level = memory_level
1830 self._oprot.writeMessageEnd()
1831 self._oprot.trans.flush()
1835 (fname, mtype, rseqid) = iprot.readMessageBegin()
1836 if mtype == TMessageType.EXCEPTION:
1837 x = TApplicationException()
1839 iprot.readMessageEnd()
1843 iprot.readMessageEnd()
1844 if result.success
is not None:
1845 return result.success
1846 if result.e
is not None:
1848 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_memory failed: unknown result")
1860 self._oprot.writeMessageBegin(
'clear_cpu_memory', TMessageType.CALL, self.
_seqid)
1862 args.session = session
1864 self._oprot.writeMessageEnd()
1865 self._oprot.trans.flush()
1869 (fname, mtype, rseqid) = iprot.readMessageBegin()
1870 if mtype == TMessageType.EXCEPTION:
1871 x = TApplicationException()
1873 iprot.readMessageEnd()
1877 iprot.readMessageEnd()
1878 if result.e
is not None:
1892 self._oprot.writeMessageBegin(
'clear_gpu_memory', TMessageType.CALL, self.
_seqid)
1894 args.session = session
1896 self._oprot.writeMessageEnd()
1897 self._oprot.trans.flush()
1901 (fname, mtype, rseqid) = iprot.readMessageBegin()
1902 if mtype == TMessageType.EXCEPTION:
1903 x = TApplicationException()
1905 iprot.readMessageEnd()
1909 iprot.readMessageEnd()
1910 if result.e
is not None:
1914 def set_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
1921 - for_running_query_kernel
1924 self.
send_set_cur_session(parent_session, leaf_session, start_time_str, label, for_running_query_kernel)
1928 self._oprot.writeMessageBegin(
'set_cur_session', TMessageType.CALL, self.
_seqid)
1930 args.parent_session = parent_session
1931 args.leaf_session = leaf_session
1932 args.start_time_str = start_time_str
1934 args.for_running_query_kernel = for_running_query_kernel
1936 self._oprot.writeMessageEnd()
1937 self._oprot.trans.flush()
1941 (fname, mtype, rseqid) = iprot.readMessageBegin()
1942 if mtype == TMessageType.EXCEPTION:
1943 x = TApplicationException()
1945 iprot.readMessageEnd()
1949 iprot.readMessageEnd()
1950 if result.e
is not None:
1961 - for_running_query_kernel
1968 self._oprot.writeMessageBegin(
'invalidate_cur_session', TMessageType.CALL, self.
_seqid)
1970 args.parent_session = parent_session
1971 args.leaf_session = leaf_session
1972 args.start_time_str = start_time_str
1974 args.for_running_query_kernel = for_running_query_kernel
1976 self._oprot.writeMessageEnd()
1977 self._oprot.trans.flush()
1981 (fname, mtype, rseqid) = iprot.readMessageBegin()
1982 if mtype == TMessageType.EXCEPTION:
1983 x = TApplicationException()
1985 iprot.readMessageEnd()
1989 iprot.readMessageEnd()
1990 if result.e
is not None:
2007 self._oprot.writeMessageBegin(
'set_table_epoch', TMessageType.CALL, self.
_seqid)
2009 args.session = session
2011 args.table_id = table_id
2012 args.new_epoch = new_epoch
2014 self._oprot.writeMessageEnd()
2015 self._oprot.trans.flush()
2019 (fname, mtype, rseqid) = iprot.readMessageBegin()
2020 if mtype == TMessageType.EXCEPTION:
2021 x = TApplicationException()
2023 iprot.readMessageEnd()
2027 iprot.readMessageEnd()
2028 if result.e
is not None:
2044 self._oprot.writeMessageBegin(
'set_table_epoch_by_name', TMessageType.CALL, self.
_seqid)
2046 args.session = session
2047 args.table_name = table_name
2048 args.new_epoch = new_epoch
2050 self._oprot.writeMessageEnd()
2051 self._oprot.trans.flush()
2055 (fname, mtype, rseqid) = iprot.readMessageBegin()
2056 if mtype == TMessageType.EXCEPTION:
2057 x = TApplicationException()
2059 iprot.readMessageEnd()
2063 iprot.readMessageEnd()
2064 if result.e
is not None:
2080 self._oprot.writeMessageBegin(
'get_table_epoch', TMessageType.CALL, self.
_seqid)
2082 args.session = session
2084 args.table_id = table_id
2086 self._oprot.writeMessageEnd()
2087 self._oprot.trans.flush()
2091 (fname, mtype, rseqid) = iprot.readMessageBegin()
2092 if mtype == TMessageType.EXCEPTION:
2093 x = TApplicationException()
2095 iprot.readMessageEnd()
2099 iprot.readMessageEnd()
2100 if result.success
is not None:
2101 return result.success
2102 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_epoch failed: unknown result")
2115 self._oprot.writeMessageBegin(
'get_table_epoch_by_name', TMessageType.CALL, self.
_seqid)
2117 args.session = session
2118 args.table_name = table_name
2120 self._oprot.writeMessageEnd()
2121 self._oprot.trans.flush()
2125 (fname, mtype, rseqid) = iprot.readMessageBegin()
2126 if mtype == TMessageType.EXCEPTION:
2127 x = TApplicationException()
2129 iprot.readMessageEnd()
2133 iprot.readMessageEnd()
2134 if result.success
is not None:
2135 return result.success
2136 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_epoch_by_name failed: unknown result")
2150 self._oprot.writeMessageBegin(
'get_table_epochs', TMessageType.CALL, self.
_seqid)
2152 args.session = session
2154 args.table_id = table_id
2156 self._oprot.writeMessageEnd()
2157 self._oprot.trans.flush()
2161 (fname, mtype, rseqid) = iprot.readMessageBegin()
2162 if mtype == TMessageType.EXCEPTION:
2163 x = TApplicationException()
2165 iprot.readMessageEnd()
2169 iprot.readMessageEnd()
2170 if result.success
is not None:
2171 return result.success
2172 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_epochs failed: unknown result")
2186 self._oprot.writeMessageBegin(
'set_table_epochs', TMessageType.CALL, self.
_seqid)
2188 args.session = session
2190 args.table_epochs = table_epochs
2192 self._oprot.writeMessageEnd()
2193 self._oprot.trans.flush()
2197 (fname, mtype, rseqid) = iprot.readMessageBegin()
2198 if mtype == TMessageType.EXCEPTION:
2199 x = TApplicationException()
2201 iprot.readMessageEnd()
2205 iprot.readMessageEnd()
2218 self._oprot.writeMessageBegin(
'get_session_info', TMessageType.CALL, self.
_seqid)
2220 args.session = session
2222 self._oprot.writeMessageEnd()
2223 self._oprot.trans.flush()
2227 (fname, mtype, rseqid) = iprot.readMessageBegin()
2228 if mtype == TMessageType.EXCEPTION:
2229 x = TApplicationException()
2231 iprot.readMessageEnd()
2235 iprot.readMessageEnd()
2236 if result.success
is not None:
2237 return result.success
2238 if result.e
is not None:
2240 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_session_info failed: unknown result")
2252 self._oprot.writeMessageBegin(
'get_queries_info', TMessageType.CALL, self.
_seqid)
2254 args.session = session
2256 self._oprot.writeMessageEnd()
2257 self._oprot.trans.flush()
2261 (fname, mtype, rseqid) = iprot.readMessageBegin()
2262 if mtype == TMessageType.EXCEPTION:
2263 x = TApplicationException()
2265 iprot.readMessageEnd()
2269 iprot.readMessageEnd()
2270 if result.success
is not None:
2271 return result.success
2272 if result.e
is not None:
2274 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_queries_info failed: unknown result")
2287 self._oprot.writeMessageBegin(
'set_leaf_info', TMessageType.CALL, self.
_seqid)
2289 args.session = session
2290 args.leaf_info = leaf_info
2292 self._oprot.writeMessageEnd()
2293 self._oprot.trans.flush()
2297 (fname, mtype, rseqid) = iprot.readMessageBegin()
2298 if mtype == TMessageType.EXCEPTION:
2299 x = TApplicationException()
2301 iprot.readMessageEnd()
2305 iprot.readMessageEnd()
2306 if result.e
is not None:
2310 def sql_execute(self, session, query, column_format, nonce, first_n, at_most_n):
2321 self.
send_sql_execute(session, query, column_format, nonce, first_n, at_most_n)
2325 self._oprot.writeMessageBegin(
'sql_execute', TMessageType.CALL, self.
_seqid)
2327 args.session = session
2329 args.column_format = column_format
2331 args.first_n = first_n
2332 args.at_most_n = at_most_n
2334 self._oprot.writeMessageEnd()
2335 self._oprot.trans.flush()
2339 (fname, mtype, rseqid) = iprot.readMessageBegin()
2340 if mtype == TMessageType.EXCEPTION:
2341 x = TApplicationException()
2343 iprot.readMessageEnd()
2347 iprot.readMessageEnd()
2348 if result.success
is not None:
2349 return result.success
2350 if result.e
is not None:
2352 raise TApplicationException(TApplicationException.MISSING_RESULT,
"sql_execute failed: unknown result")
2354 def sql_execute_df(self, session, query, device_type, device_id, first_n, transport_method):
2365 self.
send_sql_execute_df(session, query, device_type, device_id, first_n, transport_method)
2369 self._oprot.writeMessageBegin(
'sql_execute_df', TMessageType.CALL, self.
_seqid)
2371 args.session = session
2373 args.device_type = device_type
2374 args.device_id = device_id
2375 args.first_n = first_n
2376 args.transport_method = transport_method
2378 self._oprot.writeMessageEnd()
2379 self._oprot.trans.flush()
2383 (fname, mtype, rseqid) = iprot.readMessageBegin()
2384 if mtype == TMessageType.EXCEPTION:
2385 x = TApplicationException()
2387 iprot.readMessageEnd()
2391 iprot.readMessageEnd()
2392 if result.success
is not None:
2393 return result.success
2394 if result.e
is not None:
2396 raise TApplicationException(TApplicationException.MISSING_RESULT,
"sql_execute_df failed: unknown result")
2411 self._oprot.writeMessageBegin(
'sql_execute_gdf', TMessageType.CALL, self.
_seqid)
2413 args.session = session
2415 args.device_id = device_id
2416 args.first_n = first_n
2418 self._oprot.writeMessageEnd()
2419 self._oprot.trans.flush()
2423 (fname, mtype, rseqid) = iprot.readMessageBegin()
2424 if mtype == TMessageType.EXCEPTION:
2425 x = TApplicationException()
2427 iprot.readMessageEnd()
2431 iprot.readMessageEnd()
2432 if result.success
is not None:
2433 return result.success
2434 if result.e
is not None:
2436 raise TApplicationException(TApplicationException.MISSING_RESULT,
"sql_execute_gdf failed: unknown result")
2451 self._oprot.writeMessageBegin(
'deallocate_df', TMessageType.CALL, self.
_seqid)
2453 args.session = session
2455 args.device_type = device_type
2456 args.device_id = device_id
2458 self._oprot.writeMessageEnd()
2459 self._oprot.trans.flush()
2463 (fname, mtype, rseqid) = iprot.readMessageBegin()
2464 if mtype == TMessageType.EXCEPTION:
2465 x = TApplicationException()
2467 iprot.readMessageEnd()
2471 iprot.readMessageEnd()
2472 if result.e
is not None:
2487 self._oprot.writeMessageBegin(
'interrupt', TMessageType.CALL, self.
_seqid)
2489 args.query_session = query_session
2490 args.interrupt_session = interrupt_session
2492 self._oprot.writeMessageEnd()
2493 self._oprot.trans.flush()
2497 (fname, mtype, rseqid) = iprot.readMessageBegin()
2498 if mtype == TMessageType.EXCEPTION:
2499 x = TApplicationException()
2501 iprot.readMessageEnd()
2505 iprot.readMessageEnd()
2506 if result.e
is not None:
2521 self._oprot.writeMessageBegin(
'sql_validate', TMessageType.CALL, self.
_seqid)
2523 args.session = session
2526 self._oprot.writeMessageEnd()
2527 self._oprot.trans.flush()
2531 (fname, mtype, rseqid) = iprot.readMessageBegin()
2532 if mtype == TMessageType.EXCEPTION:
2533 x = TApplicationException()
2535 iprot.readMessageEnd()
2539 iprot.readMessageEnd()
2540 if result.success
is not None:
2541 return result.success
2542 if result.e
is not None:
2544 raise TApplicationException(TApplicationException.MISSING_RESULT,
"sql_validate failed: unknown result")
2558 self._oprot.writeMessageBegin(
'get_completion_hints', TMessageType.CALL, self.
_seqid)
2560 args.session = session
2562 args.cursor = cursor
2564 self._oprot.writeMessageEnd()
2565 self._oprot.trans.flush()
2569 (fname, mtype, rseqid) = iprot.readMessageBegin()
2570 if mtype == TMessageType.EXCEPTION:
2571 x = TApplicationException()
2573 iprot.readMessageEnd()
2577 iprot.readMessageEnd()
2578 if result.success
is not None:
2579 return result.success
2580 if result.e
is not None:
2582 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_completion_hints failed: unknown result")
2595 self._oprot.writeMessageBegin(
'set_execution_mode', TMessageType.CALL, self.
_seqid)
2597 args.session = session
2600 self._oprot.writeMessageEnd()
2601 self._oprot.trans.flush()
2605 (fname, mtype, rseqid) = iprot.readMessageBegin()
2606 if mtype == TMessageType.EXCEPTION:
2607 x = TApplicationException()
2609 iprot.readMessageEnd()
2613 iprot.readMessageEnd()
2614 if result.e
is not None:
2618 def render_vega(self, session, widget_id, vega_json, compression_level, nonce):
2628 self.
send_render_vega(session, widget_id, vega_json, compression_level, nonce)
2632 self._oprot.writeMessageBegin(
'render_vega', TMessageType.CALL, self.
_seqid)
2634 args.session = session
2635 args.widget_id = widget_id
2636 args.vega_json = vega_json
2637 args.compression_level = compression_level
2640 self._oprot.writeMessageEnd()
2641 self._oprot.trans.flush()
2645 (fname, mtype, rseqid) = iprot.readMessageBegin()
2646 if mtype == TMessageType.EXCEPTION:
2647 x = TApplicationException()
2649 iprot.readMessageEnd()
2653 iprot.readMessageEnd()
2654 if result.success
is not None:
2655 return result.success
2656 if result.e
is not None:
2658 raise TApplicationException(TApplicationException.MISSING_RESULT,
"render_vega failed: unknown result")
2676 self._oprot.writeMessageBegin(
'get_result_row_for_pixel', TMessageType.CALL, self.
_seqid)
2678 args.session = session
2679 args.widget_id = widget_id
2681 args.table_col_names = table_col_names
2682 args.column_format = column_format
2683 args.pixelRadius = pixelRadius
2686 self._oprot.writeMessageEnd()
2687 self._oprot.trans.flush()
2691 (fname, mtype, rseqid) = iprot.readMessageBegin()
2692 if mtype == TMessageType.EXCEPTION:
2693 x = TApplicationException()
2695 iprot.readMessageEnd()
2699 iprot.readMessageEnd()
2700 if result.success
is not None:
2701 return result.success
2702 if result.e
is not None:
2704 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_result_row_for_pixel failed: unknown result")
2717 self._oprot.writeMessageBegin(
'create_custom_expression', TMessageType.CALL, self.
_seqid)
2719 args.session = session
2720 args.custom_expression = custom_expression
2722 self._oprot.writeMessageEnd()
2723 self._oprot.trans.flush()
2727 (fname, mtype, rseqid) = iprot.readMessageBegin()
2728 if mtype == TMessageType.EXCEPTION:
2729 x = TApplicationException()
2731 iprot.readMessageEnd()
2735 iprot.readMessageEnd()
2736 if result.success
is not None:
2737 return result.success
2738 if result.e
is not None:
2740 raise TApplicationException(TApplicationException.MISSING_RESULT,
"create_custom_expression failed: unknown result")
2752 self._oprot.writeMessageBegin(
'get_custom_expressions', TMessageType.CALL, self.
_seqid)
2754 args.session = session
2756 self._oprot.writeMessageEnd()
2757 self._oprot.trans.flush()
2761 (fname, mtype, rseqid) = iprot.readMessageBegin()
2762 if mtype == TMessageType.EXCEPTION:
2763 x = TApplicationException()
2765 iprot.readMessageEnd()
2769 iprot.readMessageEnd()
2770 if result.success
is not None:
2771 return result.success
2772 if result.e
is not None:
2774 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_custom_expressions failed: unknown result")
2788 self._oprot.writeMessageBegin(
'update_custom_expression', TMessageType.CALL, self.
_seqid)
2790 args.session = session
2792 args.expression_json = expression_json
2794 self._oprot.writeMessageEnd()
2795 self._oprot.trans.flush()
2799 (fname, mtype, rseqid) = iprot.readMessageBegin()
2800 if mtype == TMessageType.EXCEPTION:
2801 x = TApplicationException()
2803 iprot.readMessageEnd()
2807 iprot.readMessageEnd()
2808 if result.e
is not None:
2816 - custom_expression_ids
2824 self._oprot.writeMessageBegin(
'delete_custom_expressions', TMessageType.CALL, self.
_seqid)
2826 args.session = session
2827 args.custom_expression_ids = custom_expression_ids
2828 args.do_soft_delete = do_soft_delete
2830 self._oprot.writeMessageEnd()
2831 self._oprot.trans.flush()
2835 (fname, mtype, rseqid) = iprot.readMessageBegin()
2836 if mtype == TMessageType.EXCEPTION:
2837 x = TApplicationException()
2839 iprot.readMessageEnd()
2843 iprot.readMessageEnd()
2844 if result.e
is not None:
2859 self._oprot.writeMessageBegin(
'get_dashboard', TMessageType.CALL, self.
_seqid)
2861 args.session = session
2862 args.dashboard_id = dashboard_id
2864 self._oprot.writeMessageEnd()
2865 self._oprot.trans.flush()
2869 (fname, mtype, rseqid) = iprot.readMessageBegin()
2870 if mtype == TMessageType.EXCEPTION:
2871 x = TApplicationException()
2873 iprot.readMessageEnd()
2877 iprot.readMessageEnd()
2878 if result.success
is not None:
2879 return result.success
2880 if result.e
is not None:
2882 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_dashboard failed: unknown result")
2894 self._oprot.writeMessageBegin(
'get_dashboards', TMessageType.CALL, self.
_seqid)
2896 args.session = session
2898 self._oprot.writeMessageEnd()
2899 self._oprot.trans.flush()
2903 (fname, mtype, rseqid) = iprot.readMessageBegin()
2904 if mtype == TMessageType.EXCEPTION:
2905 x = TApplicationException()
2907 iprot.readMessageEnd()
2911 iprot.readMessageEnd()
2912 if result.success
is not None:
2913 return result.success
2914 if result.e
is not None:
2916 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_dashboards failed: unknown result")
2918 def create_dashboard(self, session, dashboard_name, dashboard_state, image_hash, dashboard_metadata):
2925 - dashboard_metadata
2928 self.
send_create_dashboard(session, dashboard_name, dashboard_state, image_hash, dashboard_metadata)
2932 self._oprot.writeMessageBegin(
'create_dashboard', TMessageType.CALL, self.
_seqid)
2934 args.session = session
2935 args.dashboard_name = dashboard_name
2936 args.dashboard_state = dashboard_state
2937 args.image_hash = image_hash
2938 args.dashboard_metadata = dashboard_metadata
2940 self._oprot.writeMessageEnd()
2941 self._oprot.trans.flush()
2945 (fname, mtype, rseqid) = iprot.readMessageBegin()
2946 if mtype == TMessageType.EXCEPTION:
2947 x = TApplicationException()
2949 iprot.readMessageEnd()
2953 iprot.readMessageEnd()
2954 if result.success
is not None:
2955 return result.success
2956 if result.e
is not None:
2958 raise TApplicationException(TApplicationException.MISSING_RESULT,
"create_dashboard failed: unknown result")
2960 def replace_dashboard(self, session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata):
2969 - dashboard_metadata
2972 self.
send_replace_dashboard(session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata)
2975 def send_replace_dashboard(self, session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata):
2976 self._oprot.writeMessageBegin(
'replace_dashboard', TMessageType.CALL, self.
_seqid)
2978 args.session = session
2979 args.dashboard_id = dashboard_id
2980 args.dashboard_name = dashboard_name
2981 args.dashboard_owner = dashboard_owner
2982 args.dashboard_state = dashboard_state
2983 args.image_hash = image_hash
2984 args.dashboard_metadata = dashboard_metadata
2986 self._oprot.writeMessageEnd()
2987 self._oprot.trans.flush()
2991 (fname, mtype, rseqid) = iprot.readMessageBegin()
2992 if mtype == TMessageType.EXCEPTION:
2993 x = TApplicationException()
2995 iprot.readMessageEnd()
2999 iprot.readMessageEnd()
3000 if result.e
is not None:
3015 self._oprot.writeMessageBegin(
'delete_dashboard', TMessageType.CALL, self.
_seqid)
3017 args.session = session
3018 args.dashboard_id = dashboard_id
3020 self._oprot.writeMessageEnd()
3021 self._oprot.trans.flush()
3025 (fname, mtype, rseqid) = iprot.readMessageBegin()
3026 if mtype == TMessageType.EXCEPTION:
3027 x = TApplicationException()
3029 iprot.readMessageEnd()
3033 iprot.readMessageEnd()
3034 if result.e
is not None:
3051 self._oprot.writeMessageBegin(
'share_dashboards', TMessageType.CALL, self.
_seqid)
3053 args.session = session
3054 args.dashboard_ids = dashboard_ids
3055 args.groups = groups
3056 args.permissions = permissions
3058 self._oprot.writeMessageEnd()
3059 self._oprot.trans.flush()
3063 (fname, mtype, rseqid) = iprot.readMessageBegin()
3064 if mtype == TMessageType.EXCEPTION:
3065 x = TApplicationException()
3067 iprot.readMessageEnd()
3071 iprot.readMessageEnd()
3072 if result.e
is not None:
3087 self._oprot.writeMessageBegin(
'delete_dashboards', TMessageType.CALL, self.
_seqid)
3089 args.session = session
3090 args.dashboard_ids = dashboard_ids
3092 self._oprot.writeMessageEnd()
3093 self._oprot.trans.flush()
3097 (fname, mtype, rseqid) = iprot.readMessageBegin()
3098 if mtype == TMessageType.EXCEPTION:
3099 x = TApplicationException()
3101 iprot.readMessageEnd()
3105 iprot.readMessageEnd()
3106 if result.e
is not None:
3110 def share_dashboard(self, session, dashboard_id, groups, objects, permissions, grant_role):
3125 self._oprot.writeMessageBegin(
'share_dashboard', TMessageType.CALL, self.
_seqid)
3127 args.session = session
3128 args.dashboard_id = dashboard_id
3129 args.groups = groups
3130 args.objects = objects
3131 args.permissions = permissions
3132 args.grant_role = grant_role
3134 self._oprot.writeMessageEnd()
3135 self._oprot.trans.flush()
3139 (fname, mtype, rseqid) = iprot.readMessageBegin()
3140 if mtype == TMessageType.EXCEPTION:
3141 x = TApplicationException()
3143 iprot.readMessageEnd()
3147 iprot.readMessageEnd()
3148 if result.e
is not None:
3166 self._oprot.writeMessageBegin(
'unshare_dashboard', TMessageType.CALL, self.
_seqid)
3168 args.session = session
3169 args.dashboard_id = dashboard_id
3170 args.groups = groups
3171 args.objects = objects
3172 args.permissions = permissions
3174 self._oprot.writeMessageEnd()
3175 self._oprot.trans.flush()
3179 (fname, mtype, rseqid) = iprot.readMessageBegin()
3180 if mtype == TMessageType.EXCEPTION:
3181 x = TApplicationException()
3183 iprot.readMessageEnd()
3187 iprot.readMessageEnd()
3188 if result.e
is not None:
3205 self._oprot.writeMessageBegin(
'unshare_dashboards', TMessageType.CALL, self.
_seqid)
3207 args.session = session
3208 args.dashboard_ids = dashboard_ids
3209 args.groups = groups
3210 args.permissions = permissions
3212 self._oprot.writeMessageEnd()
3213 self._oprot.trans.flush()
3217 (fname, mtype, rseqid) = iprot.readMessageBegin()
3218 if mtype == TMessageType.EXCEPTION:
3219 x = TApplicationException()
3221 iprot.readMessageEnd()
3225 iprot.readMessageEnd()
3226 if result.e
is not None:
3241 self._oprot.writeMessageBegin(
'get_dashboard_grantees', TMessageType.CALL, self.
_seqid)
3243 args.session = session
3244 args.dashboard_id = dashboard_id
3246 self._oprot.writeMessageEnd()
3247 self._oprot.trans.flush()
3251 (fname, mtype, rseqid) = iprot.readMessageBegin()
3252 if mtype == TMessageType.EXCEPTION:
3253 x = TApplicationException()
3255 iprot.readMessageEnd()
3259 iprot.readMessageEnd()
3260 if result.success
is not None:
3261 return result.success
3262 if result.e
is not None:
3264 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_dashboard_grantees failed: unknown result")
3277 self._oprot.writeMessageBegin(
'get_link_view', TMessageType.CALL, self.
_seqid)
3279 args.session = session
3282 self._oprot.writeMessageEnd()
3283 self._oprot.trans.flush()
3287 (fname, mtype, rseqid) = iprot.readMessageBegin()
3288 if mtype == TMessageType.EXCEPTION:
3289 x = TApplicationException()
3291 iprot.readMessageEnd()
3295 iprot.readMessageEnd()
3296 if result.success
is not None:
3297 return result.success
3298 if result.e
is not None:
3300 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_link_view failed: unknown result")
3314 self._oprot.writeMessageBegin(
'create_link', TMessageType.CALL, self.
_seqid)
3316 args.session = session
3317 args.view_state = view_state
3318 args.view_metadata = view_metadata
3320 self._oprot.writeMessageEnd()
3321 self._oprot.trans.flush()
3325 (fname, mtype, rseqid) = iprot.readMessageBegin()
3326 if mtype == TMessageType.EXCEPTION:
3327 x = TApplicationException()
3329 iprot.readMessageEnd()
3333 iprot.readMessageEnd()
3334 if result.success
is not None:
3335 return result.success
3336 if result.e
is not None:
3338 raise TApplicationException(TApplicationException.MISSING_RESULT,
"create_link failed: unknown result")
3353 self._oprot.writeMessageBegin(
'load_table_binary', TMessageType.CALL, self.
_seqid)
3355 args.session = session
3356 args.table_name = table_name
3358 args.column_names = column_names
3360 self._oprot.writeMessageEnd()
3361 self._oprot.trans.flush()
3365 (fname, mtype, rseqid) = iprot.readMessageBegin()
3366 if mtype == TMessageType.EXCEPTION:
3367 x = TApplicationException()
3369 iprot.readMessageEnd()
3373 iprot.readMessageEnd()
3374 if result.e
is not None:
3391 self._oprot.writeMessageBegin(
'load_table_binary_columnar', TMessageType.CALL, self.
_seqid)
3393 args.session = session
3394 args.table_name = table_name
3396 args.column_names = column_names
3398 self._oprot.writeMessageEnd()
3399 self._oprot.trans.flush()
3403 (fname, mtype, rseqid) = iprot.readMessageBegin()
3404 if mtype == TMessageType.EXCEPTION:
3405 x = TApplicationException()
3407 iprot.readMessageEnd()
3411 iprot.readMessageEnd()
3412 if result.e
is not None:
3429 self._oprot.writeMessageBegin(
'load_table_binary_arrow', TMessageType.CALL, self.
_seqid)
3431 args.session = session
3432 args.table_name = table_name
3433 args.arrow_stream = arrow_stream
3434 args.use_column_names = use_column_names
3436 self._oprot.writeMessageEnd()
3437 self._oprot.trans.flush()
3441 (fname, mtype, rseqid) = iprot.readMessageBegin()
3442 if mtype == TMessageType.EXCEPTION:
3443 x = TApplicationException()
3445 iprot.readMessageEnd()
3449 iprot.readMessageEnd()
3450 if result.e
is not None:
3467 self._oprot.writeMessageBegin(
'load_table', TMessageType.CALL, self.
_seqid)
3469 args.session = session
3470 args.table_name = table_name
3472 args.column_names = column_names
3474 self._oprot.writeMessageEnd()
3475 self._oprot.trans.flush()
3479 (fname, mtype, rseqid) = iprot.readMessageBegin()
3480 if mtype == TMessageType.EXCEPTION:
3481 x = TApplicationException()
3483 iprot.readMessageEnd()
3487 iprot.readMessageEnd()
3488 if result.e
is not None:
3504 self._oprot.writeMessageBegin(
'detect_column_types', TMessageType.CALL, self.
_seqid)
3506 args.session = session
3507 args.file_name = file_name
3508 args.copy_params = copy_params
3510 self._oprot.writeMessageEnd()
3511 self._oprot.trans.flush()
3515 (fname, mtype, rseqid) = iprot.readMessageBegin()
3516 if mtype == TMessageType.EXCEPTION:
3517 x = TApplicationException()
3519 iprot.readMessageEnd()
3523 iprot.readMessageEnd()
3524 if result.success
is not None:
3525 return result.success
3526 if result.e
is not None:
3528 raise TApplicationException(TApplicationException.MISSING_RESULT,
"detect_column_types failed: unknown result")
3543 self._oprot.writeMessageBegin(
'create_table', TMessageType.CALL, self.
_seqid)
3545 args.session = session
3546 args.table_name = table_name
3547 args.row_desc = row_desc
3548 args.create_params = create_params
3550 self._oprot.writeMessageEnd()
3551 self._oprot.trans.flush()
3555 (fname, mtype, rseqid) = iprot.readMessageBegin()
3556 if mtype == TMessageType.EXCEPTION:
3557 x = TApplicationException()
3559 iprot.readMessageEnd()
3563 iprot.readMessageEnd()
3564 if result.e
is not None:
3581 self._oprot.writeMessageBegin(
'import_table', TMessageType.CALL, self.
_seqid)
3583 args.session = session
3584 args.table_name = table_name
3585 args.file_name = file_name
3586 args.copy_params = copy_params
3588 self._oprot.writeMessageEnd()
3589 self._oprot.trans.flush()
3593 (fname, mtype, rseqid) = iprot.readMessageBegin()
3594 if mtype == TMessageType.EXCEPTION:
3595 x = TApplicationException()
3597 iprot.readMessageEnd()
3601 iprot.readMessageEnd()
3602 if result.e
is not None:
3606 def import_geo_table(self, session, table_name, file_name, copy_params, row_desc, create_params):
3621 self._oprot.writeMessageBegin(
'import_geo_table', TMessageType.CALL, self.
_seqid)
3623 args.session = session
3624 args.table_name = table_name
3625 args.file_name = file_name
3626 args.copy_params = copy_params
3627 args.row_desc = row_desc
3628 args.create_params = create_params
3630 self._oprot.writeMessageEnd()
3631 self._oprot.trans.flush()
3635 (fname, mtype, rseqid) = iprot.readMessageBegin()
3636 if mtype == TMessageType.EXCEPTION:
3637 x = TApplicationException()
3639 iprot.readMessageEnd()
3643 iprot.readMessageEnd()
3644 if result.e
is not None:
3659 self._oprot.writeMessageBegin(
'import_table_status', TMessageType.CALL, self.
_seqid)
3661 args.session = session
3662 args.import_id = import_id
3664 self._oprot.writeMessageEnd()
3665 self._oprot.trans.flush()
3669 (fname, mtype, rseqid) = iprot.readMessageBegin()
3670 if mtype == TMessageType.EXCEPTION:
3671 x = TApplicationException()
3673 iprot.readMessageEnd()
3677 iprot.readMessageEnd()
3678 if result.success
is not None:
3679 return result.success
3680 if result.e
is not None:
3682 raise TApplicationException(TApplicationException.MISSING_RESULT,
"import_table_status failed: unknown result")
3696 self._oprot.writeMessageBegin(
'get_first_geo_file_in_archive', TMessageType.CALL, self.
_seqid)
3698 args.session = session
3699 args.archive_path = archive_path
3700 args.copy_params = copy_params
3702 self._oprot.writeMessageEnd()
3703 self._oprot.trans.flush()
3707 (fname, mtype, rseqid) = iprot.readMessageBegin()
3708 if mtype == TMessageType.EXCEPTION:
3709 x = TApplicationException()
3711 iprot.readMessageEnd()
3715 iprot.readMessageEnd()
3716 if result.success
is not None:
3717 return result.success
3718 if result.e
is not None:
3720 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_first_geo_file_in_archive failed: unknown result")
3734 self._oprot.writeMessageBegin(
'get_all_files_in_archive', TMessageType.CALL, self.
_seqid)
3736 args.session = session
3737 args.archive_path = archive_path
3738 args.copy_params = copy_params
3740 self._oprot.writeMessageEnd()
3741 self._oprot.trans.flush()
3745 (fname, mtype, rseqid) = iprot.readMessageBegin()
3746 if mtype == TMessageType.EXCEPTION:
3747 x = TApplicationException()
3749 iprot.readMessageEnd()
3753 iprot.readMessageEnd()
3754 if result.success
is not None:
3755 return result.success
3756 if result.e
is not None:
3758 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_all_files_in_archive failed: unknown result")
3772 self._oprot.writeMessageBegin(
'get_layers_in_geo_file', TMessageType.CALL, self.
_seqid)
3774 args.session = session
3775 args.file_name = file_name
3776 args.copy_params = copy_params
3778 self._oprot.writeMessageEnd()
3779 self._oprot.trans.flush()
3783 (fname, mtype, rseqid) = iprot.readMessageBegin()
3784 if mtype == TMessageType.EXCEPTION:
3785 x = TApplicationException()
3787 iprot.readMessageEnd()
3791 iprot.readMessageEnd()
3792 if result.success
is not None:
3793 return result.success
3794 if result.e
is not None:
3796 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_layers_in_geo_file failed: unknown result")
3809 self._oprot.writeMessageBegin(
'query_get_outer_fragment_count', TMessageType.CALL, self.
_seqid)
3811 args.session = session
3814 self._oprot.writeMessageEnd()
3815 self._oprot.trans.flush()
3819 (fname, mtype, rseqid) = iprot.readMessageBegin()
3820 if mtype == TMessageType.EXCEPTION:
3821 x = TApplicationException()
3823 iprot.readMessageEnd()
3827 iprot.readMessageEnd()
3828 if result.success
is not None:
3829 return result.success
3830 if result.e
is not None:
3832 raise TApplicationException(TApplicationException.MISSING_RESULT,
"query_get_outer_fragment_count failed: unknown result")
3845 self._oprot.writeMessageBegin(
'check_table_consistency', TMessageType.CALL, self.
_seqid)
3847 args.session = session
3848 args.table_id = table_id
3850 self._oprot.writeMessageEnd()
3851 self._oprot.trans.flush()
3855 (fname, mtype, rseqid) = iprot.readMessageBegin()
3856 if mtype == TMessageType.EXCEPTION:
3857 x = TApplicationException()
3859 iprot.readMessageEnd()
3863 iprot.readMessageEnd()
3864 if result.success
is not None:
3865 return result.success
3866 if result.e
is not None:
3868 raise TApplicationException(TApplicationException.MISSING_RESULT,
"check_table_consistency failed: unknown result")
3870 def start_query(self, leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices):
3878 - outer_fragment_indices
3881 self.
send_start_query(leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices)
3884 def send_start_query(self, leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices):
3885 self._oprot.writeMessageBegin(
'start_query', TMessageType.CALL, self.
_seqid)
3887 args.leaf_session = leaf_session
3888 args.parent_session = parent_session
3889 args.query_ra = query_ra
3890 args.start_time_str = start_time_str
3891 args.just_explain = just_explain
3892 args.outer_fragment_indices = outer_fragment_indices
3894 self._oprot.writeMessageEnd()
3895 self._oprot.trans.flush()
3899 (fname, mtype, rseqid) = iprot.readMessageBegin()
3900 if mtype == TMessageType.EXCEPTION:
3901 x = TApplicationException()
3903 iprot.readMessageEnd()
3907 iprot.readMessageEnd()
3908 if result.success
is not None:
3909 return result.success
3910 if result.e
is not None:
3912 raise TApplicationException(TApplicationException.MISSING_RESULT,
"start_query failed: unknown result")
3926 self._oprot.writeMessageBegin(
'execute_query_step', TMessageType.CALL, self.
_seqid)
3928 args.pending_query = pending_query
3929 args.subquery_id = subquery_id
3930 args.start_time_str = start_time_str
3932 self._oprot.writeMessageEnd()
3933 self._oprot.trans.flush()
3937 (fname, mtype, rseqid) = iprot.readMessageBegin()
3938 if mtype == TMessageType.EXCEPTION:
3939 x = TApplicationException()
3941 iprot.readMessageEnd()
3945 iprot.readMessageEnd()
3946 if result.success
is not None:
3947 return result.success
3948 if result.e
is not None:
3950 raise TApplicationException(TApplicationException.MISSING_RESULT,
"execute_query_step failed: unknown result")
3959 - is_final_subquery_result
3966 self._oprot.writeMessageBegin(
'broadcast_serialized_rows', TMessageType.CALL, self.
_seqid)
3968 args.serialized_rows = serialized_rows
3969 args.row_desc = row_desc
3970 args.query_id = query_id
3971 args.subquery_id = subquery_id
3972 args.is_final_subquery_result = is_final_subquery_result
3974 self._oprot.writeMessageEnd()
3975 self._oprot.trans.flush()
3979 (fname, mtype, rseqid) = iprot.readMessageBegin()
3980 if mtype == TMessageType.EXCEPTION:
3981 x = TApplicationException()
3983 iprot.readMessageEnd()
3987 iprot.readMessageEnd()
3988 if result.e
is not None:
4005 self._oprot.writeMessageBegin(
'start_render_query', TMessageType.CALL, self.
_seqid)
4007 args.session = session
4008 args.widget_id = widget_id
4009 args.node_idx = node_idx
4010 args.vega_json = vega_json
4012 self._oprot.writeMessageEnd()
4013 self._oprot.trans.flush()
4017 (fname, mtype, rseqid) = iprot.readMessageBegin()
4018 if mtype == TMessageType.EXCEPTION:
4019 x = TApplicationException()
4021 iprot.readMessageEnd()
4025 iprot.readMessageEnd()
4026 if result.success
is not None:
4027 return result.success
4028 if result.e
is not None:
4030 raise TApplicationException(TApplicationException.MISSING_RESULT,
"start_render_query failed: unknown result")
4043 self._oprot.writeMessageBegin(
'execute_next_render_step', TMessageType.CALL, self.
_seqid)
4045 args.pending_render = pending_render
4046 args.merged_data = merged_data
4048 self._oprot.writeMessageEnd()
4049 self._oprot.trans.flush()
4053 (fname, mtype, rseqid) = iprot.readMessageBegin()
4054 if mtype == TMessageType.EXCEPTION:
4055 x = TApplicationException()
4057 iprot.readMessageEnd()
4061 iprot.readMessageEnd()
4062 if result.success
is not None:
4063 return result.success
4064 if result.e
is not None:
4066 raise TApplicationException(TApplicationException.MISSING_RESULT,
"execute_next_render_step failed: unknown result")
4079 self._oprot.writeMessageBegin(
'insert_data', TMessageType.CALL, self.
_seqid)
4081 args.session = session
4082 args.insert_data = insert_data
4084 self._oprot.writeMessageEnd()
4085 self._oprot.trans.flush()
4089 (fname, mtype, rseqid) = iprot.readMessageBegin()
4090 if mtype == TMessageType.EXCEPTION:
4091 x = TApplicationException()
4093 iprot.readMessageEnd()
4097 iprot.readMessageEnd()
4098 if result.e
is not None:
4113 self._oprot.writeMessageBegin(
'insert_chunks', TMessageType.CALL, self.
_seqid)
4115 args.session = session
4116 args.insert_chunks = insert_chunks
4118 self._oprot.writeMessageEnd()
4119 self._oprot.trans.flush()
4123 (fname, mtype, rseqid) = iprot.readMessageBegin()
4124 if mtype == TMessageType.EXCEPTION:
4125 x = TApplicationException()
4127 iprot.readMessageEnd()
4131 iprot.readMessageEnd()
4132 if result.e
is not None:
4147 self._oprot.writeMessageBegin(
'checkpoint', TMessageType.CALL, self.
_seqid)
4149 args.session = session
4150 args.table_id = table_id
4152 self._oprot.writeMessageEnd()
4153 self._oprot.trans.flush()
4157 (fname, mtype, rseqid) = iprot.readMessageBegin()
4158 if mtype == TMessageType.EXCEPTION:
4159 x = TApplicationException()
4161 iprot.readMessageEnd()
4165 iprot.readMessageEnd()
4166 if result.e
is not None:
4180 self._oprot.writeMessageBegin(
'get_roles', TMessageType.CALL, self.
_seqid)
4182 args.session = session
4184 self._oprot.writeMessageEnd()
4185 self._oprot.trans.flush()
4189 (fname, mtype, rseqid) = iprot.readMessageBegin()
4190 if mtype == TMessageType.EXCEPTION:
4191 x = TApplicationException()
4193 iprot.readMessageEnd()
4197 iprot.readMessageEnd()
4198 if result.success
is not None:
4199 return result.success
4200 if result.e
is not None:
4202 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_roles failed: unknown result")
4215 self._oprot.writeMessageBegin(
'get_db_objects_for_grantee', TMessageType.CALL, self.
_seqid)
4217 args.session = session
4218 args.roleName = roleName
4220 self._oprot.writeMessageEnd()
4221 self._oprot.trans.flush()
4225 (fname, mtype, rseqid) = iprot.readMessageBegin()
4226 if mtype == TMessageType.EXCEPTION:
4227 x = TApplicationException()
4229 iprot.readMessageEnd()
4233 iprot.readMessageEnd()
4234 if result.success
is not None:
4235 return result.success
4236 if result.e
is not None:
4238 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_db_objects_for_grantee failed: unknown result")
4252 self._oprot.writeMessageBegin(
'get_db_object_privs', TMessageType.CALL, self.
_seqid)
4254 args.session = session
4255 args.objectName = objectName
4258 self._oprot.writeMessageEnd()
4259 self._oprot.trans.flush()
4263 (fname, mtype, rseqid) = iprot.readMessageBegin()
4264 if mtype == TMessageType.EXCEPTION:
4265 x = TApplicationException()
4267 iprot.readMessageEnd()
4271 iprot.readMessageEnd()
4272 if result.success
is not None:
4273 return result.success
4274 if result.e
is not None:
4276 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_db_object_privs failed: unknown result")
4289 self._oprot.writeMessageBegin(
'get_all_roles_for_user', TMessageType.CALL, self.
_seqid)
4291 args.session = session
4292 args.userName = userName
4294 self._oprot.writeMessageEnd()
4295 self._oprot.trans.flush()
4299 (fname, mtype, rseqid) = iprot.readMessageBegin()
4300 if mtype == TMessageType.EXCEPTION:
4301 x = TApplicationException()
4303 iprot.readMessageEnd()
4307 iprot.readMessageEnd()
4308 if result.success
is not None:
4309 return result.success
4310 if result.e
is not None:
4312 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_all_roles_for_user failed: unknown result")
4325 self._oprot.writeMessageBegin(
'get_all_effective_roles_for_user', TMessageType.CALL, self.
_seqid)
4327 args.session = session
4328 args.userName = userName
4330 self._oprot.writeMessageEnd()
4331 self._oprot.trans.flush()
4335 (fname, mtype, rseqid) = iprot.readMessageBegin()
4336 if mtype == TMessageType.EXCEPTION:
4337 x = TApplicationException()
4339 iprot.readMessageEnd()
4343 iprot.readMessageEnd()
4344 if result.success
is not None:
4345 return result.success
4346 if result.e
is not None:
4348 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_all_effective_roles_for_user failed: unknown result")
4362 self._oprot.writeMessageBegin(
'has_role', TMessageType.CALL, self.
_seqid)
4364 args.session = session
4365 args.granteeName = granteeName
4366 args.roleName = roleName
4368 self._oprot.writeMessageEnd()
4369 self._oprot.trans.flush()
4373 (fname, mtype, rseqid) = iprot.readMessageBegin()
4374 if mtype == TMessageType.EXCEPTION:
4375 x = TApplicationException()
4377 iprot.readMessageEnd()
4381 iprot.readMessageEnd()
4382 if result.success
is not None:
4383 return result.success
4384 if result.e
is not None:
4386 raise TApplicationException(TApplicationException.MISSING_RESULT,
"has_role failed: unknown result")
4402 self._oprot.writeMessageBegin(
'has_object_privilege', TMessageType.CALL, self.
_seqid)
4404 args.session = session
4405 args.granteeName = granteeName
4406 args.ObjectName = ObjectName
4407 args.objectType = objectType
4408 args.permissions = permissions
4410 self._oprot.writeMessageEnd()
4411 self._oprot.trans.flush()
4415 (fname, mtype, rseqid) = iprot.readMessageBegin()
4416 if mtype == TMessageType.EXCEPTION:
4417 x = TApplicationException()
4419 iprot.readMessageEnd()
4423 iprot.readMessageEnd()
4424 if result.success
is not None:
4425 return result.success
4426 if result.e
is not None:
4428 raise TApplicationException(TApplicationException.MISSING_RESULT,
"has_object_privilege failed: unknown result")
4442 self._oprot.writeMessageBegin(
'set_license_key', TMessageType.CALL, self.
_seqid)
4444 args.session = session
4448 self._oprot.writeMessageEnd()
4449 self._oprot.trans.flush()
4453 (fname, mtype, rseqid) = iprot.readMessageBegin()
4454 if mtype == TMessageType.EXCEPTION:
4455 x = TApplicationException()
4457 iprot.readMessageEnd()
4461 iprot.readMessageEnd()
4462 if result.success
is not None:
4463 return result.success
4464 if result.e
is not None:
4466 raise TApplicationException(TApplicationException.MISSING_RESULT,
"set_license_key failed: unknown result")
4479 self._oprot.writeMessageBegin(
'get_license_claims', TMessageType.CALL, self.
_seqid)
4481 args.session = session
4484 self._oprot.writeMessageEnd()
4485 self._oprot.trans.flush()
4489 (fname, mtype, rseqid) = iprot.readMessageBegin()
4490 if mtype == TMessageType.EXCEPTION:
4491 x = TApplicationException()
4493 iprot.readMessageEnd()
4497 iprot.readMessageEnd()
4498 if result.success
is not None:
4499 return result.success
4500 if result.e
is not None:
4502 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_license_claims failed: unknown result")
4514 self._oprot.writeMessageBegin(
'get_device_parameters', TMessageType.CALL, self.
_seqid)
4516 args.session = session
4518 self._oprot.writeMessageEnd()
4519 self._oprot.trans.flush()
4523 (fname, mtype, rseqid) = iprot.readMessageBegin()
4524 if mtype == TMessageType.EXCEPTION:
4525 x = TApplicationException()
4527 iprot.readMessageEnd()
4531 iprot.readMessageEnd()
4532 if result.success
is not None:
4533 return result.success
4534 if result.e
is not None:
4536 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_device_parameters failed: unknown result")
4551 self._oprot.writeMessageBegin(
'register_runtime_extension_functions', TMessageType.CALL, self.
_seqid)
4553 args.session = session
4556 args.device_ir_map = device_ir_map
4558 self._oprot.writeMessageEnd()
4559 self._oprot.trans.flush()
4563 (fname, mtype, rseqid) = iprot.readMessageBegin()
4564 if mtype == TMessageType.EXCEPTION:
4565 x = TApplicationException()
4567 iprot.readMessageEnd()
4571 iprot.readMessageEnd()
4572 if result.e
is not None:
4586 self._oprot.writeMessageBegin(
'get_table_function_names', TMessageType.CALL, self.
_seqid)
4588 args.session = session
4590 self._oprot.writeMessageEnd()
4591 self._oprot.trans.flush()
4595 (fname, mtype, rseqid) = iprot.readMessageBegin()
4596 if mtype == TMessageType.EXCEPTION:
4597 x = TApplicationException()
4599 iprot.readMessageEnd()
4603 iprot.readMessageEnd()
4604 if result.success
is not None:
4605 return result.success
4606 if result.e
is not None:
4608 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_function_names failed: unknown result")
4620 self._oprot.writeMessageBegin(
'get_runtime_table_function_names', TMessageType.CALL, self.
_seqid)
4622 args.session = session
4624 self._oprot.writeMessageEnd()
4625 self._oprot.trans.flush()
4629 (fname, mtype, rseqid) = iprot.readMessageBegin()
4630 if mtype == TMessageType.EXCEPTION:
4631 x = TApplicationException()
4633 iprot.readMessageEnd()
4637 iprot.readMessageEnd()
4638 if result.success
is not None:
4639 return result.success
4640 if result.e
is not None:
4642 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_runtime_table_function_names failed: unknown result")
4655 self._oprot.writeMessageBegin(
'get_table_function_details', TMessageType.CALL, self.
_seqid)
4657 args.session = session
4658 args.udtf_names = udtf_names
4660 self._oprot.writeMessageEnd()
4661 self._oprot.trans.flush()
4665 (fname, mtype, rseqid) = iprot.readMessageBegin()
4666 if mtype == TMessageType.EXCEPTION:
4667 x = TApplicationException()
4669 iprot.readMessageEnd()
4673 iprot.readMessageEnd()
4674 if result.success
is not None:
4675 return result.success
4676 if result.e
is not None:
4678 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_function_details failed: unknown result")
4690 self._oprot.writeMessageBegin(
'get_function_names', TMessageType.CALL, self.
_seqid)
4692 args.session = session
4694 self._oprot.writeMessageEnd()
4695 self._oprot.trans.flush()
4699 (fname, mtype, rseqid) = iprot.readMessageBegin()
4700 if mtype == TMessageType.EXCEPTION:
4701 x = TApplicationException()
4703 iprot.readMessageEnd()
4707 iprot.readMessageEnd()
4708 if result.success
is not None:
4709 return result.success
4710 if result.e
is not None:
4712 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_function_names failed: unknown result")
4724 self._oprot.writeMessageBegin(
'get_runtime_function_names', TMessageType.CALL, self.
_seqid)
4726 args.session = session
4728 self._oprot.writeMessageEnd()
4729 self._oprot.trans.flush()
4733 (fname, mtype, rseqid) = iprot.readMessageBegin()
4734 if mtype == TMessageType.EXCEPTION:
4735 x = TApplicationException()
4737 iprot.readMessageEnd()
4741 iprot.readMessageEnd()
4742 if result.success
is not None:
4743 return result.success
4744 if result.e
is not None:
4746 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_runtime_function_names failed: unknown result")
4759 self._oprot.writeMessageBegin(
'get_function_details', TMessageType.CALL, self.
_seqid)
4761 args.session = session
4762 args.udf_names = udf_names
4764 self._oprot.writeMessageEnd()
4765 self._oprot.trans.flush()
4769 (fname, mtype, rseqid) = iprot.readMessageBegin()
4770 if mtype == TMessageType.EXCEPTION:
4771 x = TApplicationException()
4773 iprot.readMessageEnd()
4777 iprot.readMessageEnd()
4778 if result.success
is not None:
4779 return result.success
4780 if result.e
is not None:
4782 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_function_details failed: unknown result")
4789 self.
_processMap[
"connect"] = Processor.process_connect
4790 self.
_processMap[
"krb5_connect"] = Processor.process_krb5_connect
4791 self.
_processMap[
"disconnect"] = Processor.process_disconnect
4792 self.
_processMap[
"switch_database"] = Processor.process_switch_database
4793 self.
_processMap[
"clone_session"] = Processor.process_clone_session
4794 self.
_processMap[
"get_server_status"] = Processor.process_get_server_status
4795 self.
_processMap[
"get_status"] = Processor.process_get_status
4796 self.
_processMap[
"get_hardware_info"] = Processor.process_get_hardware_info
4797 self.
_processMap[
"get_tables"] = Processor.process_get_tables
4798 self.
_processMap[
"get_tables_for_database"] = Processor.process_get_tables_for_database
4799 self.
_processMap[
"get_physical_tables"] = Processor.process_get_physical_tables
4800 self.
_processMap[
"get_views"] = Processor.process_get_views
4801 self.
_processMap[
"get_tables_meta"] = Processor.process_get_tables_meta
4802 self.
_processMap[
"get_table_details"] = Processor.process_get_table_details
4803 self.
_processMap[
"get_table_details_for_database"] = Processor.process_get_table_details_for_database
4804 self.
_processMap[
"get_internal_table_details"] = Processor.process_get_internal_table_details
4805 self.
_processMap[
"get_internal_table_details_for_database"] = Processor.process_get_internal_table_details_for_database
4806 self.
_processMap[
"get_users"] = Processor.process_get_users
4807 self.
_processMap[
"get_databases"] = Processor.process_get_databases
4808 self.
_processMap[
"get_version"] = Processor.process_get_version
4809 self.
_processMap[
"start_heap_profile"] = Processor.process_start_heap_profile
4810 self.
_processMap[
"stop_heap_profile"] = Processor.process_stop_heap_profile
4811 self.
_processMap[
"get_heap_profile"] = Processor.process_get_heap_profile
4812 self.
_processMap[
"get_memory"] = Processor.process_get_memory
4813 self.
_processMap[
"clear_cpu_memory"] = Processor.process_clear_cpu_memory
4814 self.
_processMap[
"clear_gpu_memory"] = Processor.process_clear_gpu_memory
4815 self.
_processMap[
"set_cur_session"] = Processor.process_set_cur_session
4816 self.
_processMap[
"invalidate_cur_session"] = Processor.process_invalidate_cur_session
4817 self.
_processMap[
"set_table_epoch"] = Processor.process_set_table_epoch
4818 self.
_processMap[
"set_table_epoch_by_name"] = Processor.process_set_table_epoch_by_name
4819 self.
_processMap[
"get_table_epoch"] = Processor.process_get_table_epoch
4820 self.
_processMap[
"get_table_epoch_by_name"] = Processor.process_get_table_epoch_by_name
4821 self.
_processMap[
"get_table_epochs"] = Processor.process_get_table_epochs
4822 self.
_processMap[
"set_table_epochs"] = Processor.process_set_table_epochs
4823 self.
_processMap[
"get_session_info"] = Processor.process_get_session_info
4824 self.
_processMap[
"get_queries_info"] = Processor.process_get_queries_info
4825 self.
_processMap[
"set_leaf_info"] = Processor.process_set_leaf_info
4826 self.
_processMap[
"sql_execute"] = Processor.process_sql_execute
4827 self.
_processMap[
"sql_execute_df"] = Processor.process_sql_execute_df
4828 self.
_processMap[
"sql_execute_gdf"] = Processor.process_sql_execute_gdf
4829 self.
_processMap[
"deallocate_df"] = Processor.process_deallocate_df
4830 self.
_processMap[
"interrupt"] = Processor.process_interrupt
4831 self.
_processMap[
"sql_validate"] = Processor.process_sql_validate
4832 self.
_processMap[
"get_completion_hints"] = Processor.process_get_completion_hints
4833 self.
_processMap[
"set_execution_mode"] = Processor.process_set_execution_mode
4834 self.
_processMap[
"render_vega"] = Processor.process_render_vega
4835 self.
_processMap[
"get_result_row_for_pixel"] = Processor.process_get_result_row_for_pixel
4836 self.
_processMap[
"create_custom_expression"] = Processor.process_create_custom_expression
4837 self.
_processMap[
"get_custom_expressions"] = Processor.process_get_custom_expressions
4838 self.
_processMap[
"update_custom_expression"] = Processor.process_update_custom_expression
4839 self.
_processMap[
"delete_custom_expressions"] = Processor.process_delete_custom_expressions
4840 self.
_processMap[
"get_dashboard"] = Processor.process_get_dashboard
4841 self.
_processMap[
"get_dashboards"] = Processor.process_get_dashboards
4842 self.
_processMap[
"create_dashboard"] = Processor.process_create_dashboard
4843 self.
_processMap[
"replace_dashboard"] = Processor.process_replace_dashboard
4844 self.
_processMap[
"delete_dashboard"] = Processor.process_delete_dashboard
4845 self.
_processMap[
"share_dashboards"] = Processor.process_share_dashboards
4846 self.
_processMap[
"delete_dashboards"] = Processor.process_delete_dashboards
4847 self.
_processMap[
"share_dashboard"] = Processor.process_share_dashboard
4848 self.
_processMap[
"unshare_dashboard"] = Processor.process_unshare_dashboard
4849 self.
_processMap[
"unshare_dashboards"] = Processor.process_unshare_dashboards
4850 self.
_processMap[
"get_dashboard_grantees"] = Processor.process_get_dashboard_grantees
4851 self.
_processMap[
"get_link_view"] = Processor.process_get_link_view
4852 self.
_processMap[
"create_link"] = Processor.process_create_link
4853 self.
_processMap[
"load_table_binary"] = Processor.process_load_table_binary
4854 self.
_processMap[
"load_table_binary_columnar"] = Processor.process_load_table_binary_columnar
4855 self.
_processMap[
"load_table_binary_arrow"] = Processor.process_load_table_binary_arrow
4856 self.
_processMap[
"load_table"] = Processor.process_load_table
4857 self.
_processMap[
"detect_column_types"] = Processor.process_detect_column_types
4858 self.
_processMap[
"create_table"] = Processor.process_create_table
4859 self.
_processMap[
"import_table"] = Processor.process_import_table
4860 self.
_processMap[
"import_geo_table"] = Processor.process_import_geo_table
4861 self.
_processMap[
"import_table_status"] = Processor.process_import_table_status
4862 self.
_processMap[
"get_first_geo_file_in_archive"] = Processor.process_get_first_geo_file_in_archive
4863 self.
_processMap[
"get_all_files_in_archive"] = Processor.process_get_all_files_in_archive
4864 self.
_processMap[
"get_layers_in_geo_file"] = Processor.process_get_layers_in_geo_file
4865 self.
_processMap[
"query_get_outer_fragment_count"] = Processor.process_query_get_outer_fragment_count
4866 self.
_processMap[
"check_table_consistency"] = Processor.process_check_table_consistency
4867 self.
_processMap[
"start_query"] = Processor.process_start_query
4868 self.
_processMap[
"execute_query_step"] = Processor.process_execute_query_step
4869 self.
_processMap[
"broadcast_serialized_rows"] = Processor.process_broadcast_serialized_rows
4870 self.
_processMap[
"start_render_query"] = Processor.process_start_render_query
4871 self.
_processMap[
"execute_next_render_step"] = Processor.process_execute_next_render_step
4872 self.
_processMap[
"insert_data"] = Processor.process_insert_data
4873 self.
_processMap[
"insert_chunks"] = Processor.process_insert_chunks
4874 self.
_processMap[
"checkpoint"] = Processor.process_checkpoint
4875 self.
_processMap[
"get_roles"] = Processor.process_get_roles
4876 self.
_processMap[
"get_db_objects_for_grantee"] = Processor.process_get_db_objects_for_grantee
4877 self.
_processMap[
"get_db_object_privs"] = Processor.process_get_db_object_privs
4878 self.
_processMap[
"get_all_roles_for_user"] = Processor.process_get_all_roles_for_user
4879 self.
_processMap[
"get_all_effective_roles_for_user"] = Processor.process_get_all_effective_roles_for_user
4880 self.
_processMap[
"has_role"] = Processor.process_has_role
4881 self.
_processMap[
"has_object_privilege"] = Processor.process_has_object_privilege
4882 self.
_processMap[
"set_license_key"] = Processor.process_set_license_key
4883 self.
_processMap[
"get_license_claims"] = Processor.process_get_license_claims
4884 self.
_processMap[
"get_device_parameters"] = Processor.process_get_device_parameters
4885 self.
_processMap[
"register_runtime_extension_functions"] = Processor.process_register_runtime_extension_functions
4886 self.
_processMap[
"get_table_function_names"] = Processor.process_get_table_function_names
4887 self.
_processMap[
"get_runtime_table_function_names"] = Processor.process_get_runtime_table_function_names
4888 self.
_processMap[
"get_table_function_details"] = Processor.process_get_table_function_details
4889 self.
_processMap[
"get_function_names"] = Processor.process_get_function_names
4890 self.
_processMap[
"get_runtime_function_names"] = Processor.process_get_runtime_function_names
4891 self.
_processMap[
"get_function_details"] = Processor.process_get_function_details
4898 (name, type, seqid) = iprot.readMessageBegin()
4902 iprot.skip(TType.STRUCT)
4903 iprot.readMessageEnd()
4904 x = TApplicationException(TApplicationException.UNKNOWN_METHOD,
'Unknown function %s' % (name))
4905 oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
4907 oprot.writeMessageEnd()
4917 iprot.readMessageEnd()
4920 result.success = self._handler.connect(args.user, args.passwd, args.dbname)
4921 msg_type = TMessageType.REPLY
4922 except TTransport.TTransportException:
4924 except TDBException
as e:
4925 msg_type = TMessageType.REPLY
4927 except TApplicationException
as ex:
4928 logging.exception(
'TApplication exception in handler')
4929 msg_type = TMessageType.EXCEPTION
4932 logging.exception(
'Unexpected exception in handler')
4933 msg_type = TMessageType.EXCEPTION
4934 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
4935 oprot.writeMessageBegin(
"connect", msg_type, seqid)
4937 oprot.writeMessageEnd()
4943 iprot.readMessageEnd()
4946 result.success = self._handler.krb5_connect(args.inputToken, args.dbname)
4947 msg_type = TMessageType.REPLY
4948 except TTransport.TTransportException:
4950 except TDBException
as e:
4951 msg_type = TMessageType.REPLY
4953 except TApplicationException
as ex:
4954 logging.exception(
'TApplication exception in handler')
4955 msg_type = TMessageType.EXCEPTION
4958 logging.exception(
'Unexpected exception in handler')
4959 msg_type = TMessageType.EXCEPTION
4960 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
4961 oprot.writeMessageBegin(
"krb5_connect", msg_type, seqid)
4963 oprot.writeMessageEnd()
4969 iprot.readMessageEnd()
4972 self._handler.disconnect(args.session)
4973 msg_type = TMessageType.REPLY
4974 except TTransport.TTransportException:
4976 except TDBException
as e:
4977 msg_type = TMessageType.REPLY
4979 except TApplicationException
as ex:
4980 logging.exception(
'TApplication exception in handler')
4981 msg_type = TMessageType.EXCEPTION
4984 logging.exception(
'Unexpected exception in handler')
4985 msg_type = TMessageType.EXCEPTION
4986 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
4987 oprot.writeMessageBegin(
"disconnect", msg_type, seqid)
4989 oprot.writeMessageEnd()
4995 iprot.readMessageEnd()
4998 self._handler.switch_database(args.session, args.dbname)
4999 msg_type = TMessageType.REPLY
5000 except TTransport.TTransportException:
5002 except TDBException
as e:
5003 msg_type = TMessageType.REPLY
5005 except TApplicationException
as ex:
5006 logging.exception(
'TApplication exception in handler')
5007 msg_type = TMessageType.EXCEPTION
5010 logging.exception(
'Unexpected exception in handler')
5011 msg_type = TMessageType.EXCEPTION
5012 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5013 oprot.writeMessageBegin(
"switch_database", msg_type, seqid)
5015 oprot.writeMessageEnd()
5021 iprot.readMessageEnd()
5024 result.success = self._handler.clone_session(args.session)
5025 msg_type = TMessageType.REPLY
5026 except TTransport.TTransportException:
5028 except TDBException
as e:
5029 msg_type = TMessageType.REPLY
5031 except TApplicationException
as ex:
5032 logging.exception(
'TApplication exception in handler')
5033 msg_type = TMessageType.EXCEPTION
5036 logging.exception(
'Unexpected exception in handler')
5037 msg_type = TMessageType.EXCEPTION
5038 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5039 oprot.writeMessageBegin(
"clone_session", msg_type, seqid)
5041 oprot.writeMessageEnd()
5047 iprot.readMessageEnd()
5050 result.success = self._handler.get_server_status(args.session)
5051 msg_type = TMessageType.REPLY
5052 except TTransport.TTransportException:
5054 except TDBException
as e:
5055 msg_type = TMessageType.REPLY
5057 except TApplicationException
as ex:
5058 logging.exception(
'TApplication exception in handler')
5059 msg_type = TMessageType.EXCEPTION
5062 logging.exception(
'Unexpected exception in handler')
5063 msg_type = TMessageType.EXCEPTION
5064 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5065 oprot.writeMessageBegin(
"get_server_status", msg_type, seqid)
5067 oprot.writeMessageEnd()
5073 iprot.readMessageEnd()
5076 result.success = self._handler.get_status(args.session)
5077 msg_type = TMessageType.REPLY
5078 except TTransport.TTransportException:
5080 except TDBException
as e:
5081 msg_type = TMessageType.REPLY
5083 except TApplicationException
as ex:
5084 logging.exception(
'TApplication exception in handler')
5085 msg_type = TMessageType.EXCEPTION
5088 logging.exception(
'Unexpected exception in handler')
5089 msg_type = TMessageType.EXCEPTION
5090 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5091 oprot.writeMessageBegin(
"get_status", msg_type, seqid)
5093 oprot.writeMessageEnd()
5099 iprot.readMessageEnd()
5102 result.success = self._handler.get_hardware_info(args.session)
5103 msg_type = TMessageType.REPLY
5104 except TTransport.TTransportException:
5106 except TDBException
as e:
5107 msg_type = TMessageType.REPLY
5109 except TApplicationException
as ex:
5110 logging.exception(
'TApplication exception in handler')
5111 msg_type = TMessageType.EXCEPTION
5114 logging.exception(
'Unexpected exception in handler')
5115 msg_type = TMessageType.EXCEPTION
5116 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5117 oprot.writeMessageBegin(
"get_hardware_info", msg_type, seqid)
5119 oprot.writeMessageEnd()
5125 iprot.readMessageEnd()
5128 result.success = self._handler.get_tables(args.session)
5129 msg_type = TMessageType.REPLY
5130 except TTransport.TTransportException:
5132 except TDBException
as e:
5133 msg_type = TMessageType.REPLY
5135 except TApplicationException
as ex:
5136 logging.exception(
'TApplication exception in handler')
5137 msg_type = TMessageType.EXCEPTION
5140 logging.exception(
'Unexpected exception in handler')
5141 msg_type = TMessageType.EXCEPTION
5142 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5143 oprot.writeMessageBegin(
"get_tables", msg_type, seqid)
5145 oprot.writeMessageEnd()
5151 iprot.readMessageEnd()
5154 result.success = self._handler.get_tables_for_database(args.session, args.database_name)
5155 msg_type = TMessageType.REPLY
5156 except TTransport.TTransportException:
5158 except TDBException
as e:
5159 msg_type = TMessageType.REPLY
5161 except TApplicationException
as ex:
5162 logging.exception(
'TApplication exception in handler')
5163 msg_type = TMessageType.EXCEPTION
5166 logging.exception(
'Unexpected exception in handler')
5167 msg_type = TMessageType.EXCEPTION
5168 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5169 oprot.writeMessageBegin(
"get_tables_for_database", msg_type, seqid)
5171 oprot.writeMessageEnd()
5177 iprot.readMessageEnd()
5180 result.success = self._handler.get_physical_tables(args.session)
5181 msg_type = TMessageType.REPLY
5182 except TTransport.TTransportException:
5184 except TDBException
as e:
5185 msg_type = TMessageType.REPLY
5187 except TApplicationException
as ex:
5188 logging.exception(
'TApplication exception in handler')
5189 msg_type = TMessageType.EXCEPTION
5192 logging.exception(
'Unexpected exception in handler')
5193 msg_type = TMessageType.EXCEPTION
5194 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5195 oprot.writeMessageBegin(
"get_physical_tables", msg_type, seqid)
5197 oprot.writeMessageEnd()
5203 iprot.readMessageEnd()
5206 result.success = self._handler.get_views(args.session)
5207 msg_type = TMessageType.REPLY
5208 except TTransport.TTransportException:
5210 except TDBException
as e:
5211 msg_type = TMessageType.REPLY
5213 except TApplicationException
as ex:
5214 logging.exception(
'TApplication exception in handler')
5215 msg_type = TMessageType.EXCEPTION
5218 logging.exception(
'Unexpected exception in handler')
5219 msg_type = TMessageType.EXCEPTION
5220 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5221 oprot.writeMessageBegin(
"get_views", msg_type, seqid)
5223 oprot.writeMessageEnd()
5229 iprot.readMessageEnd()
5232 result.success = self._handler.get_tables_meta(args.session)
5233 msg_type = TMessageType.REPLY
5234 except TTransport.TTransportException:
5236 except TDBException
as e:
5237 msg_type = TMessageType.REPLY
5239 except TApplicationException
as ex:
5240 logging.exception(
'TApplication exception in handler')
5241 msg_type = TMessageType.EXCEPTION
5244 logging.exception(
'Unexpected exception in handler')
5245 msg_type = TMessageType.EXCEPTION
5246 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5247 oprot.writeMessageBegin(
"get_tables_meta", msg_type, seqid)
5249 oprot.writeMessageEnd()
5255 iprot.readMessageEnd()
5258 result.success = self._handler.get_table_details(args.session, args.table_name)
5259 msg_type = TMessageType.REPLY
5260 except TTransport.TTransportException:
5262 except TDBException
as e:
5263 msg_type = TMessageType.REPLY
5265 except TApplicationException
as ex:
5266 logging.exception(
'TApplication exception in handler')
5267 msg_type = TMessageType.EXCEPTION
5270 logging.exception(
'Unexpected exception in handler')
5271 msg_type = TMessageType.EXCEPTION
5272 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5273 oprot.writeMessageBegin(
"get_table_details", msg_type, seqid)
5275 oprot.writeMessageEnd()
5281 iprot.readMessageEnd()
5284 result.success = self._handler.get_table_details_for_database(args.session, args.table_name, args.database_name)
5285 msg_type = TMessageType.REPLY
5286 except TTransport.TTransportException:
5288 except TDBException
as e:
5289 msg_type = TMessageType.REPLY
5291 except TApplicationException
as ex:
5292 logging.exception(
'TApplication exception in handler')
5293 msg_type = TMessageType.EXCEPTION
5296 logging.exception(
'Unexpected exception in handler')
5297 msg_type = TMessageType.EXCEPTION
5298 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5299 oprot.writeMessageBegin(
"get_table_details_for_database", msg_type, seqid)
5301 oprot.writeMessageEnd()
5307 iprot.readMessageEnd()
5310 result.success = self._handler.get_internal_table_details(args.session, args.table_name, args.include_system_columns)
5311 msg_type = TMessageType.REPLY
5312 except TTransport.TTransportException:
5314 except TDBException
as e:
5315 msg_type = TMessageType.REPLY
5317 except TApplicationException
as ex:
5318 logging.exception(
'TApplication exception in handler')
5319 msg_type = TMessageType.EXCEPTION
5322 logging.exception(
'Unexpected exception in handler')
5323 msg_type = TMessageType.EXCEPTION
5324 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5325 oprot.writeMessageBegin(
"get_internal_table_details", msg_type, seqid)
5327 oprot.writeMessageEnd()
5333 iprot.readMessageEnd()
5336 result.success = self._handler.get_internal_table_details_for_database(args.session, args.table_name, args.database_name)
5337 msg_type = TMessageType.REPLY
5338 except TTransport.TTransportException:
5340 except TDBException
as e:
5341 msg_type = TMessageType.REPLY
5343 except TApplicationException
as ex:
5344 logging.exception(
'TApplication exception in handler')
5345 msg_type = TMessageType.EXCEPTION
5348 logging.exception(
'Unexpected exception in handler')
5349 msg_type = TMessageType.EXCEPTION
5350 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5351 oprot.writeMessageBegin(
"get_internal_table_details_for_database", msg_type, seqid)
5353 oprot.writeMessageEnd()
5359 iprot.readMessageEnd()
5362 result.success = self._handler.get_users(args.session)
5363 msg_type = TMessageType.REPLY
5364 except TTransport.TTransportException:
5366 except TDBException
as e:
5367 msg_type = TMessageType.REPLY
5369 except TApplicationException
as ex:
5370 logging.exception(
'TApplication exception in handler')
5371 msg_type = TMessageType.EXCEPTION
5374 logging.exception(
'Unexpected exception in handler')
5375 msg_type = TMessageType.EXCEPTION
5376 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5377 oprot.writeMessageBegin(
"get_users", msg_type, seqid)
5379 oprot.writeMessageEnd()
5385 iprot.readMessageEnd()
5388 result.success = self._handler.get_databases(args.session)
5389 msg_type = TMessageType.REPLY
5390 except TTransport.TTransportException:
5392 except TDBException
as e:
5393 msg_type = TMessageType.REPLY
5395 except TApplicationException
as ex:
5396 logging.exception(
'TApplication exception in handler')
5397 msg_type = TMessageType.EXCEPTION
5400 logging.exception(
'Unexpected exception in handler')
5401 msg_type = TMessageType.EXCEPTION
5402 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5403 oprot.writeMessageBegin(
"get_databases", msg_type, seqid)
5405 oprot.writeMessageEnd()
5411 iprot.readMessageEnd()
5414 result.success = self._handler.get_version()
5415 msg_type = TMessageType.REPLY
5416 except TTransport.TTransportException:
5418 except TDBException
as e:
5419 msg_type = TMessageType.REPLY
5421 except TApplicationException
as ex:
5422 logging.exception(
'TApplication exception in handler')
5423 msg_type = TMessageType.EXCEPTION
5426 logging.exception(
'Unexpected exception in handler')
5427 msg_type = TMessageType.EXCEPTION
5428 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5429 oprot.writeMessageBegin(
"get_version", msg_type, seqid)
5431 oprot.writeMessageEnd()
5437 iprot.readMessageEnd()
5440 self._handler.start_heap_profile(args.session)
5441 msg_type = TMessageType.REPLY
5442 except TTransport.TTransportException:
5444 except TDBException
as e:
5445 msg_type = TMessageType.REPLY
5447 except TApplicationException
as ex:
5448 logging.exception(
'TApplication exception in handler')
5449 msg_type = TMessageType.EXCEPTION
5452 logging.exception(
'Unexpected exception in handler')
5453 msg_type = TMessageType.EXCEPTION
5454 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5455 oprot.writeMessageBegin(
"start_heap_profile", msg_type, seqid)
5457 oprot.writeMessageEnd()
5463 iprot.readMessageEnd()
5466 self._handler.stop_heap_profile(args.session)
5467 msg_type = TMessageType.REPLY
5468 except TTransport.TTransportException:
5470 except TDBException
as e:
5471 msg_type = TMessageType.REPLY
5473 except TApplicationException
as ex:
5474 logging.exception(
'TApplication exception in handler')
5475 msg_type = TMessageType.EXCEPTION
5478 logging.exception(
'Unexpected exception in handler')
5479 msg_type = TMessageType.EXCEPTION
5480 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5481 oprot.writeMessageBegin(
"stop_heap_profile", msg_type, seqid)
5483 oprot.writeMessageEnd()
5489 iprot.readMessageEnd()
5492 result.success = self._handler.get_heap_profile(args.session)
5493 msg_type = TMessageType.REPLY
5494 except TTransport.TTransportException:
5496 except TDBException
as e:
5497 msg_type = TMessageType.REPLY
5499 except TApplicationException
as ex:
5500 logging.exception(
'TApplication exception in handler')
5501 msg_type = TMessageType.EXCEPTION
5504 logging.exception(
'Unexpected exception in handler')
5505 msg_type = TMessageType.EXCEPTION
5506 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5507 oprot.writeMessageBegin(
"get_heap_profile", msg_type, seqid)
5509 oprot.writeMessageEnd()
5515 iprot.readMessageEnd()
5518 result.success = self._handler.get_memory(args.session, args.memory_level)
5519 msg_type = TMessageType.REPLY
5520 except TTransport.TTransportException:
5522 except TDBException
as e:
5523 msg_type = TMessageType.REPLY
5525 except TApplicationException
as ex:
5526 logging.exception(
'TApplication exception in handler')
5527 msg_type = TMessageType.EXCEPTION
5530 logging.exception(
'Unexpected exception in handler')
5531 msg_type = TMessageType.EXCEPTION
5532 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5533 oprot.writeMessageBegin(
"get_memory", msg_type, seqid)
5535 oprot.writeMessageEnd()
5541 iprot.readMessageEnd()
5544 self._handler.clear_cpu_memory(args.session)
5545 msg_type = TMessageType.REPLY
5546 except TTransport.TTransportException:
5548 except TDBException
as e:
5549 msg_type = TMessageType.REPLY
5551 except TApplicationException
as ex:
5552 logging.exception(
'TApplication exception in handler')
5553 msg_type = TMessageType.EXCEPTION
5556 logging.exception(
'Unexpected exception in handler')
5557 msg_type = TMessageType.EXCEPTION
5558 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5559 oprot.writeMessageBegin(
"clear_cpu_memory", msg_type, seqid)
5561 oprot.writeMessageEnd()
5567 iprot.readMessageEnd()
5570 self._handler.clear_gpu_memory(args.session)
5571 msg_type = TMessageType.REPLY
5572 except TTransport.TTransportException:
5574 except TDBException
as e:
5575 msg_type = TMessageType.REPLY
5577 except TApplicationException
as ex:
5578 logging.exception(
'TApplication exception in handler')
5579 msg_type = TMessageType.EXCEPTION
5582 logging.exception(
'Unexpected exception in handler')
5583 msg_type = TMessageType.EXCEPTION
5584 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5585 oprot.writeMessageBegin(
"clear_gpu_memory", msg_type, seqid)
5587 oprot.writeMessageEnd()
5593 iprot.readMessageEnd()
5596 self._handler.set_cur_session(args.parent_session, args.leaf_session, args.start_time_str, args.label, args.for_running_query_kernel)
5597 msg_type = TMessageType.REPLY
5598 except TTransport.TTransportException:
5600 except TDBException
as e:
5601 msg_type = TMessageType.REPLY
5603 except TApplicationException
as ex:
5604 logging.exception(
'TApplication exception in handler')
5605 msg_type = TMessageType.EXCEPTION
5608 logging.exception(
'Unexpected exception in handler')
5609 msg_type = TMessageType.EXCEPTION
5610 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5611 oprot.writeMessageBegin(
"set_cur_session", msg_type, seqid)
5613 oprot.writeMessageEnd()
5619 iprot.readMessageEnd()
5622 self._handler.invalidate_cur_session(args.parent_session, args.leaf_session, args.start_time_str, args.label, args.for_running_query_kernel)
5623 msg_type = TMessageType.REPLY
5624 except TTransport.TTransportException:
5626 except TDBException
as e:
5627 msg_type = TMessageType.REPLY
5629 except TApplicationException
as ex:
5630 logging.exception(
'TApplication exception in handler')
5631 msg_type = TMessageType.EXCEPTION
5634 logging.exception(
'Unexpected exception in handler')
5635 msg_type = TMessageType.EXCEPTION
5636 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5637 oprot.writeMessageBegin(
"invalidate_cur_session", msg_type, seqid)
5639 oprot.writeMessageEnd()
5645 iprot.readMessageEnd()
5648 self._handler.set_table_epoch(args.session, args.db_id, args.table_id, args.new_epoch)
5649 msg_type = TMessageType.REPLY
5650 except TTransport.TTransportException:
5652 except TDBException
as e:
5653 msg_type = TMessageType.REPLY
5655 except TApplicationException
as ex:
5656 logging.exception(
'TApplication exception in handler')
5657 msg_type = TMessageType.EXCEPTION
5660 logging.exception(
'Unexpected exception in handler')
5661 msg_type = TMessageType.EXCEPTION
5662 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5663 oprot.writeMessageBegin(
"set_table_epoch", msg_type, seqid)
5665 oprot.writeMessageEnd()
5671 iprot.readMessageEnd()
5674 self._handler.set_table_epoch_by_name(args.session, args.table_name, args.new_epoch)
5675 msg_type = TMessageType.REPLY
5676 except TTransport.TTransportException:
5678 except TDBException
as e:
5679 msg_type = TMessageType.REPLY
5681 except TApplicationException
as ex:
5682 logging.exception(
'TApplication exception in handler')
5683 msg_type = TMessageType.EXCEPTION
5686 logging.exception(
'Unexpected exception in handler')
5687 msg_type = TMessageType.EXCEPTION
5688 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5689 oprot.writeMessageBegin(
"set_table_epoch_by_name", msg_type, seqid)
5691 oprot.writeMessageEnd()
5697 iprot.readMessageEnd()
5700 result.success = self._handler.get_table_epoch(args.session, args.db_id, args.table_id)
5701 msg_type = TMessageType.REPLY
5702 except TTransport.TTransportException:
5704 except TApplicationException
as ex:
5705 logging.exception(
'TApplication exception in handler')
5706 msg_type = TMessageType.EXCEPTION
5709 logging.exception(
'Unexpected exception in handler')
5710 msg_type = TMessageType.EXCEPTION
5711 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5712 oprot.writeMessageBegin(
"get_table_epoch", msg_type, seqid)
5714 oprot.writeMessageEnd()
5720 iprot.readMessageEnd()
5723 result.success = self._handler.get_table_epoch_by_name(args.session, args.table_name)
5724 msg_type = TMessageType.REPLY
5725 except TTransport.TTransportException:
5727 except TApplicationException
as ex:
5728 logging.exception(
'TApplication exception in handler')
5729 msg_type = TMessageType.EXCEPTION
5732 logging.exception(
'Unexpected exception in handler')
5733 msg_type = TMessageType.EXCEPTION
5734 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5735 oprot.writeMessageBegin(
"get_table_epoch_by_name", msg_type, seqid)
5737 oprot.writeMessageEnd()
5743 iprot.readMessageEnd()
5746 result.success = self._handler.get_table_epochs(args.session, args.db_id, args.table_id)
5747 msg_type = TMessageType.REPLY
5748 except TTransport.TTransportException:
5750 except TApplicationException
as ex:
5751 logging.exception(
'TApplication exception in handler')
5752 msg_type = TMessageType.EXCEPTION
5755 logging.exception(
'Unexpected exception in handler')
5756 msg_type = TMessageType.EXCEPTION
5757 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5758 oprot.writeMessageBegin(
"get_table_epochs", msg_type, seqid)
5760 oprot.writeMessageEnd()
5766 iprot.readMessageEnd()
5769 self._handler.set_table_epochs(args.session, args.db_id, args.table_epochs)
5770 msg_type = TMessageType.REPLY
5771 except TTransport.TTransportException:
5773 except TApplicationException
as ex:
5774 logging.exception(
'TApplication exception in handler')
5775 msg_type = TMessageType.EXCEPTION
5778 logging.exception(
'Unexpected exception in handler')
5779 msg_type = TMessageType.EXCEPTION
5780 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5781 oprot.writeMessageBegin(
"set_table_epochs", msg_type, seqid)
5783 oprot.writeMessageEnd()
5789 iprot.readMessageEnd()
5792 result.success = self._handler.get_session_info(args.session)
5793 msg_type = TMessageType.REPLY
5794 except TTransport.TTransportException:
5796 except TDBException
as e:
5797 msg_type = TMessageType.REPLY
5799 except TApplicationException
as ex:
5800 logging.exception(
'TApplication exception in handler')
5801 msg_type = TMessageType.EXCEPTION
5804 logging.exception(
'Unexpected exception in handler')
5805 msg_type = TMessageType.EXCEPTION
5806 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5807 oprot.writeMessageBegin(
"get_session_info", msg_type, seqid)
5809 oprot.writeMessageEnd()
5815 iprot.readMessageEnd()
5818 result.success = self._handler.get_queries_info(args.session)
5819 msg_type = TMessageType.REPLY
5820 except TTransport.TTransportException:
5822 except TDBException
as e:
5823 msg_type = TMessageType.REPLY
5825 except TApplicationException
as ex:
5826 logging.exception(
'TApplication exception in handler')
5827 msg_type = TMessageType.EXCEPTION
5830 logging.exception(
'Unexpected exception in handler')
5831 msg_type = TMessageType.EXCEPTION
5832 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5833 oprot.writeMessageBegin(
"get_queries_info", msg_type, seqid)
5835 oprot.writeMessageEnd()
5841 iprot.readMessageEnd()
5844 self._handler.set_leaf_info(args.session, args.leaf_info)
5845 msg_type = TMessageType.REPLY
5846 except TTransport.TTransportException:
5848 except TDBException
as e:
5849 msg_type = TMessageType.REPLY
5851 except TApplicationException
as ex:
5852 logging.exception(
'TApplication exception in handler')
5853 msg_type = TMessageType.EXCEPTION
5856 logging.exception(
'Unexpected exception in handler')
5857 msg_type = TMessageType.EXCEPTION
5858 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5859 oprot.writeMessageBegin(
"set_leaf_info", msg_type, seqid)
5861 oprot.writeMessageEnd()
5867 iprot.readMessageEnd()
5870 result.success = self._handler.sql_execute(args.session, args.query, args.column_format, args.nonce, args.first_n, args.at_most_n)
5871 msg_type = TMessageType.REPLY
5872 except TTransport.TTransportException:
5874 except TDBException
as e:
5875 msg_type = TMessageType.REPLY
5877 except TApplicationException
as ex:
5878 logging.exception(
'TApplication exception in handler')
5879 msg_type = TMessageType.EXCEPTION
5882 logging.exception(
'Unexpected exception in handler')
5883 msg_type = TMessageType.EXCEPTION
5884 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5885 oprot.writeMessageBegin(
"sql_execute", msg_type, seqid)
5887 oprot.writeMessageEnd()
5893 iprot.readMessageEnd()
5896 result.success = self._handler.sql_execute_df(args.session, args.query, args.device_type, args.device_id, args.first_n, args.transport_method)
5897 msg_type = TMessageType.REPLY
5898 except TTransport.TTransportException:
5900 except TDBException
as e:
5901 msg_type = TMessageType.REPLY
5903 except TApplicationException
as ex:
5904 logging.exception(
'TApplication exception in handler')
5905 msg_type = TMessageType.EXCEPTION
5908 logging.exception(
'Unexpected exception in handler')
5909 msg_type = TMessageType.EXCEPTION
5910 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5911 oprot.writeMessageBegin(
"sql_execute_df", msg_type, seqid)
5913 oprot.writeMessageEnd()
5919 iprot.readMessageEnd()
5922 result.success = self._handler.sql_execute_gdf(args.session, args.query, args.device_id, args.first_n)
5923 msg_type = TMessageType.REPLY
5924 except TTransport.TTransportException:
5926 except TDBException
as e:
5927 msg_type = TMessageType.REPLY
5929 except TApplicationException
as ex:
5930 logging.exception(
'TApplication exception in handler')
5931 msg_type = TMessageType.EXCEPTION
5934 logging.exception(
'Unexpected exception in handler')
5935 msg_type = TMessageType.EXCEPTION
5936 result = TApplicationException(TApplicationException.INTERNAL_ERROR,
'Internal error')
5937 oprot.writeMessageBegin(
"sql_execute_gdf", msg_type, seqid)
5939 oprot.writeMessageEnd()
5945 iprot.readMessageEnd()
5948 self._handler.deallocate_df(args.session, args.df, args.device_type, args.device_id)
5949 msg_type = TMessageType.REPLY
5950 except TTransport.TTransportException:
5952 except TDBException
as e:
5953 msg_type = TMessageType.REPLY
5955 except TApplicationException
as ex:
5956 logging.exception(
'TApplication exception in handler')
5957 msg_type = TMessageType.EXCEPTION