From 4063328f97c0180ceab565cc3f411e3dcc07bca8 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 26 Oct 2007 21:24:43 +0000 Subject: Added support for outer joins. --- src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/com/amazon/carbonado/qe') diff --git a/src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java b/src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java index 60cf3da..93d4666 100644 --- a/src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java +++ b/src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java @@ -209,12 +209,20 @@ public class IndexedQueryAnalyzer { if (!isProperJoin(chainedProp.getPrimeProperty())) { break evaluate; } + if (chainedProp.isOuterJoin(0)) { + // Outer joins cannot be optimized via foreign indexes. + break evaluate; + } int count = chainedProp.getChainCount(); for (int i=0; i