feat: Include end token in ALTER TABLE statement (#1999)

Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
Tyler White 2025-08-09 02:31:58 -04:00 committed by GitHub
parent 27544f9343
commit 356308b348
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 31 additions and 1 deletions

View file

@ -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 ")?;