You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-23 working_tpch1_compareLogOnly/onClauseJoins/bug4031.sql: A better solution
This commit is contained in:
@ -1604,16 +1604,18 @@ SimpleColumn* buildSimpleColFromDerivedTable(gp_walk_info& gwi, Item_field* ifp)
|
||||
|
||||
// @bug5634, @bug5635. mark used derived col on derived table.
|
||||
// outer join inner table filter can not be moved in
|
||||
// MariaDB 10.1: cached_table is never true for derived tables.
|
||||
// Find another way to determine outer_join
|
||||
// MariaDB 10.1: cached_table is never available for derived tables.
|
||||
// Find the uncached object in table_list
|
||||
TABLE_LIST* tblList = ifp->context->table_list;
|
||||
while (tblList)
|
||||
{
|
||||
if (strcasecmp(tblList->alias, ifp->table_name) == 0 &&
|
||||
!tblList->outer_join)
|
||||
if (strcasecmp(tblList->alias, ifp->table_name) == 0)
|
||||
{
|
||||
sc->derivedTable(derivedName);
|
||||
sc->derivedRefCol(cols[j].get());
|
||||
if (!tblList->outer_join)
|
||||
{
|
||||
sc->derivedTable(derivedName);
|
||||
sc->derivedRefCol(cols[j].get());
|
||||
}
|
||||
break;
|
||||
}
|
||||
tblList = tblList->next_local;
|
||||
|
Reference in New Issue
Block a user