MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / Select

Class Select

src/sql-parser/src/ast/defs/query.rs:249–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247/// to a set operation like `UNION`.
248#[derive(Debug, Default, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
249pub struct Select<T: AstInfo> {
250 pub distinct: Option<Distinct<T>>,
251 /// projection expressions
252 pub projection: Vec<SelectItem<T>>,
253 /// FROM
254 pub from: Vec<TableWithJoins<T>>,
255 /// WHERE
256 pub selection: Option<Expr<T>>,
257 /// GROUP BY
258 pub group_by: Vec<Expr<T>>,
259 /// HAVING
260 pub having: Option<Expr<T>>,
261 /// QUALIFY
262 pub qualify: Option<Expr<T>>,
263 /// OPTION
264 pub options: Vec<SelectOption<T>>,
265}
266
267impl<T: AstInfo> AstDisplay for Select<T> {
268 fn fmt<W: fmt::Write>(&self, f: &mut AstFormatter<W>) {

Callers 15

selectMethod · 0.85
plan_selectFunction · 0.85
generate_view_sqlFunction · 0.85
optimizeMethod · 0.85
peek_validateMethod · 0.85
parse_statement_innerMethod · 0.85
parse_copyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected