Commit 5e53b61
committed
test+docs: harden DDL-detection filter, soften DDL claims (#104)
Addresses three review findings on PR #108:
(1) Live test DDL-detection blind spot
The previous filter required the regressed CREATE OR REPLACE
PROPERTY GRAPH to target _PROJECT.<scratch_dataset>.<spec.name>.
But if skip_property_graph regressed, the compiler would actually
target _PROJECT._DATASET.<spec.name> (the orchestrator's
dataset_id argument is _DATASET in this test, used for extraction
of agent_events). The blind spot: a regression could fire DDL
that the test would not catch.
Fixed by replacing the fully-qualified-graph-ref filter with two
narrower constraints that catch the regression in either dataset:
- graph name (spec.name) — present in the DDL string regardless
of which dataset the compiler targets
- sdk_feature='ontology-gql' label — only SDK-issued
property-graph jobs carry this label per
ontology_property_graph.py:465; the test's setup CREATE
PROPERTY GRAPH (issued via direct SQL) does not, so it does
not trip the assertion
(2) docs/ontology/ontology-build.md: document graph_ref limitation
Added a "Known limitation" section noting that
result["graph_ref"] reports the extraction dataset, not the
binding's target dataset, in split source/target setups. The
materialized base tables themselves still go to the binding's
target dataset per the resolved spec; only the reported string is
affected.
(3) docs/ontology/ontology-build.md: soften DDL-options wording
"additional indexes, dialect-specific options" was overreaching for
BigQuery property graphs; tightened to "custom labels or other
DDL details the SDK's compiler doesn't generate."
136/136 tests pass.1 parent 5480465 commit 5e53b61
2 files changed
Lines changed: 35 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
440 | 456 | | |
441 | 457 | | |
442 | 458 | | |
443 | | - | |
| 459 | + | |
444 | 460 | | |
445 | 461 | | |
446 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
447 | 467 | | |
448 | 468 | | |
449 | 469 | | |
| |||
453 | 473 | | |
454 | 474 | | |
455 | 475 | | |
456 | | - | |
| 476 | + | |
457 | 477 | | |
458 | | - | |
| 478 | + | |
459 | 479 | | |
460 | 480 | | |
461 | 481 | | |
| |||
0 commit comments