
Rex Johnston contributed to the MariaDB/server repository by engineering core improvements to the SQL query optimizer and database internals. Over nine months, he focused on resolving complex bugs and enhancing feature toggling, delivering fixes for optimizer trace integrity, derived table handling, and Common Table Expressions. Using C++, SQL, and deep knowledge of database optimization, Rex refactored code for better type safety, improved query plan reliability, and introduced a system variable for feature flag management. His work addressed subtle issues in query planning and execution, demonstrating thorough testing and careful alignment with MySQL semantics to ensure correctness and maintainability in production environments.

January 2026 monthly summary for MariaDB/server: Focused on improving SQL query resolution robustness to enhance correctness and stability of the SQL engine. Delivered bug fixes addressing HAVING alias handling and null reference safety in join evaluation; reinstated a necessary wrapper to ensure the correct table reference is used, and added checks to prevent null pointer dereferences when outer references are unresolvable. These changes improve correctness, stability, and reliability for complex queries in production deployments.
January 2026 monthly summary for MariaDB/server: Focused on improving SQL query resolution robustness to enhance correctness and stability of the SQL engine. Delivered bug fixes addressing HAVING alias handling and null reference safety in join evaluation; reinstated a necessary wrapper to ensure the correct table reference is used, and added checks to prevent null pointer dereferences when outer references are unresolvable. These changes improve correctness, stability, and reliability for complex queries in production deployments.
Monthly summary for 2025-12 focused on delivering stability and correctness for Common Table Expressions (CTEs) in MariaDB/server, with an emphasis on error handling, memory management, and multi-delete scenarios. Implemented targeted fixes and tests to improve reliability and reduce runtime errors in complex queries, delivering tangible business value for users relying on CTE-driven workflows.
Monthly summary for 2025-12 focused on delivering stability and correctness for Common Table Expressions (CTEs) in MariaDB/server, with an emphasis on error handling, memory management, and multi-delete scenarios. Implemented targeted fixes and tests to improve reliability and reduce runtime errors in complex queries, delivering tangible business value for users relying on CTE-driven workflows.
October 2025 monthly summary (MariaDB/server): Delivered a targeted feature enhancement to improve configurability and safe feature rollouts via a new mode feature flag system variable. Implemented @@new_mode to govern feature flags and server behaviors, with a hidden_values option added to system variable types to selectively suppress certain options from output. Updated help text and option parsing to reflect the new variable and behavior, and expanded test coverage with dedicated test cases for @@new_mode.
October 2025 monthly summary (MariaDB/server): Delivered a targeted feature enhancement to improve configurability and safe feature rollouts via a new mode feature flag system variable. Implemented @@new_mode to govern feature flags and server behaviors, with a hidden_values option added to system variable types to selectively suppress certain options from output. Updated help text and option parsing to reflect the new variable and behavior, and expanded test coverage with dedicated test cases for @@new_mode.
Month: 2025-08 summary focusing on optimizer derived table key statistics estimation fix in MariaDB/server. Delivered targeted fix to inaccurate key statistics for derived tables, added logic to infer statistics when generated key matches GROUP BY inside derived tables, improving optimizer row estimates and join plan quality. This work reduces overestimation, leading to better-performing derived-table queries and more stable plans.
Month: 2025-08 summary focusing on optimizer derived table key statistics estimation fix in MariaDB/server. Delivered targeted fix to inaccurate key statistics for derived tables, added logic to infer statistics when generated key matches GROUP BY inside derived tables, improving optimizer row estimates and join plan quality. This work reduces overestimation, leading to better-performing derived-table queries and more stable plans.
July 2025: Delivered Query Optimizer Improvements for Derived Tables and Subqueries in MariaDB/server. Consolidated enhancements to ensure correct key-length/temporary table limit checks enabling proper indexing for materialized derived tables; robust handling of NULL join conditions in split-materialized scenarios with NULL-safe comparisons; and correct IN-subquery pushdown on subsequent executions of prepared statements. This work is anchored by commits ef3d171e7e739dc79d972b98174db75578afc45b, a7d8c979526e502a8c231a06ea1c789fe251c950, and 687c8be813429f03267ecfcc1de8f9215b060b4f (MDEV-37044, MDEV-37230, MDEV-19269). Impact: notably faster and more reliable query plans for derived tables and subqueries, reduced regression risk, and improved business value via better performance and predictability. Skills demonstrated include SQL optimization, query planner development, derived table materialization, NULL-safe comparisons, prepared statements, and subquery pushdown.
July 2025: Delivered Query Optimizer Improvements for Derived Tables and Subqueries in MariaDB/server. Consolidated enhancements to ensure correct key-length/temporary table limit checks enabling proper indexing for materialized derived tables; robust handling of NULL join conditions in split-materialized scenarios with NULL-safe comparisons; and correct IN-subquery pushdown on subsequent executions of prepared statements. This work is anchored by commits ef3d171e7e739dc79d972b98174db75578afc45b, a7d8c979526e502a8c231a06ea1c789fe251c950, and 687c8be813429f03267ecfcc1de8f9215b060b4f (MDEV-37044, MDEV-37230, MDEV-19269). Impact: notably faster and more reliable query plans for derived tables and subqueries, reduced regression risk, and improved business value via better performance and predictability. Skills demonstrated include SQL optimization, query planner development, derived table materialization, NULL-safe comparisons, prepared statements, and subquery pushdown.
June 2025 (2025-06) — MariaDB/server: Delivered two critical bug fixes that improve query correctness and stability for analytic workloads relying on derived tables and nested grouping. Key fixes include: 1) proper null_rejecting propagation in LATERAL DERIVED/derived tables to avoid excluding valid NULL-containing rows; 2) resolved an assertion failure in Item_field::fix_outer_field when handling nested outer references in grouping SELECTs by ensuring resolution occurs at the lowest level inside the wrapper. These changes reduce incorrect results, improve reliability, and enhance maintainability. Commits: 60ebf3f796af3cb6cd6a8ed3429d2b10a3876022; aa3578aa8a56b53318860c55c6f1d4163d36b069; 729b27d3903a10c8b07d7c09c36ce6c0f4e131f8.
June 2025 (2025-06) — MariaDB/server: Delivered two critical bug fixes that improve query correctness and stability for analytic workloads relying on derived tables and nested grouping. Key fixes include: 1) proper null_rejecting propagation in LATERAL DERIVED/derived tables to avoid excluding valid NULL-containing rows; 2) resolved an assertion failure in Item_field::fix_outer_field when handling nested outer references in grouping SELECTs by ensuring resolution occurs at the lowest level inside the wrapper. These changes reduce incorrect results, improve reliability, and enhance maintainability. Commits: 60ebf3f796af3cb6cd6a8ed3429d2b10a3876022; aa3578aa8a56b53318860c55c6f1d4163d36b069; 729b27d3903a10c8b07d7c09c36ce6c0f4e131f8.
May 2025, focused on optimizer correctness for derived tables in MariaDB/server. Delivered a bug fix to prevent derived tables from being merged into their parent queries incorrectly in the optimizer, updating context paths to reflect the merged structure and ensuring processing aligns with MySQL optimization behavior. This change improves query correctness and consistency with MySQL semantics, reducing risk of incorrect plans in production.
May 2025, focused on optimizer correctness for derived tables in MariaDB/server. Delivered a bug fix to prevent derived tables from being merged into their parent queries incorrectly in the optimizer, updating context paths to reflect the merged structure and ensuring processing aligns with MySQL optimization behavior. This change improves query correctness and consistency with MySQL semantics, reducing risk of incorrect plans in production.
April 2025: Focused on stabilizing the query optimizer's handling of ORDER BY clauses with aliases. Implemented a targeted fix to ensure order items are updated correctly after fix_fields_if_needed_for_order_by, addressing warning mismatches and improving plan reliability. Commit 07b442aa688835610e1a3174154dc53cf273744a (MDEV-36607).
April 2025: Focused on stabilizing the query optimizer's handling of ORDER BY clauses with aliases. Implemented a targeted fix to ensure order items are updated correctly after fix_fields_if_needed_for_order_by, addressing warning mismatches and improving plan reliability. Commit 07b442aa688835610e1a3174154dc53cf273744a (MDEV-36607).
February 2023: Resolved a critical optimizer trace JSON integrity issue in MariaDB/server, refactoring data type handling and increasing test coverage for subqueries to improve debuggability and reduce debugging time.
February 2023: Resolved a critical optimizer trace JSON integrity issue in MariaDB/server, refactoring data type handling and increasing test coverage for subqueries to improve debuggability and reduce debugging time.
Overview of all repositories you've contributed to across your timeline