1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-3416 Revived MULT_EQUAL_FUNC support in conditions.

Removed unused symbol from DML code of the plugin.
This commit is contained in:
Roman Nozdrin
2019-08-14 16:59:06 +03:00
parent 0879d70d87
commit 08b1c69905
5 changed files with 137 additions and 136 deletions

View File

@ -470,6 +470,27 @@ bool SimpleFilter::operator==(const SimpleFilter& t) const
return true;
}
bool SimpleFilter::semanticEq(const SimpleFilter& t) const
{
if (fOp != NULL)
{
if (*fOp != *t.fOp)
return false;
}
if (fLhs != NULL)
{
if (*fLhs != t.fLhs && *fLhs != *t.fRhs)
return false;
}
if (fRhs != NULL)
{
if (*fRhs != t.fRhs && *fRhs != *t.fLhs)
return false;
}
return true;
}
bool SimpleFilter::operator==(const TreeNode* t) const
{
const SimpleFilter* o;

View File

@ -138,28 +138,36 @@ public:
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return true iff every member of t is a duplicate copy of every member of this; false otherwise
* @return true if every member of t is a duplicate copy of every member of this; false otherwise
*/
virtual bool operator==(const TreeNode* t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return true iff every member of t is a duplicate copy of every member of this; false otherwise
* @return true if every member of t is a duplicate copy of every member of this; false otherwise
*/
bool operator==(const SimpleFilter& t) const;
/** @brief Do a semantic equivalence test
*
* Do a semantic equivalence test.
* @return true if filter operation are the same and
* the sets of arguments are the same; false otherwise
*/
bool semanticEq(const SimpleFilter& t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return false iff every member of t is a duplicate copy of every member of this; true otherwise
* @return false if every member of t is a duplicate copy of every member of this; true otherwise
*/
virtual bool operator!=(const TreeNode* t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return false iff every member of t is a duplicate copy of every member of this; true otherwise
* @return false if every member of t is a duplicate copy of every member of this; true otherwise
*/
bool operator!=(const SimpleFilter& t) const;