Commit 6304a9b
Add CSV table mode: single-relation loading without row ID
Introduces a `table` form for `csv_data` that loads all selected columns
into one output relation with schema `key=[T1..TN], value=[]`, dropping
the per-column row-ID keying of the existing `columns` form.
Proto:
- Add `CsvTarget` message (target_id, column_names, types)
- Add `optional CsvTarget target = 5` to `CSVData`
Grammar:
- Add `csv_table` rule: `(table <rel_id> ["col"...] [Type...])`
- Rewrite `csv_data` to accept either `gnf_columns?` or `csv_table?`
in a single alternative (avoids LL(3) conflict on the shared prefix)
- Add construct/deconstruct helpers for the two modes
Regenerate parsers, pretty-printers, and proto stubs for Python,
Julia, and Go. Add `tests/lqp/csv_table.lqp` with four table-mode
variants and corresponding binary/snapshot artifacts.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 88009c6 commit 6304a9b
21 files changed
Lines changed: 14906 additions & 14161 deletions
File tree
- meta/src/meta
- proto/relationalai/lqp/v1
- sdks
- go/src
- lqp/v1
- julia/LogicalQueryProtocol.jl/src
- gen/relationalai/lqp/v1
- python/src/lqp
- gen
- proto/v1
- tests
- bin
- lqp
- pretty_debug
- pretty
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
1104 | 1105 | | |
1105 | 1106 | | |
1106 | 1107 | | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1107 | 1116 | | |
1108 | | - | |
1109 | | - | |
| 1117 | + | |
| 1118 | + | |
1110 | 1119 | | |
1111 | 1120 | | |
1112 | 1121 | | |
1113 | | - | |
1114 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1115 | 1125 | | |
1116 | 1126 | | |
1117 | 1127 | | |
| |||
1751 | 1761 | | |
1752 | 1762 | | |
1753 | 1763 | | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
1754 | 1792 | | |
1755 | 1793 | | |
1756 | 1794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
279 | 285 | | |
280 | 286 | | |
281 | 287 | | |
282 | 288 | | |
283 | 289 | | |
| 290 | + | |
284 | 291 | | |
285 | 292 | | |
286 | 293 | | |
| |||
0 commit comments