MCPcopy Create free account
hub / github.com/apache/datafusion / build_multi_column_diagnostic

Method build_multi_column_diagnostic

datafusion/sql/src/expr/subquery.rs:146–161  ·  view source on GitHub ↗
(
        &self,
        spans: &Spans,
        error_message: &str,
        help_message: &str,
    )

Source from the content-addressed store, hash-verified

144 }
145
146 fn build_multi_column_diagnostic(
147 &self,
148 spans: &Spans,
149 error_message: &str,
150 help_message: &str,
151 ) -> Diagnostic {
152 let full_span = Span::union_iter(spans.0.iter().cloned());
153 let mut diagnostic = Diagnostic::new_error(error_message, full_span);
154
155 for (i, span) in spans.iter().skip(1).enumerate() {
156 diagnostic.add_note(format!("Extra column {}", i + 1), Some(*span));
157 }
158
159 diagnostic.add_help(help_message, None);
160 diagnostic
161 }
162
163 pub(super) fn parse_set_comparison_subquery(
164 &self,

Callers 1

Calls 5

add_noteMethod · 0.80
add_helpMethod · 0.80
clonedMethod · 0.45
iterMethod · 0.45
skipMethod · 0.45

Tested by

no test coverage detected