Commit 1b14e8c
authored
Update
Summary: Update `GetAgentStatus` and kernel header UDTF to allow kelvin
filtering
In order to leverage the `GetAgentStatus`'s `kernel_headers_installed`
column for #2051, it would be convenient for the the UDTF to provide the
ability to filter kelvins out -- they don't have access to kernel
headers since they don't have the host filesystem volume mounted. This
change introduces an `include_kelvin` init argument to the UDTFs with a
default of `true` to preserve the existing behavior.
This change also fixes a bug with UDTF's init arg default values, which
didn't work prior to this change. Please review commit by commit to see
the default arg bug fix followed by the UDTF changes.
Relevant Issues: #2051
Type of change: /kind bug
Test Plan: New logical planner test no longer fails with the following
error
```
$ bazel test -c opt src/carnot/planner:logical_planner_test --test_output=all
[ RUN ] LogicalPlannerTest.one_pems_one_kelvin
src/carnot/planner/logical_planner_test.cc:64: Failure
Value of: IsOK(::px::StatusAdapter(__status_or_value__64))
Actual: false (Invalid Argument : DATA_TYPE_UNKNOWN not handled as a default value)
Expected: true
```GetAgentStatus and kernel header UDTF to allow kelvin filtering (#2061)1 parent a95d661 commit 1b14e8c
File tree
4 files changed
+60
-14
lines changed- src
- carnot
- planner
- udf
- vizier/funcs/md_udtfs
4 files changed
+60
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
275 | 293 | | |
276 | 294 | | |
277 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| |||
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
320 | 326 | | |
321 | 327 | | |
322 | 328 | | |
| |||
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
341 | 350 | | |
342 | 351 | | |
343 | 352 | | |
344 | 353 | | |
345 | 354 | | |
346 | 355 | | |
347 | 356 | | |
| 357 | + | |
348 | 358 | | |
349 | 359 | | |
350 | 360 | | |
| |||
425 | 435 | | |
426 | 436 | | |
427 | 437 | | |
428 | | - | |
| 438 | + | |
429 | 439 | | |
430 | 440 | | |
| 441 | + | |
431 | 442 | | |
432 | 443 | | |
433 | 444 | | |
| |||
438 | 449 | | |
439 | 450 | | |
440 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
441 | 457 | | |
442 | 458 | | |
443 | 459 | | |
444 | 460 | | |
445 | 461 | | |
446 | | - | |
447 | | - | |
448 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
449 | 469 | | |
450 | 470 | | |
451 | 471 | | |
452 | 472 | | |
453 | 473 | | |
454 | 474 | | |
455 | 475 | | |
| 476 | + | |
456 | 477 | | |
457 | 478 | | |
458 | 479 | | |
| |||
0 commit comments