1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-31 18:30:33 +03:00

fix(plugin): MCOL 5675 - fix error message for null-safe equal (#3754)

This commit is contained in:
Kristina Pavlova
2025-10-21 16:03:54 +03:00
committed by GitHub
parent 22454e6eef
commit 45fecde902
5 changed files with 37 additions and 1 deletions

View File

@@ -1692,6 +1692,12 @@ bool buildPredicateItem(Item_func* ifp, gp_walk_info* gwip)
{
// Convert "a <=> b" to (a = b OR (a IS NULL AND b IS NULL))"
idbassert(gwip->rcWorkStack.size() >= 2);
if(std::strcmp(ifp->func_name(), "<=>") == 0)
{
gwip->fatalParseError= true;
gwip->parseErrorText = "<=> (null-safe equal) is not supported in Columnstore";
return false;
}
ReturnedColumn* rhs = gwip->rcWorkStack.top();
gwip->rcWorkStack.pop();
ReturnedColumn* lhs = gwip->rcWorkStack.top();