Commit Graph

13 Commits

Author SHA1 Message Date
Asdine El Hrychy
a7309a70c5 Add tree package 2021-12-04 10:51:07 +04:00
Asdine El Hrychy
0327fe9407 Normalize stream environment 2021-11-19 16:25:43 +01:00
Asdine El Hrychy
b9e73de3f4 Replace HashAggregator by GroupAggregator 2021-09-30 22:49:51 +04:00
Asdine El Hrychy
bdbb996790 Use Union operator for DISTINCT 2021-09-30 21:28:01 +04:00
Asdine El Hrychy
412d30030d Add support for UNION 2021-09-30 20:47:22 +04:00
Jean Hadrien Chabran
4a6e68439a Refactor to handle errors with internal/errors (#432)
All new error handling code now rely on internal/errors package
which provides a compilation time toggle that enables to capture
stacktraces for easier debugging while developing.

It also comes with a new testutil/assert package which replaces the require
package when it comes to checking or comparing errors and printing the
stack traces if needed.

Finally, the test target of the Makefile uses the debug build tag by default. 
A testnodebug target is also provided for convenience and to make sure no
tests are broken due to not having used the internal/errors or testutil/assert package.

See #431 for more details
2021-08-22 11:47:54 +03:00
Asdine El Hrychy
daf4f79e9f Fix field name when using alias (#424)
This fixes a bug where using AS wouldn't rename the field
2021-07-24 18:31:53 +04:00
Asdine El Hrychy
f966172cee Introduce Value interface (#422)
This replaces the Value struct by an interface to allow us to override some
values behavior in the future.
It also introduces a new package types, which contains type definitions, comparison,
and arithmetics.
Concerning encoding, Genji now only uses on type of encoding for values. This simplifies
indexing logic as well as table access in general.
2021-07-21 22:05:44 +04:00
Asdine El Hrychy
6af0a6f114 Add new environment package 2021-07-02 18:59:20 +04:00
Asdine El Hrychy
0d10465ba3 Make SELECT open a read-write tx when using NEXT VALUE FOR 2021-06-27 16:20:02 +04:00
Jean Hadrien Chabran
c00e6b046f Add union all clause (#408)
* Lay out the base for UNION stmt

* Optimize sub streams when there is a concat op
2021-06-05 16:22:45 +02:00
Asdine El Hrychy
9918cd6f55 Thread safe statements (#406)
Previously, expressions and params were evaluated
during the planning phase. This change builds the query
plan without evaluating params and expressions
which are then evaluated only during the execution phase.
2021-06-04 10:56:23 +04:00
Asdine El Hrychy
7a98a2025f Move statements into their own package 2021-05-30 12:47:17 +04:00