Pekka Enberg
55adf93282
Fix broken WHERE clause test case
...
The broken test case does not pass on SQLite so it's wrong. I suspect
the test was written before commit e377e09 ("Fix avg(), total(), count()
default value on empty set") when Limbo showed this behavior.
2024-07-12 08:22:13 +03:00
jussisaurio
1b0aa568a4
Basic where clause support
2024-07-12 00:26:32 +03:00
Bennett Clement
8a9eb74f9b
Implement total() aggregation function
...
- Returns 0.0 when called on non integer / non float columns
- Always returns floating point number
- fix: default for sum() should be NULL when there is no non-NULL row
per docs
2024-07-11 23:40:55 +08:00
Pere Diaz Bou
538d624770
core: apply Real affinity on columns stored as int
...
Values in sqlite3, as expected, can be stored in different formats to
optimize disk usage. In this case, a 79.0 float will be transformed to a
u8.
sqlite3 deals with this by adding a RealAffinity op after each column
that might need it. Therefore, in this pr we do exactly that :).
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com >
2024-07-10 21:21:49 +02:00
Pere Diaz Bou
90a4fc6bb8
test: cross-join-specific-columns
...
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com >
2024-07-09 18:08:16 +02:00
Pere Diaz Bou
e0431fdde1
testing: update testing with products table and cross join test
...
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com >
2024-07-09 18:08:16 +02:00
mazchew
fc0c3d539a
add min aggregate function
...
add changes for all.test
2024-07-09 03:14:02 +08:00
mazchew
3f339d07d3
add max aggregate function
2024-07-09 02:45:34 +08:00
Vivek Khatri
fe7c1b5b1d
Merge branch 'main' into add-agg-fn-count
2024-07-08 13:58:14 +05:30
Vivek
94358dc665
Add aggregate fn: count
2024-07-08 13:55:06 +05:30
Piotr Sarna
9376d68f73
testing: add a test for limit 0
2024-07-06 10:58:19 +02:00
Pekka Enberg
5b12e7af78
Add TCL tests for avg() and sum()
2024-07-03 11:50:22 +03:00
Pekka Enberg
106fe5f259
Generate testing.db with age column
2024-06-30 19:24:38 +03:00
Pekka Enberg
962ead96fc
Use Faker API in gen-database.py to generate random integer
2024-06-30 19:24:13 +03:00
Pekka Enberg
1573844680
Make all.test exit with failure if test fails
2024-06-30 17:35:05 +03:00
Pere Diaz Bou
1419ae93bc
gen-database: add age to user table to test agg
...
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com >
2024-06-30 12:48:19 +02:00
Pekka Enberg
650288e786
Switch testing.db to WAL mode
2024-06-29 17:36:58 +03:00
Pekka Enberg
cc101b1b00
Use larger and more realistic database for testing
2024-06-29 10:03:11 +03:00
Pekka Enberg
6c41e27bd2
Add test case for PRAGMA cache_size
2024-06-19 21:59:31 +03:00
Pekka Enberg
d6fbea25ba
testing: SELECT .. LIMIT test case
2024-06-19 17:48:24 +03:00
Pekka Enberg
706c4e60ae
Switch to using the testing hello.db database
2024-06-19 16:31:44 +03:00
Pekka Enberg
94c827d5ae
First pass on compatibility tests
...
With some help from GPT, add a TCL script that has similar syntax as
some of the SQLite source tree tests.
2024-06-19 16:11:55 +03:00
Pekka Enberg
917bf258d9
Fixup gen-database.py
2023-09-10 13:48:23 +03:00
Pekka Enberg
df39421f17
Add script for generating a test database
2023-09-04 20:39:22 +03:00
Pekka Enberg
c4a7766fa1
Switch test database to WAL mode
2023-09-03 08:15:17 +03:00
Pekka Enberg
37baae3ed7
Benchmark
2023-09-02 13:43:07 +03:00