Commit Graph

43 Commits

Author SHA1 Message Date
Pere Diaz Bou
800354144a remove extra join test 2024-11-12 23:11:04 +00:00
rjhallsted
af09f0b7f4 Add testing 2024-09-16 16:18:26 -07:00
jussisaurio
a108dea825 GROUP BY 2024-09-14 16:14:45 +03:00
sonhmai
c32bb91dd5 core: support modifiers in time function 2024-08-24 18:31:34 +07:00
Kim Seon Woo
c6402aa341 Add tcl 2024-08-18 21:00:36 +02:00
jussisaurio
d70eb6b3d7 fix seekrowid operator not emitting result when root 2024-08-17 09:16:24 +03:00
JeanArhancet
4d0a25c1b4 test: add json tcl test 2024-08-04 10:56:52 +02: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
Bennett Clement
2e0d4c6fdb Implement basic ORDER BY
- Only SELECT * is supported
- Only ASC is supported
2024-07-22 00:28:00 +08:00
Brayan Jules
b7c08b8fd5 feat: abs func initial implementation 2024-07-17 22:55:41 -04:00
Bennett Clement
2f738e0c8b Implement like function 2024-07-16 15:23:52 +08:00
Pekka Enberg
190e5844e7 testing: select.test 2024-07-16 07:26:44 +03:00
Pekka Enberg
fbe71cc1d7 testing: pragma.test 2024-07-16 07:24:28 +03:00
Pekka Enberg
ce1efa35eb testing: agg-functions.test 2024-07-16 07:24:28 +03:00
Pekka Enberg
75e72a4926 testing: where.test 2024-07-16 07:24:28 +03:00
Pekka Enberg
9fc48315cc testing: coalesce.test 2024-07-16 07:20:35 +03:00
Pekka Enberg
04b96a3d6c testing: join.test 2024-07-16 07:20:34 +03:00
Pere Diaz Bou
0a7d0588d7 core: implement AND and OR + complex conditions.
this also fixes NULL print to empty string

Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
2024-07-15 19:42:12 +02:00
jussisaurio
d1eded0e90 Test with sqlite3 executable in CI as well 2024-07-15 17:27:04 +03:00
Pekka Enberg
4751820b2b testing: Move test harness to tester.tcl
Move the generic test harness part into a separate file.
2024-07-15 08:19:21 +03:00
jussisaurio
ea793e4126 Inner join, table aliases, qualified column names 2024-07-14 20:09:40 +03:00
jussisaurio
851aea212d add coalesce(), refactor/rename add_label() 2024-07-13 23:03:56 +03:00
Ramkarthik Krishnamurthy
59b1852d41 Adds test for string_agg 2024-07-13 10:59:46 +05:30
Ramkarthik Krishnamurthy
a303e6ad96 Implements string_agg and extends group_concat to work with column delimiters 2024-07-13 02:13:28 +05:30
Ramkarthik Krishnamurthy
9268560a51 Implements group concat aggregate function 2024-07-13 00:55:40 +05:30
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
1573844680 Make all.test exit with failure if test fails 2024-06-30 17:35:05 +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