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

Method spans

datafusion/expr/src/expr.rs:2260–2265  ·  view source on GitHub ↗

Returns a reference to the set of locations in the SQL query where this expression appears, if known. [`None`] is returned if the expression type doesn't support tracking locations yet.

(&self)

Source from the content-addressed store, hash-verified

2258 /// expression appears, if known. [`None`] is returned if the expression
2259 /// type doesn't support tracking locations yet.
2260 pub fn spans(&self) -> Option<&Spans> {
2261 match self {
2262 Expr::Column(col) => Some(&col.spans),
2263 _ => None,
2264 }
2265 }
2266
2267 /// Check if the Expr is literal and get the literal value if it is.
2268 pub fn as_literal(&self) -> Option<&ScalarValue> {

Callers 4

to_fieldMethod · 0.45
parse_sql_unary_opMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected