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

Method already_projected

datafusion/sql/src/unparser/ast.rs:249–251  ·  view source on GitHub ↗

Returns true if a projection has been explicitly set via `projection()`. This method is used to determine whether the SELECT clause has already been defined, which helps avoid creating duplicate projection nodes during query unparsing. It returns `true` for both empty and non-empty projections. # Returns - `true` if `projection()` has been called (regardless of whether it was empty or not) - `f

(&self)

Source from the content-addressed store, hash-verified

247 /// assert!(builder.already_projected()); // true for non-empty projection
248 /// ```
249 pub fn already_projected(&self) -> bool {
250 self.projection.is_some()
251 }
252 pub fn into(&mut self, value: Option<ast::SelectInto>) -> &mut Self {
253 self.into = value;
254 self

Calls

no outgoing calls

Tested by

no test coverage detected