Skip to content

study_area_run.sh: pre-flight bcfp-ref view is fresh., not $SCHEMA. (v0.41.2)#210

Merged
NewGraphEnvironment merged 1 commit into
mainfrom
driver-preflight-bcfp-ref-fix
May 28, 2026
Merged

study_area_run.sh: pre-flight bcfp-ref view is fresh., not $SCHEMA. (v0.41.2)#210
NewGraphEnvironment merged 1 commit into
mainfrom
driver-preflight-bcfp-ref-fix

Conversation

@NewGraphEnvironment

Copy link
Copy Markdown
Owner

Summary

Latent bug exposed by v0.41.1's --schema= flag.

The pre-flight check at data-raw/study_area_run.sh:135 was looking for streams_vw_bcfp in $SCHEMA (the override-able persist schema). The bcfp reference view is a constantR/lnk_compare_mapping_code.R:78 hard-codes ref_table = "fresh.streams_vw_bcfp". While $SCHEMA was always "fresh", the coincidence held. With --schema= overridable, the check broke (FATAL "fresh_default.streams_vw_bcfp missing").

Fix: pre-flight now checks fresh.streams_vw_bcfp literally, independent of $SCHEMA.

Related Issues

  • Relates to NewGraphEnvironment/sred#24

Test plan

  • Discovered by trying to launch --config=default --schema=fresh_default: FATAL on the wrong-schema check.
  • One-line fix: hard-code the pre-flight ref-view check to fresh.streams_vw_bcfp (matches lnk_compare_mapping_code.R:78).
  • Re-run with the fix; pre-flight clean.

🤖 Generated with Claude Code

…v0.41.2)

Latent bug exposed by v0.41.1's --schema= flag. The pre-flight check at
line 135 was looking for streams_vw_bcfp in the persist schema ($SCHEMA),
but the bcfp reference view is a constant — hard-coded to
fresh.streams_vw_bcfp in R/lnk_compare_mapping_code.R:78. The coincidence
held while $SCHEMA == "fresh" was the only value in use. With --schema=
overridable, the pre-flight now correctly checks fresh.streams_vw_bcfp
independent of $SCHEMA.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NewGraphEnvironment NewGraphEnvironment merged commit bfbbfeb into main May 28, 2026
1 check passed
@NewGraphEnvironment NewGraphEnvironment deleted the driver-preflight-bcfp-ref-fix branch May 28, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant