Commit eae37a7
authored
feat: allow AppendOnly, ChangeDataFeed, and TypeWidening in CREATE TABLE (delta-io#2279)
## What changes are proposed in this pull request?
Add three simple protocol-only features to the CREATE TABLE allow lists:
AppendOnly, ChangeDataFeed, TypeWidening
No additional auto-enablement code is needed.
`maybe_auto_enable_property_driven_features` (from delta-io#2245) derives
enablement from `FeatureInfo::enablement_check`.
## How was this change tested?
Parameterized integration tests in kernel/tests/create_table/main.rs:
- `test_create_table_with_feature_signal` extended with
`is_reader_writer` parameter and cases for all three features
(WriterOnly features only check `writer_features()`)
- `test_create_table_with_enablement_property` generalized to cover all
property-driven features (DV, TypeWidening, CDF, AppendOnly) with
true/false cases via `#[values]`
Co-authored-by: Sanuj Basu <sanujbasu@users.noreply.github.com>1 parent 2ee3dde commit eae37a7
2 files changed
Lines changed: 65 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
74 | | - | |
| 81 | + | |
75 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
76 | 86 | | |
77 | 87 | | |
78 | 88 | | |
| |||
719 | 729 | | |
720 | 730 | | |
721 | 731 | | |
| 732 | + | |
722 | 733 | | |
723 | 734 | | |
724 | 735 | | |
| |||
830 | 841 | | |
831 | 842 | | |
832 | 843 | | |
833 | | - | |
834 | | - | |
835 | 844 | | |
836 | 845 | | |
837 | | - | |
| 846 | + | |
838 | 847 | | |
839 | 848 | | |
840 | | - | |
| 849 | + | |
841 | 850 | | |
842 | 851 | | |
843 | 852 | | |
| |||
863 | 872 | | |
864 | 873 | | |
865 | 874 | | |
866 | | - | |
| 875 | + | |
867 | 876 | | |
868 | 877 | | |
869 | | - | |
| 878 | + | |
870 | 879 | | |
871 | 880 | | |
872 | 881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
350 | 354 | | |
351 | 355 | | |
352 | 356 | | |
| 357 | + | |
353 | 358 | | |
354 | 359 | | |
355 | 360 | | |
| |||
379 | 384 | | |
380 | 385 | | |
381 | 386 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
388 | 395 | | |
389 | 396 | | |
390 | 397 | | |
| |||
419 | 426 | | |
420 | 427 | | |
421 | 428 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
427 | 440 | | |
428 | 441 | | |
| 442 | + | |
429 | 443 | | |
430 | 444 | | |
431 | | - | |
| 445 | + | |
432 | 446 | | |
433 | 447 | | |
434 | 448 | | |
435 | 449 | | |
436 | 450 | | |
437 | 451 | | |
438 | 452 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
| 453 | + | |
444 | 454 | | |
445 | | - | |
| 455 | + | |
446 | 456 | | |
447 | 457 | | |
448 | | - | |
| 458 | + | |
449 | 459 | | |
450 | | - | |
| 460 | + | |
451 | 461 | | |
452 | 462 | | |
453 | 463 | | |
454 | 464 | | |
455 | 465 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
| 466 | + | |
464 | 467 | | |
465 | | - | |
466 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
467 | 479 | | |
468 | 480 | | |
469 | 481 | | |
0 commit comments