Skip to content

Conversation

@labkey-nicka
Copy link
Contributor

@labkey-nicka labkey-nicka commented Jan 23, 2026

Rationale

Currently, we support EXPANCESTORSOF and EXPDESCENDANTSOF which allow you to query in a specific direction up or down the lineage for an experiment object. This introduces EXPLINEAGEOF which allows for querying up AND down the lineage of an experiment object with a single clause.

Additionally, I've added an optional "depth" parameter argument to all three of these operations so that users can specify a limit if desired.

Related Pull Requests

Changes

  • Add EXPLINEAGEOF sql method/keyword
  • Accept "depth" as a second argument for EXPANCESTORSOF, EXPDESCENDANTSOF, and EXPLINEAGEOF

Tasks

  • Automated tests
  • Manual Testing (Performed on related PR)
  • Update docs

@labkey-nicka labkey-nicka self-assigned this Jan 23, 2026
Copy link
Contributor

@labkey-matthewb labkey-matthewb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but be strict when validating parsed SQL. If it doesn't look like we expect reject it.

- support absolute value depth parameter
@labkey-nicka labkey-nicka force-pushed the fb_exp_lineage_of_sql branch from 39ea95e to 2c60d59 Compare January 23, 2026 23:42
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.

3 participants