Skip to content

feat(core): Add is_in function to check value existence in table columns#1569

Merged
topher-lo merged 1 commit intomainfrom
feat/is-in-table
Oct 24, 2025
Merged

feat(core): Add is_in function to check value existence in table columns#1569
topher-lo merged 1 commit intomainfrom
feat/is-in-table

Conversation

@topher-lo
Copy link
Copy Markdown
Contributor

@topher-lo topher-lo commented Oct 24, 2025

Summary by cubic

Adds a UDF to check whether a value exists in a table column and return a boolean. Uses an efficient SQL EXISTS query to short-circuit on the first match.

  • New Features
    • core.table.is_in(table, column, value) UDF.
    • TablesService.exists_rows(columns, values) with retries and clear error handling.
    • Unit tests covering true/false cases.

- Implemented the is_in function to verify if a specified value exists in a given table column.
- Added corresponding unit tests to validate the functionality of the is_in function.
- Enhanced the BaseTablesService with an efficient exists_rows method for existence checks using SQL EXISTS queries.
@topher-lo topher-lo added the udfs Improvements to core Tracecat actions label Oct 24, 2025
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

@topher-lo topher-lo merged commit b5b3fc5 into main Oct 24, 2025
16 checks passed
@topher-lo topher-lo deleted the feat/is-in-table branch October 24, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

udfs Improvements to core Tracecat actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant