This repository was archived by the owner on Jun 30, 2022. It is now read-only.
Commit c644665
Allow Pipeline objects to be used in Python with statements
----Release Notes----
One can now write
with df.Pipeline(...) as p:
p | df.io.Read(...) | Map(...) | ...
and p.run() will be called automatically at the end of the block.
[]
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=1243087221 parent 30af51a commit c644665
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
248 | 256 | | |
249 | 257 | | |
250 | 258 | | |
| |||
0 commit comments