Commit b4f7d10
LAV-2759: Support ALTER TASK compute assignment properties (#3176)
* LAV-2759: support ALTER TASK compute assignment
Implement Snowflake-compatible SET/UNSET WAREHOUSE and managed initial warehouse size mutations, including state preservation, validation, persistence, projections, and replayable DDL. Cloud snapshots cover all documented sizes, reset, invalid inputs, identifier forms, transitions, and started/suspended tasks.
Co-authored-by: Sabir Akhadov <sabir.akhadov@localstack.cloud>
## Test matrix
WAREHOUSE quoted/unquoted identifiers x suspended transitions -> tests/queries/test_tasks.py::test_alter_task_warehouse_compute_assignment
WAREHOUSE omitted/default x SET/UNSET/replacement/replay -> tests/queries/test_tasks.py::test_alter_task_warehouse_compute_assignment
WAREHOUSE missing x error -> tests/queries/test_tasks.py::test_alter_task_compute_assignment_invalid_and_started
WAREHOUSE x started/suspended transitions -> tests/queries/test_tasks.py::test_alter_task_compute_assignment_invalid_and_started
managed size XSMALL..XXXLARGE x replacement/projections -> tests/queries/test_tasks.py::test_alter_task_managed_warehouse_sizes_and_reset
managed size lowercase x preserved normalization -> tests/queries/test_tasks.py::test_alter_task_managed_warehouse_sizes_and_reset
managed size reset/default/replay -> tests/queries/test_tasks.py::test_alter_task_managed_warehouse_sizes_and_reset
managed size empty/below/above boundary x error -> tests/queries/test_tasks.py::test_alter_task_compute_assignment_invalid_and_started
managed size on warehouse-backed task x error -> tests/queries/test_tasks.py::test_alter_task_compute_assignment_invalid_and_started
* LAV-2759: make task compute DDL replayable
Canonicalize unquoted warehouse assignments and quote case-sensitive warehouse names in GET_DDL. Cloud snapshots now cover distinct replacement warehouses, quoted identifiers, and replay of every managed-size DDL.\n\nSwept ALTER TASK compute assignment for identifier persistence and replay gaps; fixed unquoted folding and quoted DDL rendering; managed-size and reset paths are clean.\n\n## Test matrix\nWAREHOUSE unquoted lowercase x replacement/canonicalization -> tests/queries/test_tasks.py::test_alter_task_warehouse_compute_assignment\nWAREHOUSE quoted case-sensitive x replacement/projections/replay -> tests/queries/test_tasks.py::test_alter_task_warehouse_compute_assignment\nWAREHOUSE missing unquoted x canonical error -> tests/queries/test_tasks.py::test_alter_task_compute_assignment_invalid_and_started\nmanaged size XSMALL..XXXLARGE x projections/DDL/replay -> tests/queries/test_tasks.py::test_alter_task_managed_warehouse_sizes_and_reset\nmanaged size reset x projections/DDL/replay -> tests/queries/test_tasks.py::test_alter_task_managed_warehouse_sizes_and_reset
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 acea92a commit b4f7d10
2 files changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15719 | 15719 | | |
15720 | 15720 | | |
15721 | 15721 | | |
| 15722 | + | |
| 15723 | + | |
| 15724 | + | |
| 15725 | + | |
| 15726 | + | |
| 15727 | + | |
| 15728 | + | |
| 15729 | + | |
15722 | 15730 | | |
15723 | 15731 | | |
15724 | 15732 | | |
| |||
15736 | 15744 | | |
15737 | 15745 | | |
15738 | 15746 | | |
| 15747 | + | |
| 15748 | + | |
| 15749 | + | |
| 15750 | + | |
| 15751 | + | |
| 15752 | + | |
| 15753 | + | |
| 15754 | + | |
| 15755 | + | |
| 15756 | + | |
| 15757 | + | |
15739 | 15758 | | |
15740 | 15759 | | |
15741 | 15760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12890 | 12890 | | |
12891 | 12891 | | |
12892 | 12892 | | |
| 12893 | + | |
| 12894 | + | |
| 12895 | + | |
| 12896 | + | |
| 12897 | + | |
| 12898 | + | |
| 12899 | + | |
| 12900 | + | |
| 12901 | + | |
| 12902 | + | |
| 12903 | + | |
| 12904 | + | |
| 12905 | + | |
| 12906 | + | |
| 12907 | + | |
| 12908 | + | |
| 12909 | + | |
| 12910 | + | |
| 12911 | + | |
| 12912 | + | |
| 12913 | + | |
| 12914 | + | |
| 12915 | + | |
| 12916 | + | |
12893 | 12917 | | |
12894 | 12918 | | |
12895 | | - | |
| 12919 | + | |
12896 | 12920 | | |
12897 | 12921 | | |
12898 | 12922 | | |
| |||
0 commit comments