-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Predicate expression optimizer causes segmentation fault with version 19.13.3.26 #7136
Copy link
Copy link
Closed
Closed
Copy link
Labels
bugConfirmed user-visible misbehaviour in official releaseConfirmed user-visible misbehaviour in official releasecomp-query-optimizerQuery plan optimization: physical plan steps, plan-level rewrites and optimizations (QueryPlan pa...Query plan optimization: physical plan steps, plan-level rewrites and optimizations (QueryPlan pa...crashCrash / segfault / abortCrash / segfault / abortst-acceptedThe issue is in our backlog, ready to takeThe issue is in our backlog, ready to take
Description
When set the enable_optimize_predicate_expression to 1, the following query will cause segmentation fault.
SET enable_optimize_predicate_expression = 1;
SELECT
ccc
FROM
(
SELECT 1 AS ccc
UNION ALL
SELECT *
FROM
(
SELECT 2 AS ccc
)
ANY INNER JOIN
(
SELECT 2 AS ccc
) USING (ccc)
)
WHERE ccc > 1;But do any of the following operation, the query will wok.
- Set the
enable_optimize_predicate_expressionto0 - Remove
SELECT 1 AS cccorWHERE ccc > 1or theJOINsubquery - Replace
*byccc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugConfirmed user-visible misbehaviour in official releaseConfirmed user-visible misbehaviour in official releasecomp-query-optimizerQuery plan optimization: physical plan steps, plan-level rewrites and optimizations (QueryPlan pa...Query plan optimization: physical plan steps, plan-level rewrites and optimizations (QueryPlan pa...crashCrash / segfault / abortCrash / segfault / abortst-acceptedThe issue is in our backlog, ready to takeThe issue is in our backlog, ready to take