Skip to content
Back to skills

128 Caveats 5bec6b91

ASecurity

- Redshift doesn't support unit tests when the SQL in the common table expression (CTE) contains functions such as `LISTAGG`, `MEDIAN`, `PERCENTILE_CONT`, and so on. These functions must be executed against a user-created table. dbt combines given rows to be part of the CTE, which Redshift does not support.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
testingsqlexpressgitdatabase

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 128-caveats_5bec6b91 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 128 Caveats 5bec6b91?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 128 Caveats 5bec6b91
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-128-caveats-5bec6b91/badge)](https://www.skillsdirectory.com/skills/tools-only-128-caveats-5bec6b91)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Caveats for Redshift

## Unit test limitations for Redshift

- Redshift doesn't support unit tests when the SQL in the common table expression (CTE) contains functions such as `LISTAGG`, `MEDIAN`, `PERCENTILE_CONT`, and so on. These functions must be executed against a user-created table. dbt combines given rows to be part of the CTE, which Redshift does not support.

  In order to support this pattern in the future, dbt would need to "materialize" the input fixtures as tables, rather than interpolating them as CTEs. Adding this functionality is proposed in GitHub issue #8499.

- Redshift doesn't support unit tests that rely on sources in a database that differs from the models. Redshift sources need to be in the same database as the models.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.