def get_table_schema(service, session_handle, table_name, database_name='.*'): req = TGetColumnsReq(sessionHandle=session_handle, schemaName=database_name, tableName=table_name, columnName='.*') log.debug('get_table_schema: req=%s', req) resp = service.GetColumns(req) log.debug('get_table_schema: resp=%s', resp) err_if_rpc_not_ok(resp) return resp.operationHandle
def get_table_schema(self, table, database='.*'): req = TGetColumnsReq(sessionHandle=self.handle, schemaName=database, tableName=table, columnName='.*') return self._operation('GetColumns', req)