fix win magic and simplify groupby bug

This commit is contained in:
jingtaoye35
2024-04-08 06:29:15 +00:00
committed by ob-robot
parent a1d20eb244
commit 9b23623ea5
4 changed files with 31 additions and 10 deletions

View File

@ -14836,5 +14836,11 @@ bool ObTransformUtils::is_const_null(ObRawExpr &expr)
return bret;
}
// if sql is only one row, is_full_group_by skipped checking orderby in resolver.
bool ObTransformUtils::is_full_group_by(ObSelectStmt& stmt, ObSQLMode mode)
{
return !stmt.has_order_by() && is_only_full_group_by_on(mode);
}
} // namespace sql
} // namespace oceanbase