8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 15:23:03 +01:00
Commit Graph

410 Commits

Author SHA1 Message Date
dimitr
ce33f56150 Fixed the logic I have broken recently. 2010-02-03 08:34:34 +00:00
dimitr
71e4f9a2ff Fixed the first part of CORE-2832: Optimizer fails applying stream-local predicates before merging.
This part is related to the merge/hash join algorithms.
2010-02-03 05:42:59 +00:00
robocop
1d87d749f0 Misc. 2010-01-26 08:20:27 +00:00
dimitr
ea4077c888 1) Extended hash joins to handle more than two streams at once.
2) Allowed the hash table size to be configurable at runtime.
2010-01-22 07:17:35 +00:00
dimitr
d35f6e316b 1) Simplify the explicit plan handling between the parser and the engine. It makes no sense to pass the join type as it's ignored internally.
2) Support hash joins in the plan output and in the parser. For the latter, it's just the syntax sugar, same as loop vs merge join (see above).
2010-01-19 09:25:29 +00:00
dimitr
e2aab75891 Fixed the optimizer in regard to the partitioned window functions. 2010-01-19 07:52:38 +00:00
asfernandes
7fbee2c76b Feature OVER (PARTITION BY ...) clause for window functions 2010-01-18 21:37:47 +00:00
asfernandes
d26457bc6d Remove a var. shadow 2010-01-18 13:38:36 +00:00
dimitr
e9a3f9e213 Misc. 2010-01-18 13:18:20 +00:00
dimitr
df53be29bf Misc. 2010-01-18 11:39:34 +00:00
dimitr
4862999990 Cleanup. Hopefully valid this time ;-) 2010-01-15 11:36:42 +00:00
asfernandes
fc948e44a6 I believe the expression may produce wrong results depending on compiler optimizations 2010-01-14 16:45:13 +00:00
dimitr
2f28556820 Fixed CORE-1274 (Wrong results when PLAN MERGE is chosen and datatypes of the equality predicate arguments are different) and CORE-1752 (Results of a join with different collations depend on the execution plan). 2010-01-14 12:25:13 +00:00
dimitr
dfa7f00cf7 Trivial support for hash joins in the optimizer.
Currently they completely replace the merge joins (for debugging purposes).
2010-01-14 11:41:36 +00:00
dimitr
ef05207a8d Misc. 2010-01-14 07:13:38 +00:00
dimitr
27ff3bf1df Misc. 2010-01-13 11:46:54 +00:00
dimitr
7d7aef4228 Cleanup and refactoring in the optimizer (mostly related to rivers and sort/merge). 2010-01-13 11:46:16 +00:00
asfernandes
5277b99bcf Misc 2010-01-12 14:21:30 +00:00
dimitr
6256cebc83 Misc. 2010-01-12 09:53:08 +00:00
dimitr
5f39df8d27 Allowed merge joins for IS NOT DISTINCT equalities. 2010-01-11 17:37:49 +00:00
dimitr
59ee638622 Fixed the sorting. 2010-01-06 14:16:21 +00:00
robocop
eb571b41eb Warning. 2009-12-16 09:31:36 +00:00
asfernandes
b137cdfd80 Misc 2009-12-14 23:55:56 +00:00
dimitr
793bfb91dd Simplification. 2009-12-14 16:01:06 +00:00
robocop
00c5d74904 Cleanup. 2009-12-13 13:49:43 +00:00
dimitr
bda5c179d1 Cleanup the unneeded routines. 2009-12-13 11:50:27 +00:00
robocop
546bf76a24 Unused functions, unused parameters, unused vars. 2009-12-13 11:07:05 +00:00
robocop
dae574f7f1 Misc, style and unused vars. 2009-12-13 10:41:53 +00:00
asfernandes
7c38226dfc Misc 2009-12-12 21:02:01 +00:00
asfernandes
7b8ea84561 Sort maps refactor 2009-12-12 20:36:56 +00:00
asfernandes
008e1bdb59 Remove usage of plain array with count in [0] in the new classes 2009-12-12 19:00:43 +00:00
dimitr
8cbaa89e7e Fixed the merge join algorithm. Thanks to Adriano. 2009-12-10 15:26:46 +00:00
dimitr
d09fba5ebd Fixed (hopefully) CORE-2798: Incomplete plan output (lack of view names) when selecting from views containing procedures inside. 2009-12-10 14:47:52 +00:00
dimitr
4052e12065 Corrected the logic. Thanks to Adriano. 2009-12-10 10:13:22 +00:00
asfernandes
925bcc9cf6 Misc / warnings 2009-12-10 00:02:01 +00:00
dimitr
11495a55fb Refactored the whole RSB stuff into classes. They're inside the /recsrc sub-directory now.
Fixed the layering for WITH LOCK and (partially) ANY/ALL predicates.
Cleaned up the outdated code that never worked (mapping DISTINCT to an index, some VMS remainings).
Wiped out a lot of the pre-ODS11 optimizer logic. Some minor adjustments there.
Re-implemented the full outer join from scratch. This resolves CORE-2678 (full outer join cannot use available indices).
Resolved CORE-2796: DB_KEY is always zero for external tables.
Implemented the core part of the scrollable PSQL cursors. Implementation is still incomplete, but ready for testing.
Some other changes I don't recall at the moment ;-)

