ORCA should not fallback for external tables
The commit a3f7f4d7 introduced a fall back if the query contained ONLY in the FROM clause for relations. However, it should exclude external tables. For external tables RangeTblEntry::inh is set to false always, so the commit causes ORCA to fall back for all external table queries. This commit fixes the issue by excluding external tables from the check of ONLY clause in CTranslatorQueryToDXL::PdxlnFromRelation(), and adds relevant test cases.
Showing
想要评论请 注册 或 登录