fmguerreiro opened a new pull request, #2318:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2318
## Summary
- Add `AlterTableOperation::AttachPartitionOf` for PostgreSQL `ALTER TABLE
parent ATTACH PARTITION child { FOR VALUES <spec> | DEFAULT }`
- Add `AlterTableOperation::DetachPartitionOf` for PostgreSQL `ALTER TABLE
parent DETACH PARTITION child [ CONCURRENTLY | FINALIZE ]`
- These are distinct from the existing ClickHouse
`AttachPartition`/`DetachPartition` variants which use `PART|PARTITION <expr>`
syntax
- Add `FINALIZE` keyword
- Add span impls for the new variants
- Bump version to 0.60.12
## Test plan
- Parser unit tests for all four ATTACH variants (range, list, hash, default)
- Parser unit tests for all three DETACH variants (plain, concurrently,
finalize)
- Covers the exact pagila.sql statement shape: `ALTER TABLE ONLY
public.payment ATTACH PARTITION public.payment_p2022_01 FOR VALUES FROM (...)
TO (...)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]