Skip to content

[Bug] Full Outer Join + CTE: remote pipeline is not standalone executable (20101) #26595

Closed

Description

@Ariznawlll

环境

Field Value
环境 128 单机 (3CN + 1DN)
分支 4.2-dev
Run https://github.com/matrixorigin/mo-nightly-regression/actions/runs/30758785271/job/91533516700
用例 Query 1Y / 15 Full Outer Join

问题

25_full_outer_join_100M.sql 执行失败,MO 返回内部错误:

ERROR 20101: internal error: remote pipeline for CN "10.143.177.245:6002" is not standalone executable

失败的 SQL

对 big_data_test.table_basic_for_load_100M (1 亿行) 执行带 CTE 的 full outer join:

with l as (
  select col1, col3, col4, col5, col15
  from big_data_test.table_basic_for_load_100M
  where ((col1 = -1 and col5 = 46) or (col1 = 22 and col5 ...

错误分析

错误来自 pkg/sql/compile/scope.go:

if !checkPipelineStandaloneExecutableAtRemote(s) {
    return s.failRemoteRunBeforeStart(c, moerr.NewInternalErrorNoCtxf(
        "remote pipeline for CN %q is not standalone executable", s.NodeInfo.Addr))
}

查询优化器为 full outer join + CTE 生成了分布式执行计划,其中某个 pipeline 被分发到远端 CN 执行,但该 pipeline 包含不能被独立执行的操作,checkPipelineStandaloneExecutableAtRemote 校验失败。

相关文件

  • pkg/sql/compile/scope.go — 错误触发点
  • pkg/sql/compile/remote_dispatch_placement.go — checkPipelineStandaloneExecutableAtRemote 实现
  • pkg/sql/compile/compile.go — 计划编译

近期修改过 scope.go 的相关 commit:

Activity

  1. added
    kind/bug
    on Aug 3, 2026
  2. added theissue type on Aug 3, 2026
  3. added this to the MO-202608 milestone on Aug 3, 2026
  4. added 2 commits that reference this issue on Aug 3, 2026
    f7d1d56
    b18cdee
  5. XuPeng-SH commented on Aug 3, 2026

    @XuPeng-SH
    Contributor

    should be fixed

  6. added 3 commits that reference this issue on Sep 17, 2026
    f892b28
    87364f5
    6c36201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s-1

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions