fn diagnostic_row( predicate: &str, terms: &[Term], schemas: &HashMap<String, Schema>, ) -> Result<Vec<DiagnosticScalar>>