|
| 1 | +# libdplyr v0.3.0 Release Notes |
| 2 | + |
| 3 | +**Release Date:** January 8, 2026 |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Overview |
| 8 | + |
| 9 | +libdplyr v0.3.0 introduces **Join functionality** support, allowing you to perform SQL joins using familiar dplyr syntax. This release also includes code quality improvements, bug fixes, and dependency updates. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## What's New |
| 14 | + |
| 15 | +### ✨ Added: Join Functionality |
| 16 | + |
| 17 | +This release brings comprehensive join support to libdplyr: |
| 18 | + |
| 19 | +- **`left_join()`** - Keep all rows from the left table, matching rows from the right |
| 20 | +- **`inner_join()`** - Keep only rows with matches in both tables |
| 21 | +- **`right_join()`** - Keep all rows from the right table, matching rows from the left |
| 22 | +- **`full_join()`** - Keep all rows from both tables |
| 23 | + |
| 24 | +#### Join Syntax |
| 25 | + |
| 26 | +```r |
| 27 | +# Join with by parameter |
| 28 | +left_join(other, by = "id") |
| 29 | +inner_join(other, by = c("key1", "key2")) |
| 30 | + |
| 31 | +# Join with on expression |
| 32 | +left_join(other, on = "table1.id = table2.id") |
| 33 | +``` |
| 34 | + |
| 35 | +#### Example |
| 36 | + |
| 37 | +```r |
| 38 | +select(name, dept) %>% |
| 39 | + left_join(salaries, by = "dept") |
| 40 | +``` |
| 41 | + |
| 42 | +Transpiles to: |
| 43 | + |
| 44 | +```sql |
| 45 | +SELECT "name", "dept" |
| 46 | +FROM "data" |
| 47 | +LEFT JOIN "salaries" ON "data"."dept" = "salaries"."dept" |
| 48 | +``` |
| 49 | + |
| 50 | +--- |
| 51 | + |
| 52 | +## Changes |
| 53 | + |
| 54 | +### Dependencies Updated |
| 55 | +- **`lru`**: `0.12.5` → `0.16.3` (performance and compatibility improvements) |
| 56 | + |
| 57 | +### Documentation |
| 58 | +- Separated `INSTALL.md` from `README.md` for improved readability |
| 59 | +- Updated `AGENTS.md` with current project structure and conventions |
| 60 | + |
| 61 | +--- |
| 62 | + |
| 63 | +## Fixed |
| 64 | + |
| 65 | +### Build & CI/CD |
| 66 | +- **macOS Release Workflow**: Fixed checksum verification by using `shasum -a 256` instead of unavailable `sha256sum` |
| 67 | +- **Windows Release Workflow**: Disabled ccache to resolve resource file compilation conflicts with Ninja |
| 68 | +- **Release Workflow**: Added dynamic extension file path detection for Windows builds |
| 69 | +- **CI Permissions**: Added `contents: write` permission for GitHub Actions release deployment |
| 70 | + |
| 71 | +### Testing |
| 72 | +- **C++ Integration Tests**: Fixed compilation errors introduced by join refactoring |
| 73 | +- **Join Tests**: Updated to use `Transpiler` directly for consistent testing |
| 74 | + |
| 75 | +### SQL Generation |
| 76 | +- **ON Clause Generation**: Fixed correct `ON` clause generation when using `by` parameter in joins |
| 77 | + |
| 78 | +--- |
| 79 | + |
| 80 | +## Refactored |
| 81 | + |
| 82 | +### Code Quality |
| 83 | +- **Clippy Warnings**: Resolved all reported warnings for improved code quality |
| 84 | +- **Unused Code**: Removed unused fields and functions detected by cargo check |
| 85 | +- **Parser/SQL Generator**: Refactored join-related logic to separate `by` column from `on` expression handling |
| 86 | + |
| 87 | +### Examples |
| 88 | +- Fixed compilation errors in examples caused by join refactoring |
| 89 | + |
| 90 | +--- |
| 91 | + |
| 92 | +## Security |
| 93 | + |
| 94 | +- **GitHub Security Workflow**: Improved security audit workflow configuration |
| 95 | + |
| 96 | +--- |
| 97 | + |
| 98 | +## Compatibility |
| 99 | + |
| 100 | +| Component | Minimum Version | Notes | |
| 101 | +|-----------|----------------|-------| |
| 102 | +| Rust | 1.70+ | For `edition = 2021` | |
| 103 | +| DuckDB | 1.4.0+ | For extension compatibility | |
| 104 | +| CMake | 3.25+ | For building extension | |
| 105 | + |
| 106 | +--- |
| 107 | + |
| 108 | +## Installation |
| 109 | + |
| 110 | +### Via Install Script (Linux/macOS) |
| 111 | +```bash |
| 112 | +curl -sSL https://raw.githubusercontent.com/mrchypark/libdplyr/main/install.sh | bash |
| 113 | +``` |
| 114 | + |
| 115 | +### Via PowerShell (Windows) |
| 116 | +```powershell |
| 117 | +Irm https://raw.githubusercontent.com/mrchypark/libdplyr/main/install.ps1 | iex |
| 118 | +``` |
| 119 | + |
| 120 | +### Via Cargo |
| 121 | +```bash |
| 122 | +cargo install libdplyr |
| 123 | +``` |
| 124 | + |
| 125 | +### From Source |
| 126 | +```bash |
| 127 | +git clone https://github.com/mrchypark/libdplyr.git |
| 128 | +cd libdplyr |
| 129 | +cargo build --release |
| 130 | +``` |
| 131 | + |
| 132 | +--- |
| 133 | + |
| 134 | +## Resources |
| 135 | + |
| 136 | +- **Documentation**: [https://docs.rs/libdplyr](https://docs.rs/libdplyr) |
| 137 | +- **GitHub**: [https://github.com/mrchypark/libdplyr](https://github.com/mrchypark/libdplyr) |
| 138 | +- **Crates.io**: [https://crates.io/crates/libdplyr](https://crates.io/crates/libdplyr) |
| 139 | + |
| 140 | +--- |
| 141 | + |
| 142 | +## Contributors |
| 143 | + |
| 144 | +Thank you to all contributors who made this release possible! |
| 145 | + |
| 146 | +--- |
| 147 | + |
| 148 | +## Full Changelog |
| 149 | + |
| 150 | +``` |
| 151 | +a07e5ec refactor: fix clippy warnings and code quality improvements |
| 152 | +2c49794 refactor: remove unused code detected by cargo check |
| 153 | +dab80d4 Merge pull request #3 from mrchypark/dependabot/cargo/lru-0.16.3 |
| 154 | +a7e43e4 add agents for sub |
| 155 | +2d522ef refactor(docs): clean up documentation |
| 156 | +81a1397 refactor(tests): fix c++ integration tests compilation |
| 157 | +f0dc1d4 fix(examples): fix compilation errors from join refactor |
| 158 | +d9d7381 fix(test): use Transpiler directly in join tests |
| 159 | +5feca88 fix(sql_generator): generate correct ON clause for by parameter |
| 160 | +13b7e63 refactor(parser): separate by column from on expression for join |
| 161 | +3aa1284 feat: Add join functionality to libdplyr |
| 162 | +8cb5a42 build(deps): bump lru from 0.12.5 to 0.16.3 |
| 163 | +aa8ab74 fix(ci): add contents: write permission to release workflow |
| 164 | +a43a65b fix(ci): dynamic extension file path for Windows release |
| 165 | +c989329 fix: resolve release workflow build errors |
| 166 | +7c9ffe1 fix security |
| 167 | +``` |
| 168 | + |
| 169 | +--- |
| 170 | + |
| 171 | +**Full changes since v0.2.0**: [Compare v0.2.0...v0.3.0](https://github.com/mrchypark/libdplyr/compare/v0.2.0...v0.3.0) |
0 commit comments