Repository navigation
Commit dd2a3cc
LAV-2523: Support CREATE OR ALTER STREAM (#3002)
* LAV-2523: support create or alter table streams
Preserve existing stream offsets while enforcing immutable source, APPEND_ONLY, and SHOW_INITIAL_ROWS settings, and apply COMMENT create-or-alter semantics. Add Cloud-captured coverage for creation, mutation, duplicate properties, collisions, and unsupported clauses.\n\n## Deviations\n\n- Masked volatile SHOW/DESCRIBE owner and stale_after fields using the established test_append_only_show_and_describe masks in tests/queries/test_streams.py; snapshots were captured against Snowflake Cloud.
Co-authored-by: Sabir Akhadov <sabir.akhadov@localstack.cloud>
* LAV-2523: preserve COPY GRANTS error precedence
Report the clause-order-specific unexpected token for CREATE OR ALTER STREAM so both COPY GRANTS placements match Snowflake.
Co-authored-by: Sabir Akhadov <sabir.akhadov@localstack.cloud>
* LAV-2523: derive COPY GRANTS error positions
Derive CREATE OR ALTER STREAM COPY GRANTS error metadata from the COPY, GRANTS, and ON token spans. Add Cloud-captured coverage for varying identifier lengths and multiline statements.
Co-authored-by: Sabir Akhadov <sabir.akhadov@localstack.cloud>
---------
Co-authored-by: spiral <spiral@localhost>
Co-authored-by: Sabir Akhadov <sabir.akhadov@localstack.cloud>1 parent 7e8716f commit dd2a3cc
2 files changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5080 | 5080 | | |
5081 | 5081 | | |
5082 | 5082 | | |
| 5083 | + | |
| 5084 | + | |
5083 | 5085 | | |
5084 | 5086 | | |
5085 | 5087 | | |
| |||
8567 | 8569 | | |
8568 | 8570 | | |
8569 | 8571 | | |
| 8572 | + | |
8570 | 8573 | | |
8571 | 8574 | | |
8572 | 8575 | | |
| |||
8584 | 8587 | | |
8585 | 8588 | | |
8586 | 8589 | | |
8587 | | - | |
8588 | | - | |
| 8590 | + | |
| 8591 | + | |
| 8592 | + | |
| 8593 | + | |
| 8594 | + | |
| 8595 | + | |
| 8596 | + | |
| 8597 | + | |
8589 | 8598 | | |
8590 | 8599 | | |
8591 | 8600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5628 | 5628 | | |
5629 | 5629 | | |
5630 | 5630 | | |
5631 | | - | |
| 5631 | + | |
5632 | 5632 | | |
5633 | 5633 | | |
5634 | 5634 | | |
| |||
5702 | 5702 | | |
5703 | 5703 | | |
5704 | 5704 | | |
5705 | | - | |
| 5705 | + | |
| 5706 | + | |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
5706 | 5710 | | |
5707 | 5711 | | |
5708 | 5712 | | |
| |||
5758 | 5762 | | |
5759 | 5763 | | |
5760 | 5764 | | |
| 5765 | + | |
5761 | 5766 | | |
5762 | 5767 | | |
5763 | 5768 | | |
| |||
0 commit comments