!2960 TPCH查询重写优化,子连接提升

Merge pull request !2960 from haruworms/slk
This commit is contained in:
opengauss-bot
2023-02-28 08:14:51 +00:00
committed by Gitee
12 changed files with 2527 additions and 27 deletions

View File

@ -399,6 +399,7 @@ typedef enum {
PRED_PUSH_NORMAL = 128,
PRED_PUSH_FORCE = 256,
SUBLINK_PULLUP_DISABLE_EXPR = 512, /* disable pull sublink in expr clause */
SUBLINK_PULLUP_ENHANCED = 1024
} rewrite_param;
typedef enum {
@ -451,6 +452,9 @@ typedef enum {
#define DISABLE_SUBLINK_PULLUP_EXPR() \
((SUBLINK_PULLUP_DISABLE_EXPR) & (uint)u_sess->attr.attr_sql.rewrite_rule)
#define ENABLE_SUBLINK_PULLUP_ENHANCED() \
((SUBLINK_PULLUP_ENHANCED) & (uint)u_sess->attr.attr_sql.rewrite_rule)
#define ENABLE_PRED_PUSH_ALL(root) \
((ENABLE_PRED_PUSH(root) || ENABLE_PRED_PUSH_NORMAL(root) || ENABLE_PRED_PUSH_FORCE(root)) && permit_predpush(root))