Commit Graph

  • 29101a4b17 fix test Nikita Sivukhin 2025-10-29 22:49:29 +04:00
  • 476de1805a adjust bounds Nikita Sivukhin 2025-10-29 22:49:17 +04:00
  • c187595492 finalize improvements for toy index Nikita Sivukhin 2025-10-29 22:15:09 +04:00
  • 84a367b00e Merge 'Implement wasNull tracking in ResultSet getter methods' from 김민석 Pekka Enberg 2025-10-29 18:10:42 +02:00
  • d6f6cb3524 Merge 'perf/throughput: Improve reproducibility' from Pekka Enberg Pekka Enberg 2025-10-29 18:10:34 +02:00
  • 50ad2f801a Turso 0.3.0-pre.6 Pekka Enberg 2025-10-29 17:54:10 +02:00
  • eaff2d135f Merge 'Fix database state going back in time after sync' from Nikita Sivukhin Pekka Enberg 2025-10-29 17:53:45 +02:00
  • a69dc51b3c adjust assertions in core in order to store auxilary data in the index row Nikita Sivukhin 2025-10-29 18:11:06 +04:00
  • a440102b9b add components stats table Nikita Sivukhin 2025-10-29 18:10:48 +04:00
  • 79442b3da6 Merge 'translate: disallow correlated subqueries in HAVING and ORDER BY' from Jussi Saurio Jussi Saurio 2025-10-29 16:05:43 +02:00
  • 6cf2072b51 translate: disallow correlated subqueries in HAVING and ORDER BY Jussi Saurio 2025-10-29 15:25:59 +02:00
  • d013876998 cargo fmt Nikita Sivukhin 2025-10-29 16:46:51 +04:00
  • 9e04687108 add one more test Nikita Sivukhin 2025-10-29 16:22:56 +04:00
  • e5b11a3278 uncomment tests Nikita Sivukhin 2025-10-29 15:43:48 +04:00
  • e27b0d5d6b add more tests Nikita Sivukhin 2025-10-29 14:21:30 +04:00
  • 82d54999b1 fix pull operation in sync engine Nikita Sivukhin 2025-10-29 12:23:11 +04:00
  • b01cec2ba4 wip Nikita Sivukhin 2025-10-29 11:50:31 +04:00
  • 4c98861590 adjust logs Nikita Sivukhin 2025-10-29 11:47:21 +04:00
  • 7e63135abb reset statement after execution Nikita Sivukhin 2025-10-09 11:38:44 +04:00
  • 96990e1168 Merge 'Stmt reset cursors' from Nikita Sivukhin Jussi Saurio 2025-10-29 14:04:52 +02:00
  • 7a7cc832d6 Merge 'reset move_to_right_state cached state in case of quick balancing' from Nikita Sivukhin Jussi Saurio 2025-10-29 14:04:40 +02:00
  • c8be79ca94 cargo fmt Nikita Sivukhin 2025-10-29 15:15:45 +04:00
  • a2d11f9263 reset cursors when statement is reseted Nikita Sivukhin 2025-10-29 14:25:15 +04:00
  • 35c323730c add test to reproduce the bug with cached cursors for statement in between of different runs Nikita Sivukhin 2025-10-29 15:12:05 +04:00
  • 9629e2f26a reset move_to_right_state cached state in case of quick balancing Nikita Sivukhin 2025-10-29 14:24:56 +04:00
  • 4bf8ad8cfd Merge 'Support subqueries in all positions of a SELECT statement' from Jussi Saurio Jussi Saurio 2025-10-29 10:19:39 +02:00
  • fcb927ed24 Merge 'Initialize LIMIT after after ORDER BY / GROUP BY initialization' from Jussi Saurio Jussi Saurio 2025-10-29 10:17:05 +02:00
  • 29fe3b585a Add more tests and disable correlated IN-subqueries in HAVING position Jussi Saurio 2025-10-29 09:57:55 +02:00
  • ad723b615f Merge 'index_method: fully integrate into query planner' from Nikita Sivukhin Jussi Saurio 2025-10-29 09:42:37 +02:00
  • f10431d24f perf/throughput: Improve reproducibility Pekka Enberg 2025-10-27 10:51:02 +02:00
  • 067c4f624b Turso 0.3.0-pre.5 Pekka Enberg 2025-10-28 14:49:34 +02:00
  • dae2930743 Merge 'core: Switch to FxHash to improve performance' from Pekka Enberg Pekka Enberg 2025-10-28 14:49:09 +02:00
  • 76da008bc2 Merge 'bindings/rust: Enable mimalloc as global allocator' from Pekka Enberg Pekka Enberg 2025-10-28 14:49:02 +02:00
  • 810ed8ad60 Merge 'Don't allow autovacuum to be flipped on non-empty databases' from Pavan Nambi Pekka Enberg 2025-10-28 14:48:35 +02:00
  • ec1eac2943 Include subqueries in all positions in subquery fuzz test Jussi Saurio 2025-10-28 13:10:33 +02:00
  • ca70df21ac Update COMPAT.md Jussi Saurio 2025-10-28 11:53:42 +02:00
  • 5fa73679f3 Add TCL tests for subqueries in all positions of a SELECT Jussi Saurio 2025-10-28 11:47:46 +02:00
  • 4e48e1ffad Make an exception for Expr::SubqueryResult in collect_result_columns() Jussi Saurio 2025-10-28 11:47:15 +02:00
  • c80cf2831d Support subqueries in all positions of a SELECT statement Jussi Saurio 2025-10-28 11:44:36 +02:00
  • 49ee5529cb Evaluate uncorrelated subqueries as early as possible Jussi Saurio 2025-10-28 11:41:36 +02:00
  • 3294b78051 Initialize LIMIT after after ORDER BY / GROUP BY initialization Jussi Saurio 2025-10-28 13:08:05 +02:00
  • 0da3b4bfd3 fix after rebase Nikita Sivukhin 2025-10-28 11:26:02 +04:00
  • bec295f2c0 fix clippy Nikita Sivukhin 2025-10-28 00:44:23 +04:00
  • e7cab016d4 fix tests Nikita Sivukhin 2025-10-27 23:43:56 +04:00
  • 8ea733f917 fix bug with cursor allocation Nikita Sivukhin 2025-10-27 23:37:20 +04:00
  • 6f62621b5e adjust test more Nikita Sivukhin 2025-10-27 23:37:01 +04:00
  • 18989185d4 add simple fuzz test Nikita Sivukhin 2025-10-27 23:07:57 +04:00
  • 8acbe3de66 make query_start method to return bool - if result will have some rows or not Nikita Sivukhin 2025-10-27 23:07:37 +04:00
  • e42ce24534 fix fmt Nikita Sivukhin 2025-10-27 22:22:57 +04:00
  • 67c1855ba8 fix bug Nikita Sivukhin 2025-10-27 22:17:41 +04:00
  • 6206294584 fix clippy Nikita Sivukhin 2025-10-27 18:24:49 +04:00
  • 180713d32a plug IndexMethod into optimizer Nikita Sivukhin 2025-10-27 18:23:15 +04:00
  • d6972a9cf3 fix explain Nikita Sivukhin 2025-10-27 18:22:35 +04:00
  • 56796151bc support necessary helpers Nikita Sivukhin 2025-10-27 18:22:03 +04:00
  • 212bcfe08f integrate IndexMethod into select main loop Nikita Sivukhin 2025-10-27 18:21:33 +04:00
  • 61c9279a57 properly translate column which was covered by index method Nikita Sivukhin 2025-10-27 18:20:37 +04:00
  • d9ea3be4b8 forbid usage of IndexMethod in insert/delete loops Nikita Sivukhin 2025-10-27 18:19:14 +04:00
  • d65b7eddc0 add helper for simple binding of values in the AST Nikita Sivukhin 2025-10-27 18:18:48 +04:00
  • 35b96ae8d8 fix few places which needs to be hooked into new types Nikita Sivukhin 2025-10-27 18:17:49 +04:00
  • 8dd2644c07 add support for new cursor type in existing op codes and also implement new opcodes in the VM Nikita Sivukhin 2025-10-27 18:15:03 +04:00
  • e9b1ca12b6 add new access operation through IndexMethod Nikita Sivukhin 2025-10-27 18:10:20 +04:00
  • 37de39e5d1 integrate IndexMethod to the insert/delete flow Nikita Sivukhin 2025-10-27 18:06:35 +04:00
  • b994e2cbd8 add new Cursor type Nikita Sivukhin 2025-10-27 17:59:14 +04:00
  • 5af10e6ccb add IndexMethod specific VM instructions Nikita Sivukhin 2025-10-27 17:57:42 +04:00
  • f593fd1a8d remove deprecated flag from TempDatabase::new_empty() usage in fuzz test Jussi Saurio 2025-10-28 09:10:05 +02:00
  • dae2441dd1 Fix compilation error after incompatible merges Jussi Saurio 2025-10-28 07:05:18 +02:00
  • d993ac8157 Merge 'index_method: implement basic trait and simple toy index' from Nikita Sivukhin Jussi Saurio 2025-10-28 07:01:36 +02:00
  • 9c87b20cb2 Merge 'Where clause subquery support' from Jussi Saurio Jussi Saurio 2025-10-28 06:36:55 +02:00
  • ccaf39de93 Merge 'index method syntax extension' from Nikita Sivukhin Preston Thorpe 2025-10-27 14:03:22 -04:00
  • a0d6fcba23 Unignore those TPC-H tests that can be ignored Jussi Saurio 2025-10-27 16:00:42 +02:00
  • 0b08f006d3 Add subquery fuzz test Jussi Saurio 2025-10-27 16:00:26 +02:00
  • 82995b4264 Add subquery TCL tests Jussi Saurio 2025-10-27 16:00:19 +02:00
  • f288dfd3d0 TableMask: take tables referenced in subqueries into account Jussi Saurio 2025-10-27 15:58:49 +02:00
  • 59363a1be3 Translate Expr::SubqueryResult into bytecode Jussi Saurio 2025-10-27 15:57:53 +02:00
  • bc2a7c79f9 Add TODO comment about subquery positions we don't support yet Jussi Saurio 2025-10-27 15:54:44 +02:00
  • 8fecd82311 Emit non from clause subqueries in translation Jussi Saurio 2025-10-27 15:53:18 +02:00
  • bf66999f64 Add emit_non_from_clause_subquery() method Jussi Saurio 2025-10-27 14:44:26 +02:00
  • 8e1987bd5d Rename emit_subqueries() to emit_from_clause_subqueries() to disambiguate Jussi Saurio 2025-10-27 14:42:16 +02:00
  • 58caf32fe2 Add plan_subqueries_from_where_clause() method and use it in Select planning Jussi Saurio 2025-10-27 14:34:53 +02:00
  • c54988192e Add SelectPlan::is_correlated() method Jussi Saurio 2025-10-27 14:32:48 +02:00
  • 9b62687c41 Change unwrap_parens() to return Parenthesized as is, if it contains multiple values Jussi Saurio 2025-10-27 14:31:04 +02:00
  • 580333ddd3 Add NonFromClauseSubquery struct and add a Vec of them to SelectPlan Jussi Saurio 2025-10-27 14:27:16 +02:00
  • 609d9957c1 Add new QueryDestination variants for subquery types Jussi Saurio 2025-10-27 14:20:58 +02:00
  • 5bd6e033e6 Rename emit_subquery() to emit_from_clause_subquery() to disambiguate Jussi Saurio 2025-10-27 14:13:23 +02:00
  • 5eb74ce8e6 AST: Add Expr::SubqueryResult variant and enum SubqueryType Jussi Saurio 2025-10-27 14:12:23 +02:00
  • e7f6b3cd4c slightly adjust test Nikita Sivukhin 2025-10-27 17:00:56 +04:00
  • 05f0ee6a72 add more integration in order to properly skip backing_btree index_method Nikita Sivukhin 2025-10-27 17:00:26 +04:00
  • bdbfac20fb resolve index method parameters Nikita Sivukhin 2025-10-27 16:36:56 +04:00
  • a151770cea add minimal support of index_methods in the query planner in order to make integration tests work Nikita Sivukhin 2025-10-27 16:34:49 +04:00
  • 97dcc0869e register index_methods as db builtin extensions Nikita Sivukhin 2025-10-27 16:29:17 +04:00
  • cb11417883 add index_method trait and implement simple inverted index for sparse vectors Nikita Sivukhin 2025-10-27 16:22:52 +04:00
  • 5d81f8db13 add simple test for index_method API Nikita Sivukhin 2025-10-27 16:15:50 +04:00
  • e7aa7ee2ff ProgramBuilder: add a few utility methods needed for correlated subqueries Jussi Saurio 2025-10-27 14:03:41 +02:00
  • 5c05383cc1 Implement union for ColumnUsedMask Jussi Saurio 2025-10-27 13:57:56 +02:00
  • 3a1d6d8879 Improve error messages in translate_expr() Jussi Saurio 2025-10-27 13:51:59 +02:00
  • de81af29e5 find_table_by_internal_id() returns whether table is an outer query reference Jussi Saurio 2025-10-27 13:47:49 +02:00
  • c0c425b5d6 EXPLAIN: indent BeginSubrtn...Return blocks properly Jussi Saurio 2025-10-27 13:42:00 +02:00
  • 22fe9452ac remove unnecessary parameter from integration tests Nikita Sivukhin 2025-10-27 15:16:12 +04:00
  • 8a80e8b743 rename custom modules to index_method like in postgresql Nikita Sivukhin 2025-10-27 13:18:18 +04:00
  • 408ca235d1 small refactoring Nikita Sivukhin 2025-10-27 12:36:43 +04:00