Configurable break columns + persistent output tables#81
Merged
NewGraphEnvironment merged 1 commit intomainfrom Apr 5, 2026
Merged
Configurable break columns + persistent output tables#81NewGraphEnvironment merged 1 commit intomainfrom
NewGraphEnvironment merged 1 commit intomainfrom
Conversation
…istence
frs_break_find: configurable column names via col_blk and col_measure
(default blue_line_key/downstream_route_measure). Aliases to standard
names on SELECT. Replaces WSG-based scoping with BLK filter — only
inserts breaks whose blue_line_key exists in the working streams table.
Removes aoi from table mode (BLK filter handles scoping generically).
frs_habitat: add to_prefix param for persistent output tables. When
provided, INSERT results into {to_prefix}_{species} tables after
classification. Existing rows for the same WSG are replaced (delete +
insert). Run ADMS today, MORR tomorrow — both accumulate.
Removes .frs_scope_break_sources and .frs_table_has_col (no longer needed).
Fixes #80
Fixes #79
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
col_blk/col_measureon break sources — configurable column names for stream ID and route measure. Defaults to FWA naming. Aliases to standard names on SELECT into breaks table.blue_line_key IN (SELECT DISTINCT blue_line_key FROM {working_table}). Generic, no column name assumptions.to_prefixpersistence —frs_habitat(to_prefix = "fresh.streams")persists species tables. Run ADMS today, MORR tomorrow — both accumulate. Delete + insert per WSG for idempotent re-runs.aoifromfrs_break_findtable mode,.frs_scope_break_sources,.frs_table_has_colTest plan
devtools::test()— 528 pass, 0 failto_prefixtested: ADMS then MORR, both WSGs in persistent tablesFixes #79, #80
Relates to NewGraphEnvironment/sred-2025-2026#16
🤖 Generated with Claude Code