更新时间:2025-12-12 GMT+08:00

案例:Type of Record in non-real table can not be shipped

问题根因

8.2.1.x特定版本下UPDATE语句+WITH语句场景存在下推问题。

案例1:UPDATE语句不下推

  1. 通过GUC参数enable_stream_ctescan设置stream计划下不支持ctescan,在语句执行前进行设置。
    1
    SET enable_stream_ctescan = off
    
  2. 业务语句执行完再重置参数。
    1
    SET enable_stream_ctescan = on 
    
  3. 语句中UPDATE关键字后加hint,具体方式为 UPDATE /*+ set global(enable_stream_ctescan off) */