This is an automated email from the ASF dual-hosted git repository.
yjhjstz pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/cbdb-postgres-merge by this
push:
new e9cc61ac259 Add CMD_MERGE to ORCA unsupported commands for graceful
fallback
e9cc61ac259 is described below
commit e9cc61ac259fc5db6c374bf6953028eebcb7a750
Author: Jianghua Yang <[email protected]>
AuthorDate: Mon Mar 9 12:50:02 2026 -0700
Add CMD_MERGE to ORCA unsupported commands for graceful fallback
MERGE statements now fall back to the Postgres planner via the
ExmiQuery2DXLUnsupportedFeature exception path instead of hitting
a GPOS_ASSERT in TranslateQueryToDXL's default switch case, which
would crash in cassert builds.
---
src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
b/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
index 6c2cd98e8ee..c9820b92a28 100644
--- a/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
+++ b/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
@@ -437,7 +437,8 @@ CTranslatorQueryToDXL::CheckSupportedCmdType(Query *query)
}
static const SCmdNameElem unsupported_commands[] = {
- {CMD_UTILITY, GPOS_WSZ_LIT("UTILITY command")}};
+ {CMD_UTILITY, GPOS_WSZ_LIT("UTILITY command")},
+ {CMD_MERGE, GPOS_WSZ_LIT("MERGE command")}};
const ULONG length = GPOS_ARRAY_SIZE(unsupported_commands);
for (ULONG ul = 0; ul < length; ul++)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]