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

Method current_flatten_alias

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

Returns the most recently generated flatten alias, or `None` if `next_flatten_alias` has not been called yet.

(&self)

Source from the content-addressed store, hash-verified

198 /// Returns the most recently generated flatten alias, or `None` if
199 /// `next_flatten_alias` has not been called yet.
200 pub fn current_flatten_alias(&self) -> Option<String> {
201 if self.flatten_alias_counter > 0 {
202 Some(format!(
203 "{FLATTEN_ALIAS_PREFIX}_{}",
204 self.flatten_alias_counter
205 ))
206 } else {
207 None
208 }
209 }
210
211 pub fn distinct(&mut self, value: Option<ast::Distinct>) -> &mut Self {
212 self.distinct = value;

Calls

no outgoing calls

Tested by

no test coverage detected