def from_run_result(self, result, start_time, timing_info) -> RemoteRunResult: return RemoteRunResult( raw_sql=result.raw_sql, compiled_sql=result.compiled_sql, node=result.node, table=result.table, timing=timing_info, logs=[], )
def execute(self, compiled_node, manifest) -> RemoteRunResult: _, execute_result = self.adapter.execute(compiled_node.injected_sql, fetch=True) table = ResultTable( column_names=list(execute_result.column_names), rows=[list(row) for row in execute_result], ) return RemoteRunResult( raw_sql=compiled_node.raw_sql, compiled_sql=compiled_node.injected_sql, node=compiled_node, table=table, timing=[], logs=[], )