Repository navigation
Commit 23f6726
LAV-2128: snowflake_task AFTER/predecessor relations don't round-trip → OnTask_Discussion2877 step 2/4 refresh-plan drift (#2723)
* LAV-2128: round-trip task predecessor relations
Persist fully qualified, lexically ordered task predecessor JSON for CREATE TASK and ALTER TASK ADD/REMOVE AFTER, and project matching SHOW/DESC relation metadata. Add a real-Snowflake snapshot covering create, add, remove, ordering, and root-task empty relations.
* LAV-2128: fix task parser test construction
Construct expected task names through ObjectName's conversion API so the vendored parser test builds with the current multipart-name representation.
* LAV-2128: preserve legacy task predecessor rows
Normalize legacy comma-separated predecessor values when projecting or mutating task relations, while retaining ordered JSON for new writes. Add a Snowflake-captured regression for upgrading and mutating an existing row and document both catalog encodings.
## Deviations
- **Catalog representation**: the architecture document described comma-separated storage. The earlier implementation retained JSON storage for new rows; this round documents it and adds transparent compatibility for legacy comma-separated rows instead of migrating catalog data eagerly.
* LAV-2128: qualify two-part legacy predecessors
Qualify two-part legacy task predecessor catalog values with the task database before SHOW/DESC projection and ADD/REMOVE normalization. Exercise the path by injecting a two-part legacy value in the existing Snowflake-captured compat test.
* LAV-2128: update task alter callers and docs
Pass the predecessor argument from SYSTEM$TASK_DEPENDENTS_ENABLE and document the complete ALTER TASK UDF surface, including predecessor mutations.
---------
Co-authored-by: root <root@ip-10-42-44-3.eu-west-1.compute.internal>
Co-authored-by: root <root@ip-10-42-42-116.eu-west-1.compute.internal>1 parent d206b45 commit 23f6726
3 files changed
Lines changed: 53 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14869 | 14869 | | |
14870 | 14870 | | |
14871 | 14871 | | |
14872 | | - | |
| 14872 | + | |
14873 | 14873 | | |
14874 | 14874 | | |
14875 | 14875 | | |
14876 | 14876 | | |
14877 | 14877 | | |
14878 | 14878 | | |
14879 | 14879 | | |
| 14880 | + | |
| 14881 | + | |
| 14882 | + | |
| 14883 | + | |
14880 | 14884 | | |
14881 | 14885 | | |
14882 | 14886 | | |
14883 | 14887 | | |
14884 | 14888 | | |
14885 | 14889 | | |
14886 | 14890 | | |
| 14891 | + | |
| 14892 | + | |
| 14893 | + | |
| 14894 | + | |
| 14895 | + | |
| 14896 | + | |
| 14897 | + | |
| 14898 | + | |
| 14899 | + | |
| 14900 | + | |
14887 | 14901 | | |
14888 | 14902 | | |
14889 | 14903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12379 | 12379 | | |
12380 | 12380 | | |
12381 | 12381 | | |
12382 | | - | |
| 12382 | + | |
12383 | 12383 | | |
12384 | 12384 | | |
12385 | 12385 | | |
12386 | 12386 | | |
12387 | 12387 | | |
12388 | 12388 | | |
12389 | 12389 | | |
| 12390 | + | |
| 12391 | + | |
| 12392 | + | |
| 12393 | + | |
| 12394 | + | |
| 12395 | + | |
| 12396 | + | |
| 12397 | + | |
| 12398 | + | |
| 12399 | + | |
12390 | 12400 | | |
12391 | | - | |
| 12401 | + | |
| 12402 | + | |
| 12403 | + | |
| 12404 | + | |
12392 | 12405 | | |
12393 | 12406 | | |
12394 | 12407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8173 | 8173 | | |
8174 | 8174 | | |
8175 | 8175 | | |
| 8176 | + | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
| 8180 | + | |
| 8181 | + | |
| 8182 | + | |
| 8183 | + | |
| 8184 | + | |
| 8185 | + | |
| 8186 | + | |
| 8187 | + | |
| 8188 | + | |
| 8189 | + | |
| 8190 | + | |
| 8191 | + | |
| 8192 | + | |
| 8193 | + | |
| 8194 | + | |
| 8195 | + | |
| 8196 | + | |
| 8197 | + | |
| 8198 | + | |
8176 | 8199 | | |
8177 | 8200 | | |
8178 | 8201 | | |
| |||
0 commit comments