Nikita Sivukhin
f22bfad695
reduce amount of iterations in fuzz test
2025-02-09 23:44:38 +04:00
Nikita Sivukhin
5fa6a452c1
add TCL test for quoting of quotes
2025-02-09 23:43:34 +04:00
Nikita Sivukhin
cd4bfac059
fix quote functions
2025-02-09 23:43:34 +04:00
Nikita Sivukhin
cc7267b0bd
fix trim function pattern handling
2025-02-09 23:43:34 +04:00
Nikita Sivukhin
459a78bc64
add fuzz test for few string functions
2025-02-09 23:43:34 +04:00
Nikita Sivukhin
5773f767af
fix bug after refactoring in LIKE and GLOB
2025-02-09 23:42:53 +04:00
Nikita Sivukhin
a744dd8419
translate_and_mark helper with its previous signature is error prone - so replace it with more explicit option which accept target register
2025-02-09 23:18:46 +04:00
Nikita Sivukhin
d2fb772936
adjust CAST fuzzing options
2025-02-09 22:47:06 +04:00
Nikita Sivukhin
a37b74666f
remove unnecessary floor()
2025-02-09 22:41:08 +04:00
Nikita Sivukhin
3c4d9a93af
fix rounding of REAL to INTEGER
...
- SQLite rounds (x: f64) to the nearest number between x and 0 - so
basically truncates the x
2025-02-09 22:32:54 +04:00
Nikita Sivukhin
e3e399f9b1
fixup fuzz
2025-02-09 22:31:13 +04:00
Nikita Sivukhin
dff1fdc853
fix codegen of CAST
2025-02-09 22:20:28 +04:00
Nikita Sivukhin
9a3af4bd06
add CAST expression in the fuzz test
2025-02-09 22:20:13 +04:00
Nikita Sivukhin
adfc1f1af3
extend TCL tests for COALESCE
2025-02-09 22:01:33 +04:00
Nikita Sivukhin
abcebf7915
add coalesce in fuzz test
2025-02-09 21:55:43 +04:00
Nikita Sivukhin
cf59771599
allow multiple labels to be resolved as next emitted instruction
...
- right-nested expression can generate multiple labels which needs to be
resolved to next generated instruction
- for example, COALESCE(0, COALESCE(0, 1))
2025-02-09 21:54:48 +04:00
Nikita Sivukhin
0595e7308d
add TCL "CASE ... WHEN" test for null evaluation result
2025-02-09 21:53:50 +04:00
Nikita Sivukhin
a61736bec1
adjust evaluation of NULL results in WHEN clauses with SQLite spec
2025-02-09 21:33:54 +04:00
Nikita Sivukhin
6d67016492
fix bug after switch from HashMap to Vec
2025-02-09 21:33:37 +04:00
Nikita Sivukhin
c3b7938266
add case expr in fuzzer and adjust probabilities
2025-02-09 21:33:14 +04:00
pedrocarlo
fe453ecfc5
remove RC<String> requirement for build_text and new text
2025-02-09 13:44:39 -03:00
Aarni Koskela
eaea02c567
Fix a handful of typos
2025-02-09 18:08:29 +02:00
Pekka Enberg
e3eb2f1a9a
Merge 'bindings/java: Remove AbstractDB ' from Kim Seon Woo
...
## Purpose of this PR
- Remove `AbstractDB` and put limbo db related methods into `LimboDB`
## Changes
- Remove `AbstractDB`
- Implement `close()`
## Reference
- [Issue](https://github.com/tursodatabase/limbo/issues/615 )
Closes #946
2025-02-09 17:36:48 +02:00
Pekka Enberg
2a8687d13f
Merge 'bindings/java: Implement some minor TODOs ' from Kim Seon Woo
...
## Changes
- Implement relatively important (TODO) methods first for
`JDBC4Connection`, `JDBC4Statement`, `JDBC4PreparedStatement`
## Reference
- [Issue](https://github.com/tursodatabase/limbo/issues/615 )
Closes #945
2025-02-09 17:36:41 +02:00
Pekka Enberg
728e8ca4f1
Merge 'chore: remove unused dependencies' from meteorgan
...
remove unused dependencies
Closes #948
2025-02-09 17:36:18 +02:00
Nikita Sivukhin
1b9772e9ad
fix clippy
2025-02-09 19:36:14 +04:00
Pekka Enberg
9e65d7ddea
Merge 'perf/prepare: box even more stuff to shrink the YYMINORTYPE enum further' from Jussi Saurio
...
the boxings will continue until morale improves
<img width="621" alt="Screenshot 2025-02-09 at 14 16 21"
src="https://github.com/user-
attachments/assets/887d218d-3db7-4a64-ad81-b7431adb23bb" />
Closes #947
2025-02-09 17:36:03 +02:00
Nikita Sivukhin
32b5b0d019
introduce additional condition for cells distribution in order to avoid almost empty pages
2025-02-09 19:26:03 +04:00
Nikita Sivukhin
bc289d314a
adjust test a bit
2025-02-09 19:20:48 +04:00
Nikita Sivukhin
e23ea35993
add simple B-tree validation func
2025-02-09 19:20:37 +04:00
Nikita Sivukhin
a59589844d
fix insertion to the parent
2025-02-09 19:19:36 +04:00
Nikita Sivukhin
6c40f52fc8
separate fuzz tests in categories
2025-02-09 18:37:04 +04:00
Nikita Sivukhin
9049c91863
find cell in parent node
2025-02-09 18:36:37 +04:00
Nikita Sivukhin
9e4afd1d13
relax assertion
2025-02-09 18:36:26 +04:00
alpaylan
6f567bd2ef
fix formatting
2025-02-09 09:34:32 -05:00
alpaylan
47420db16f
- implement DROP TABLE support, toggled off from generation for now
...
- clean up the query generation/printing by separating it into different files and removing duplications
2025-02-09 09:28:33 -05:00
Nikita Sivukhin
8e6569434a
add fuzz
2025-02-09 18:10:59 +04:00
Nikita Sivukhin
a62265eef4
hanle balancing cases when more than 1 level is affected
2025-02-09 18:10:19 +04:00
Nikita Sivukhin
d2251b1dd1
fix
2025-02-09 18:09:53 +04:00
Nikita Sivukhin
e8a585f87a
adjust logging
2025-02-09 18:09:43 +04:00
김선우
2fa3a1e6ae
Apply lint
2025-02-09 22:46:48 +09:00
Nikita Sivukhin
8659dbba8e
fix pointer structure in case of root split
2025-02-09 17:31:39 +04:00
Nikita Sivukhin
d4bbad161b
handle case when we can't balance all cells between current page and one new allocated page
...
- if we have page which is tightly packed with relatively big cells, we
will be unable to balance its content if we will insert very big
(~page size) cell in the middle (because nothing can't be merged with
new cell - so we will need to split 1 page into 3)
2025-02-09 17:31:39 +04:00
Nikita Sivukhin
ea61f31843
clear overflow_cells
2025-02-09 17:31:39 +04:00
Nikita Sivukhin
6aa10701a4
fix comment
2025-02-09 17:31:39 +04:00
Nikita Sivukhin
eec0493c60
remove misleading comment
2025-02-09 17:31:39 +04:00
Nikita Sivukhin
fc502b86c7
fix defragmentation code a bit
2025-02-09 17:31:39 +04:00
Nikita Sivukhin
5ce3d12f75
fix typo
2025-02-09 17:31:39 +04:00
Nikita Sivukhin
62b4787d3d
simplify write_varint_to_vec function
2025-02-09 17:31:39 +04:00
Nikita Sivukhin
3557c8aada
adjust fuzz test
2025-02-09 17:31:39 +04:00