Commit Graph

327 Commits

Author SHA1 Message Date
Pekka Enberg
a4afadfd2e core: Select struct documentation 2024-07-25 17:47:17 +03:00
Pekka Enberg
b2f47746a9 core: Move Select struct at the top of select.rs
It's the main data structure of the file so let's make it the first one.
2024-07-25 17:27:45 +03:00
Pekka Enberg
351242561d Kill anyhow usage
Switch anyhow to explicit `LimboError` type using thiserror crate, which
lets us make error handling more structured.
2024-07-25 17:15:08 +03:00
Brayan Jules
78568a53e3 fix format issues 2024-07-24 21:09:36 -04:00
Brayan Jules
529770bf32 bench: fix db lock on benchmark code by splitting the scopes between limbo and rusqlite. 2024-07-24 20:48:17 -04:00
Pekka Enberg
be392d1a4c core: Move translate_select() to select.rs 2024-07-24 21:20:15 +03:00
Pekka Enberg
be91b9aaca core: Move build_select() to select.rs 2024-07-24 21:13:08 +03:00
Ethan Niser
07d6ebef24 rename SingleRow -> Scalar 2024-07-24 08:53:47 -07:00
jussisaurio
1117aeef74 ORDER BY: support nullable sorting columns and qualified identifiers 2024-07-24 15:27:55 +03:00
Pekka Enberg
8306ccc5a2 Merge pull request #214 from penberg/185-upgrade-sqlite3-parser 2024-07-24 14:13:30 +03:00
jussisaurio
9eb68524e7 Upgrade sqlite3-parser #185 2024-07-24 14:05:39 +03:00
jussisaurio
d50d98d164 Dont return error from introspect_expression_for_cursors on unhandled expr type 2024-07-24 12:17:05 +03:00
jussisaurio
024633a709 Fix #212: unsupported expression InList 2024-07-24 12:15:34 +03:00
Pekka Enberg
0cb993e152 Merge pull request #204 from jussisaurio/multi-way-join
Refactor join processing / support multiway joins
2024-07-24 11:06:32 +03:00
Pekka Enberg
e3fea5cd92 Merge pull request #208 from jussisaurio/fix-agg-functions-on-text 2024-07-24 00:19:33 +03:00
jussisaurio
cc79ff5cfd Fix #205: agg functions on text columns 2024-07-23 23:18:01 +03:00
jussisaurio
588ab1af06 Run formatting and enforce formatting in CI 2024-07-23 23:14:36 +03:00
jussisaurio
d05ad6e602 Dont allocate separate vectors in split_constraint_to_terms 2024-07-23 19:34:30 +03:00
gandeevanr
dc01fa4a6f added support for parsing timezones 2024-07-23 09:19:17 -07:00
gandeevanr
7bb3412e66 added compatibility tests for date 2024-07-23 09:19:17 -07:00
gandeevanr
871fae3286 Implement the Date() method 2024-07-23 09:19:08 -07:00
jussisaurio
84cf4033d5 Refactor join processing
- Make all constraints a list of WhereTerms in a ProcessedWhereClause
- Support multiple joins instead of just one
2024-07-23 15:04:40 +03:00
Pekka Enberg
966ee39589 core: Move sorter.rs to vdbe/ 2024-07-23 14:54:41 +03:00
Pekka Enberg
e0663f2acf core: Move insn_to_str() to vdbe/explain.rs 2024-07-23 14:51:52 +03:00
Pekka Enberg
8f00888a6c core: Move ProgramBuilder to vdbe/builder module 2024-07-23 14:30:31 +03:00
Pekka Enberg
e154fc1826 core: Move vdbe.rs to vdbe/mode.rs
Preparation for splitting vdbe.rs into smaller modules.
2024-07-23 14:25:23 +03:00
Brayan Jules
c227001737 support handling functions with the same name but different parameters number 2024-07-22 17:02:36 -04:00
Brayan Jules
b81f7d9acd add cursor_hint to min and max scalar functions 2024-07-22 17:02:36 -04:00
Brayan Jules
dde00c3bc5 implementation of scalar functions min and max 2024-07-22 17:02:36 -04:00
Pekka Enberg
e33d69189c Merge pull request #200 from benclmnt/case-insensitive-cols 2024-07-22 17:49:41 +03:00
Joan Martinez
dd34a4c045 bench: fix compilation 2024-07-22 11:42:25 +02:00
Bennett Clement
0bf0b41692 Use case insensitive lookup for table and column 2024-07-22 16:27:36 +08:00
Bennett Clement
5b4bdc8aa3 Fix .schema
- Add tests for .schema
- Make command line sql arguments to allow .commands
2024-07-22 16:00:41 +08:00
Pekka Enberg
a5dd8fd92c core: Move select.rs to translate/ 2024-07-21 20:36:56 +03:00
Pekka Enberg
8ce67768e3 core: Move where_clause.rs to translate/ 2024-07-21 20:36:56 +03:00
Pekka Enberg
fee1530ea6 core: Move expr.rs to translate/ 2024-07-21 20:36:56 +03:00
Pekka Enberg
25228f44dc core: Rename translate.rs as translate/mod.rs
In preparation for moving more things under `translate` module.
2024-07-21 20:36:56 +03:00
Joan Martinez
6ff27454cc Merge branch 'main' of https://github.com/JoanFM/limbo into fix-io-arc 2024-07-21 19:31:27 +02:00
Joan Martinez
642603b6c7 perf-latency: fix enabling to build multitenancy 2024-07-21 19:13:02 +02:00
Joan Martinez
4bcae54aa9 fix: use Arc to handle IO 2024-07-21 19:01:58 +02:00
Bennett Clement
0a4e094ef6 Update COMPAT table and remove unused deps 2024-07-22 00:28:31 +08:00
Bennett Clement
4590c3cc7c Support select <columns> for order by operation 2024-07-22 00:28:27 +08:00
Bennett Clement
2e0d4c6fdb Implement basic ORDER BY
- Only SELECT * is supported
- Only ASC is supported
2024-07-22 00:28:00 +08:00
Bennett Clement
865b3a04e9 Implement orderby translation 2024-07-22 00:27:46 +08:00
JeanArhancet
50c12d24c8 feat: add length scalar function 2024-07-21 16:30:40 +02:00
JeanArhancet
569322446a feat: add round scalar function 2024-07-21 10:29:30 +02:00
JeanArhancet
fd5dd4f3e7 feat: add trim scalar function 2024-07-20 11:46:37 +02:00
JeanArhancet
a2d4d73ce5 refactor: use getrandom 2024-07-19 21:26:42 +02:00
JeanArhancet
6a5d6847c0 feat: add random function 2024-07-19 17:56:01 +02:00
Brayan Jules
73c8fc23ba implementation of scalar functions upper and lower 2024-07-19 00:38:12 -04:00