Skip to content

fix: Allow aliased expressions in indexes - #79

Merged
isaacvando merged 7 commits into
mainfrom
allow-aliased-expressions-in-indexes
Apr 13, 2026
Merged

fix: Allow aliased expressions in indexes#79
isaacvando merged 7 commits into
mainfrom
allow-aliased-expressions-in-indexes

Conversation

@isaacvando

@isaacvando isaacvando commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

Ticket(s) Closed

What

Adds support for indexed expressions with aliases like (rating + 1)::pdb.alias('my_rating').

Why

How

Tests

@codecov

codecov Bot commented Apr 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.99%. Comparing base (f5743d4) to head (6eecbaf).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
+ Coverage   89.97%   89.99%   +0.01%     
==========================================
  Files          19       19              
  Lines        2355     2358       +3     
  Branches      698      702       +4     
==========================================
+ Hits         2119     2122       +3     
  Misses        236      236              
Flag Coverage Δ
rails-paradedb 89.99% <100.00%> (+0.01%) ⬆️
rb3.2 90.27% <100.00%> (+0.01%) ⬆️
rb3.3 90.27% <100.00%> (+0.01%) ⬆️
rb3.4 89.99% <100.00%> (+0.01%) ⬆️
rb4.0 89.99% <100.00%> (+0.01%) ⬆️
rl7.2 89.99% <100.00%> (+0.01%) ⬆️
rl8.1 89.99% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
lib/parade_db/index.rb 82.60% <100.00%> (+0.09%) ⬆️
lib/parade_db/migration_helpers.rb 84.81% <100.00%> (+0.05%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@isaacvando
isaacvando merged commit 1be207f into main Apr 13, 2026
16 checks passed
@isaacvando
isaacvando deleted the allow-aliased-expressions-in-indexes branch April 13, 2026 20:38
philippemnoel pushed a commit to paradedb/paradedb that referenced this pull request Apr 15, 2026
# Ticket(s) Closed

- Closes #

## What

Adds ORM snippets to the index creation docs. This will allow us to
remove the index creation docs from the ORM READMEs.

paradedb/rails-paradedb#79,
paradedb/rails-paradedb#80, and
paradedb/rails-paradedb#82 should be released
before this is published so that all of the snippets work correctly.

None of the ORMs support creating indexes with more than 32 columns. I'm
not convinced we should support this in the ORMs personally as we'd have
to create the type to hold the 33+ columns and manage that also. Seems
like thre would be a lot of room for things to go wrong there.

## Why

This centralizes the docs and will allow us to clean up the ORM READMEs.

## How

## Tests
I modified the smoke test snippet job to support running these.
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.

2 participants