mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-09 14:07:08 +00:00
Mention SQLSelectItem::Wildcard in ASTNode::SQLWildcard docs
as a follow-up to https://github.com/andygrove/sqlparser-rs/issues/52
This commit is contained in:
parent
846f2ff1d9
commit
cfb77912f7
1 changed files with 6 additions and 3 deletions
|
|
@ -56,9 +56,12 @@ pub type SQLIdent = String;
|
|||
pub enum ASTNode {
|
||||
/// Identifier e.g. table name or column name
|
||||
SQLIdentifier(SQLIdent),
|
||||
/// Unqualified wildcard (`*`). SQL allows this in limited contexts (such as right
|
||||
/// after `SELECT` or as part of an aggregate function, e.g. `COUNT(*)`, but we
|
||||
/// currently accept it in contexts where it doesn't make sense, such as `* + *`
|
||||
/// Unqualified wildcard (`*`). SQL allows this in limited contexts, such as:
|
||||
/// - right after `SELECT` (which is represented as a [SQLSelectItem::Wildcard] instead)
|
||||
/// - or as part of an aggregate function, e.g. `COUNT(*)`,
|
||||
///
|
||||
/// ...but we currently also accept it in contexts where it doesn't make
|
||||
/// sense, such as `* + *`
|
||||
SQLWildcard,
|
||||
/// Qualified wildcard, e.g. `alias.*` or `schema.table.*`.
|
||||
/// (Same caveats apply to SQLQualifiedWildcard as to SQLWildcard.)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue