• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

schireson / pytest-mock-resources / 24798864780
89%

Build:
DEFAULT BRANCH: main
Ran 22 Apr 2026 07:42PM UTC
Jobs 1
Files 39
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Apr 2026 07:41PM UTC coverage: 88.796% (+0.04%) from 88.752%
24798864780

push

github

web-flow
feat: handle MEDIAN and LISTAGG functions for Redshift (#230)

Adds two Redshift aggregate UDFs that previously raised 'function does
not exist' errors against the mock fixture:

- MEDIAN(col): implemented as a CREATE AGGREGATE using array_append as
  the state function and a final function that computes
  percentile_cont(0.5) WITHIN GROUP over the unnested array. This
  matches Redshift MEDIAN semantics (average of the two middle values
  on even-count input, NULLs ignored). Overloads are registered for
  NUMERIC and DOUBLE PRECISION.

- LISTAGG(col[, delimiter]): implemented as a CREATE AGGREGATE whose
  state function concatenates non-NULL values with an optional
  delimiter. Overloads cover both LISTAGG(col) and LISTAGG(col, delim).

These work around the constraint (noted in the #213 thread) that
Redshift does not allow SQL UDFs for aggregate operations by leveraging
Postgres native CREATE AGGREGATE, which is available because the
Redshift fixture runs on top of a Postgres container.

Closes the remaining MEDIAN and LISTAGG checkboxes on #213.

Co-authored-by: tl212 <tl212@users.noreply.github.com>

343 of 423 branches covered (81.09%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 1 file covered. (100.0%)

1464 of 1612 relevant lines covered (90.82%)

16.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run- - 24798864780.1 22 Apr 2026 07:46PM UTC 39
88.8
GitHub Action Run
Source Files on build 24798864780
  • Tree
  • List 39
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3b834f9d on github
  • Prev Build on main (#17807170699)
  • Next Build on main (#25217096087)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc