Skip to content

Commit

Permalink
added missing conditional reorder for physical mapping to document
Browse files Browse the repository at this point in the history
  • Loading branch information
datomo committed Sep 15, 2023
1 parent e888988 commit bbd278a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ private static AlgNode handleDocumentEntity( AlgOptRuleCall call, Scan<?> scan,

private AlgNode handleRelationalEntity( AlgOptRuleCall call, Scan<?> scan, AllocationEntity alloc ) {
AlgNode alg = AdapterManager.getInstance().getAdapter( alloc.adapterId ).getRelScan( alloc.id, call.builder() );
alg = attachReorder( alg, scan, call.builder() );
if ( scan.getModel() == scan.entity.namespaceType ) {
alg = attachReorder( alg, scan, call.builder() );
}

if ( scan.getModel() != scan.entity.namespaceType ) {
// cross-model queries need a transformer first, we let another rule handle that
Expand Down

0 comments on commit bbd278a

Please sign in to comment.