async fn to_query_result( table_name: &str, timestamp_column_name: &str, value_column_name: &str, output: Output, ) -> Result<QueryResult>