WARNING! The engine may be unstable. Please email me about any issues found.
2009-12-09 18:45:44 +00:00
asfernandes
7e04ec0ab5 Clean it per Claudio request 2009-11-27 14:39:48 +00:00
asfernandes
a3dd1d0482 Misc 2009-11-26 00:20:59 +00:00
robocop
579a456329 Style. 2009-11-25 08:38:52 +00:00
robocop
d6ceb87638 Cleanup. 2009-11-25 04:52:54 +00:00
robocop
75df0fc37d Comments. 2009-11-25 03:58:43 +00:00
robocop
804ad6048a Restrict us to ODS11 and ODS12 until the dust settles down. 2009-11-24 11:42:56 +00:00
robocop
1386adcf90 Style. 2009-11-16 08:06:31 +00:00
asfernandes
7e0f76e708 Misc 2009-11-02 14:42:27 +00:00
asfernandes
79e9320875 Refactor aggregate handling into AggregateRsb class 2009-10-31 19:03:30 +00:00
asfernandes
d59001341c Misc 2009-10-31 17:31:48 +00:00
dimitr
5ae7b7f340 Cleanup. 2009-10-31 11:08:11 +00:00
dimitr
e6909de7f7 Wipe out the SCROLLABLE_CURSORS code + minor cleanup.
Also, surfaced scrollability for PSQL cursors (without internal support yet).
2009-10-31 06:25:01 +00:00
asfernandes
ed0e0daeb3 - External Engines implementation.
- Plugins API.

- Feature CORE-2700 - UDR (User Defined Routines) Engine - C++ API supporting functions, triggers and stored procedures.
- Feature CORE-2470 - Support for alternate format of strings literals.
- Feature CORE-2310 - DDL triggers.
- Feature CORE-2312 - PSQL Packages.
- Feature CORE-1209 - CONTINUE statement.
- Feature CORE-1180 - DDL syntax to change (not) nullable state of columns.
- Feature CORE-2090 - Support OVER () clause with current aggregate functions.

- Fixed CORE-2699 - Common table expression context could be used with parameters.

- Introduce ODS 12.0.

- Work in progress in type-safe parser.
- Refactor some DDL commands (procedures and triggers) from DYN to DdlNodes.
- Refactor virtual tables to use a class hierarchy instead of namespaces. This is basic thing, not based on the changes done in Vulcan. Window functions is based on this work.
- Refactor COMMENT ON and DROP FUNCTION from DYN to DdlNodes. COMMENT ON do not use GDML anymore, it uses DSQL with PreparedStatement class.
- Refactor EXECUTE BLOCK to StmtNodes.
- Refactor the IUDF to SysFunctions. That eliminates RDB$GET_CONTEXT and RDB$SET_CONTEXT from RDB$FUNCTIONS.
2009-10-21 00:42:38 +00:00
dimitr
d60030074d Just a consistency with other variables. 2009-10-05 16:06:44 +00:00