mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-10 05:52:13 +00:00
feat: Include end token in ALTER TABLE
statement (#1999)
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
parent
27544f9343
commit
356308b348
5 changed files with 31 additions and 1 deletions
|
@ -3384,6 +3384,8 @@ pub enum Statement {
|
|||
/// Snowflake "ICEBERG" clause for Iceberg tables
|
||||
/// <https://docs.snowflake.com/en/sql-reference/sql/alter-iceberg-table>
|
||||
iceberg: bool,
|
||||
/// Token that represents the end of the statement (semicolon or EOF)
|
||||
end_token: AttachedToken,
|
||||
},
|
||||
/// ```sql
|
||||
/// ALTER INDEX
|
||||
|
@ -5442,6 +5444,7 @@ impl fmt::Display for Statement {
|
|||
location,
|
||||
on_cluster,
|
||||
iceberg,
|
||||
end_token: _,
|
||||
} => {
|
||||
if *iceberg {
|
||||
write!(f, "ALTER ICEBERG TABLE ")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue