LIKE pattern matching
Handle % and _ with bounded matching; document case-sensitive ASCII behavior. Enable grader flag(s): fuzzy. This is a stretch backlog item, not a commitment.
Contract
| Field | Value |
|---|---|
| Specification | OPT-001 |
| Module | optional |
| Scope | Optional stretch — requires explicit selection |
| Milestone | M3, due 2026-12-30 |
| Owner role | Shared — choose one MR owner |
| Implementation | Planned; scaffold only |
| Contract review | Team review required before implementation |
Interface
Optional AST + executor/codec extension
These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.
Dependencies
Acceptance checklist
- [ ] Agree complete syntax and contract before implementing
- [ ] Pass the linked optional case(s) and rerun required suite
- [ ] Record actual optional raw score and updated documentation
Setup data
Run this in a fresh isolated data directory before the example. Setup commands emit their own results; the expected block below covers only the listed input.
CREATE DATABASE demo;
USE demo;
CREATE TABLE people (id INT NOT NULL, name VARCHAR(16) NOT NULL, score FLOAT NOT NULL);
INSERT INTO people VALUES (1, 'Ada', 90.5), (2, 'Lin', 80.0);
Input
SELECT name FROM people WHERE name LIKE 'A%';
Expected output
name
Ada
@
Where no ORDER BY appears, row order is not guaranteed. Error message text is illustrative; required diagnostic keywords and result framing are binding.
Verification
Completion rule
Link this spec and its GitLab issue in an MR into develop. Include relevant Linux evidence, obtain the other teammate’s review, merge, delete the feature branch, and close the issue. A page describes intended behavior; the GitLab issue and merged code determine completion.