mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-11 06:22:04 +00:00
fix: only require DESCRIBE TABLE
for Snowflake and ClickHouse dialect (#1386)
This commit is contained in:
parent
8c4d30bb6d
commit
dd78084ca0
8 changed files with 103 additions and 32 deletions
|
@ -485,9 +485,20 @@ pub trait Dialect: Debug + Any {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns the precedence when the precedence is otherwise unknown
|
||||
fn prec_unknown(&self) -> u8 {
|
||||
0
|
||||
}
|
||||
|
||||
/// Returns true if this dialect requires the `TABLE` keyword after `DESCRIBE`
|
||||
///
|
||||
/// Defaults to false.
|
||||
///
|
||||
/// If true, the following statement is valid: `DESCRIBE TABLE my_table`
|
||||
/// If false, the following statements are valid: `DESCRIBE my_table` and `DESCRIBE table`
|
||||
fn describe_requires_table_keyword(&self) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
/// This represents the operators for which precedence must be defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue