http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d906bd89/asterixdb/asterix-app/src/test/resources/optimizerts/results/fj-dblp-csx-selflink.plan
----------------------------------------------------------------------
diff --git 
a/asterixdb/asterix-app/src/test/resources/optimizerts/results/fj-dblp-csx-selflink.plan
 
b/asterixdb/asterix-app/src/test/resources/optimizerts/results/fj-dblp-csx-selflink.plan
new file mode 100644
index 0000000..a020bf4
--- /dev/null
+++ 
b/asterixdb/asterix-app/src/test/resources/optimizerts/results/fj-dblp-csx-selflink.plan
@@ -0,0 +1,2436 @@
+-- DISTRIBUTE_RESULT  |PARTITIONED|
+  -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+    -- STREAM_PROJECT  |PARTITIONED|
+      -- ASSIGN  |PARTITIONED|
+        -- STREAM_PROJECT  |PARTITIONED|
+          -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+            -- HYBRID_HASH_JOIN [$$37, $$38][$$idLeft_0, $$idLeft_1]  
|PARTITIONED|
+              -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                -- STREAM_PROJECT  |PARTITIONED|
+                  -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                    -- HYBRID_HASH_JOIN [$$37, $$38][$$idLeft_0, $$idLeft_1]  
|PARTITIONED|
+                      -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                        -- STREAM_PROJECT  |PARTITIONED|
+                          -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                            -- HYBRID_HASH_JOIN [$$37, $$38][$$idLeft_0, 
$$idLeft_1]  |PARTITIONED|
+                              -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                -- STREAM_PROJECT  |PARTITIONED|
+                                  -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                    -- HYBRID_HASH_JOIN [$$37][$$idLeft_0]  
|PARTITIONED|
+                                      -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                        -- STREAM_PROJECT  |PARTITIONED|
+                                          -- ASSIGN  |PARTITIONED|
+                                            -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                              -- REPLICATE  |PARTITIONED|
+                                                -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                  -- STREAM_PROJECT  
|PARTITIONED|
+                                                    -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                      -- DATASOURCE_SCAN  
|PARTITIONED|
+                                                        -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                          -- 
EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                      -- HASH_PARTITION_EXCHANGE [$$idLeft_0]  
|PARTITIONED|
+                                        -- STREAM_PROJECT  |PARTITIONED|
+                                          -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                            -- STREAM_PROJECT  |PARTITIONED|
+                                              -- ASSIGN  |PARTITIONED|
+                                                -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                  -- REPLICATE  |PARTITIONED|
+                                                    -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                      -- HYBRID_HASH_JOIN 
[$$693][$$734]  |PARTITIONED|
+                                                        -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                          -- STREAM_PROJECT  
|PARTITIONED|
+                                                            -- ASSIGN  
|PARTITIONED|
+                                                              -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                -- REPLICATE  
|PARTITIONED|
+                                                                  -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                    -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                      -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                        -- 
DATASOURCE_SCAN  |PARTITIONED|
+                                                                          -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                            -- 
EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                        -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                          -- STREAM_PROJECT  
|PARTITIONED|
+                                                            -- ASSIGN  
|PARTITIONED|
+                                                              -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                -- REPLICATE  
|PARTITIONED|
+                                                                  -- 
HASH_PARTITION_EXCHANGE [$$829]  |PARTITIONED|
+                                                                    -- 
EXTERNAL_GROUP_BY[$$1046, $$1044]  |PARTITIONED|
+                                                                            {
+                                                                              
-- AGGREGATE  |LOCAL|
+                                                                               
 -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                            }
+                                                                      -- 
HASH_PARTITION_EXCHANGE [$$1046, $$1044]  |PARTITIONED|
+                                                                        -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                          -- 
STREAM_SELECT  |PARTITIONED|
+                                                                            -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                              
-- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
 -- HYBRID_HASH_JOIN [$$841][$$840]  |PARTITIONED|
+                                                                               
   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
       -- ASSIGN  |PARTITIONED|
+                                                                               
         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
           -- REPLICATE  |PARTITIONED|
+                                                                               
             -- HASH_PARTITION_EXCHANGE [$$701]  |PARTITIONED|
+                                                                               
               -- UNNEST  |PARTITIONED|
+                                                                               
                 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                   -- PRE_CLUSTERED_GROUP_BY[$$694]  |PARTITIONED|
+                                                                               
                           {
+                                                                               
                             -- AGGREGATE  |LOCAL|
+                                                                               
                               -- STREAM_SELECT  |LOCAL|
+                                                                               
                                 -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                           }
+                                                                               
                     -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                       -- STABLE_SORT [$$694(ASC), $$708(ASC)]  |PARTITIONED|
+                                                                               
                         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                           -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                             -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                               -- HYBRID_HASH_JOIN [$$709][$$712]  |PARTITIONED|
+                                                                               
                                 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                   -- UNNEST  |PARTITIONED|
+                                                                               
                                     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                       -- ASSIGN  |PARTITIONED|
+                                                                               
                                         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                           -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                                             -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                               -- EMPTY_TUPLE_SOURCE  
|PARTITIONED|
+                                                                               
                                 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                   -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                     -- ASSIGN  |PARTITIONED|
+                                                                               
                                       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                         -- REPLICATE  |PARTITIONED|
+                                                                               
                                           -- BROADCAST_EXCHANGE  |PARTITIONED|
+                                                                               
                                             -- ASSIGN  |PARTITIONED|
+                                                                               
                                               -- RUNNING_AGGREGATE  
|PARTITIONED|
+                                                                               
                                                 -- STREAM_PROJECT  
|PARTITIONED|
+                                                                               
                                                   -- SORT_MERGE_EXCHANGE 
[$$1147(ASC), $$899(ASC) ]  |PARTITIONED|
+                                                                               
                                                     -- STABLE_SORT 
[$$1147(ASC), $$899(ASC)]  |PARTITIONED|
+                                                                               
                                                       -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                         -- 
EXTERNAL_GROUP_BY[$$1671]  |PARTITIONED|
+                                                                               
                                                                 {
+                                                                               
                                                                   -- AGGREGATE 
 |LOCAL|
+                                                                               
                                                                     -- 
NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                                 }
+                                                                               
                                                           -- 
HASH_PARTITION_EXCHANGE [$$1671]  |PARTITIONED|
+                                                                               
                                                             -- 
EXTERNAL_GROUP_BY[$$901]  |PARTITIONED|
+                                                                               
                                                                     {
+                                                                               
                                                                       -- 
AGGREGATE  |LOCAL|
+                                                                               
                                                                         -- 
NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                                     }
+                                                                               
                                                               -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                 -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                   -- UNNEST  
|PARTITIONED|
+                                                                               
                                                                     -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                       -- 
ASSIGN  |PARTITIONED|
+                                                                               
                                                                         -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                           -- 
ASSIGN  |PARTITIONED|
+                                                                               
                                                                             -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                               
-- REPLICATE  |PARTITIONED|
+                                                                               
                                                                                
 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
   -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
     -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
       -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                                                                                
         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
           -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                               
   -- HASH_PARTITION_EXCHANGE [$$840]  |PARTITIONED|
+                                                                               
     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
       -- UNNEST  |PARTITIONED|
+                                                                               
         -- ASSIGN  |PARTITIONED|
+                                                                               
           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
             -- PRE_CLUSTERED_GROUP_BY[$$833]  |PARTITIONED|
+                                                                               
                     {
+                                                                               
                       -- AGGREGATE  |LOCAL|
+                                                                               
                         -- STREAM_SELECT  |LOCAL|
+                                                                               
                           -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                     }
+                                                                               
               -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                 -- STABLE_SORT [$$833(ASC), $$867(ASC)]  |PARTITIONED|
+                                                                               
                   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                         -- HYBRID_HASH_JOIN [$$868][$$871]  |PARTITIONED|
+                                                                               
                           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                             -- UNNEST  |PARTITIONED|
+                                                                               
                               -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                 -- ASSIGN  |PARTITIONED|
+                                                                               
                                   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                     -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                                       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                         -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                               
                           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                             -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                               -- ASSIGN  |PARTITIONED|
+                                                                               
                                 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                   -- REPLICATE  |PARTITIONED|
+                                                                               
                                     -- BROADCAST_EXCHANGE  |PARTITIONED|
+                                                                               
                                       -- ASSIGN  |PARTITIONED|
+                                                                               
                                         -- RUNNING_AGGREGATE  |PARTITIONED|
+                                                                               
                                           -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                             -- SORT_MERGE_EXCHANGE 
[$$1147(ASC), $$899(ASC) ]  |PARTITIONED|
+                                                                               
                                               -- STABLE_SORT [$$1147(ASC), 
$$899(ASC)]  |PARTITIONED|
+                                                                               
                                                 -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                   -- EXTERNAL_GROUP_BY[$$1671] 
 |PARTITIONED|
+                                                                               
                                                           {
+                                                                               
                                                             -- AGGREGATE  
|LOCAL|
+                                                                               
                                                               -- 
NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                           }
+                                                                               
                                                     -- HASH_PARTITION_EXCHANGE 
[$$1671]  |PARTITIONED|
+                                                                               
                                                       -- 
EXTERNAL_GROUP_BY[$$901]  |PARTITIONED|
+                                                                               
                                                               {
+                                                                               
                                                                 -- AGGREGATE  
|LOCAL|
+                                                                               
                                                                   -- 
NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                               }
+                                                                               
                                                         -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                                               
                                                           -- STREAM_PROJECT  
|PARTITIONED|
+                                                                               
                                                             -- UNNEST  
|PARTITIONED|
+                                                                               
                                                               -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                 -- ASSIGN  
|PARTITIONED|
+                                                                               
                                                                   -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                     -- ASSIGN  
|PARTITIONED|
+                                                                               
                                                                       -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                         -- 
REPLICATE  |PARTITIONED|
+                                                                               
                                                                           -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                             -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                               
-- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
 -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                                                                                
   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
     -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                              -- HASH_PARTITION_EXCHANGE [$$idLeft_0]  
|PARTITIONED|
+                                -- STREAM_PROJECT  |PARTITIONED|
+                                  -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                    -- HYBRID_HASH_JOIN [$$39][$$idRight_0]  
|PARTITIONED|
+                                      -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                        -- STREAM_PROJECT  |PARTITIONED|
+                                          -- ASSIGN  |PARTITIONED|
+                                            -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                              -- REPLICATE  |PARTITIONED|
+                                                -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                  -- STREAM_PROJECT  
|PARTITIONED|
+                                                    -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                      -- DATASOURCE_SCAN  
|PARTITIONED|
+                                                        -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                          -- 
EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                      -- HASH_PARTITION_EXCHANGE [$$idRight_0] 
 |PARTITIONED|
+                                        -- EXTERNAL_GROUP_BY[$$988, $$990, 
$$982]  |PARTITIONED|
+                                                {
+                                                  -- AGGREGATE  |LOCAL|
+                                                    -- NESTED_TUPLE_SOURCE  
|LOCAL|
+                                                }
+                                          -- HASH_PARTITION_EXCHANGE [$$988, 
$$990, $$982]  |PARTITIONED|
+                                            -- STREAM_PROJECT  |PARTITIONED|
+                                              -- STREAM_SELECT  |PARTITIONED|
+                                                -- STREAM_PROJECT  
|PARTITIONED|
+                                                  -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                    -- HYBRID_HASH_JOIN 
[$$prefixTokenRight][$$prefixTokenLeft]  |PARTITIONED|
+                                                      -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                        -- STREAM_PROJECT  
|PARTITIONED|
+                                                          -- ASSIGN  
|PARTITIONED|
+                                                            -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                              -- REPLICATE  
|PARTITIONED|
+                                                                -- 
HASH_PARTITION_EXCHANGE [$$800]  |PARTITIONED|
+                                                                  -- UNNEST  
|PARTITIONED|
+                                                                    -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                      -- 
PRE_CLUSTERED_GROUP_BY[$$793]  |PARTITIONED|
+                                                                              {
+                                                                               
 -- AGGREGATE  |LOCAL|
+                                                                               
   -- STREAM_SELECT  |LOCAL|
+                                                                               
     -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                              }
+                                                                        -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                          -- 
STABLE_SORT [$$793(ASC), $$807(ASC)]  |PARTITIONED|
+                                                                            -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                              
-- STREAM_PROJECT  |PARTITIONED|
+                                                                               
 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
   -- HYBRID_HASH_JOIN [$$808][$$811]  |PARTITIONED|
+                                                                               
     -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
       -- UNNEST  |PARTITIONED|
+                                                                               
         -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
           -- ASSIGN  |PARTITIONED|
+                                                                               
             -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
               -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                   -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                               
     -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
       -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
         -- ASSIGN  |PARTITIONED|
+                                                                               
           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
             -- REPLICATE  |PARTITIONED|
+                                                                               
               -- BROADCAST_EXCHANGE  |PARTITIONED|
+                                                                               
                 -- ASSIGN  |PARTITIONED|
+                                                                               
                   -- RUNNING_AGGREGATE  |PARTITIONED|
+                                                                               
                     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                       -- SORT_MERGE_EXCHANGE [$$1146(ASC), $$885(ASC) ]  
|PARTITIONED|
+                                                                               
                         -- STABLE_SORT [$$1146(ASC), $$885(ASC)]  |PARTITIONED|
+                                                                               
                           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                             -- EXTERNAL_GROUP_BY[$$1669]  |PARTITIONED|
+                                                                               
                                     {
+                                                                               
                                       -- AGGREGATE  |LOCAL|
+                                                                               
                                         -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                     }
+                                                                               
                               -- HASH_PARTITION_EXCHANGE [$$1669]  
|PARTITIONED|
+                                                                               
                                 -- EXTERNAL_GROUP_BY[$$887]  |PARTITIONED|
+                                                                               
                                         {
+                                                                               
                                           -- AGGREGATE  |LOCAL|
+                                                                               
                                             -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                         }
+                                                                               
                                   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                       -- UNNEST  |PARTITIONED|
+                                                                               
                                         -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                           -- ASSIGN  |PARTITIONED|
+                                                                               
                                             -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                               -- REPLICATE  |PARTITIONED|
+                                                                               
                                                 -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                   -- STREAM_PROJECT  
|PARTITIONED|
+                                                                               
                                                     -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                       -- DATASOURCE_SCAN  
|PARTITIONED|
+                                                                               
                                                         -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                                               
                                                           -- 
EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                      -- 
HASH_PARTITION_EXCHANGE [$$prefixTokenLeft]  |PARTITIONED|
+                                                        -- STREAM_PROJECT  
|PARTITIONED|
+                                                          -- UNNEST  
|PARTITIONED|
+                                                            -- ASSIGN  
|PARTITIONED|
+                                                              -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                  -- 
PRE_CLUSTERED_GROUP_BY[$$137, $$138, $$142, $$143]  |PARTITIONED|
+                                                                          {
+                                                                            -- 
AGGREGATE  |LOCAL|
+                                                                              
-- STREAM_SELECT  |LOCAL|
+                                                                               
 -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                          }
+                                                                    -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                      -- 
STABLE_SORT [$$137(ASC), $$138(ASC), $$142(ASC), $$143(ASC), $$i(ASC)]  
|PARTITIONED|
+                                                                        -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                          -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                            -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                              
-- HYBRID_HASH_JOIN [$$token][$$tokenGroupped]  |PARTITIONED|
+                                                                               
 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
   -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
     -- ASSIGN  |PARTITIONED|
+                                                                               
       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
         -- REPLICATE  |PARTITIONED|
+                                                                               
           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
             -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
               -- UNNEST  |PARTITIONED|
+                                                                               
                 -- ASSIGN  |PARTITIONED|
+                                                                               
                   -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                     -- ASSIGN  |PARTITIONED|
+                                                                               
                       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                         -- HYBRID_HASH_JOIN [$$791][$$825]  |PARTITIONED|
+                                                                               
                           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                             -- REPLICATE  |PARTITIONED|
+                                                                               
                               -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                 -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                     -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                                       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                         -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                               
                           -- HASH_PARTITION_EXCHANGE [$$825]  |PARTITIONED|
+                                                                               
                             -- HYBRID_HASH_JOIN [$$792][$$829]  |PARTITIONED|
+                                                                               
                               -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                 -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                   -- ASSIGN  |PARTITIONED|
+                                                                               
                                     -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                       -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                                         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                           -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                               
                               -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                 -- REPLICATE  |PARTITIONED|
+                                                                               
                                   -- HASH_PARTITION_EXCHANGE [$$829]  
|PARTITIONED|
+                                                                               
                                     -- EXTERNAL_GROUP_BY[$$1046, $$1044]  
|PARTITIONED|
+                                                                               
                                             {
+                                                                               
                                               -- AGGREGATE  |LOCAL|
+                                                                               
                                                 -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                             }
+                                                                               
                                       -- HASH_PARTITION_EXCHANGE [$$1046, 
$$1044]  |PARTITIONED|
+                                                                               
                                         -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                           -- STREAM_SELECT  |PARTITIONED|
+                                                                               
                                             -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                               -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                 -- HYBRID_HASH_JOIN 
[$$841][$$840]  |PARTITIONED|
+                                                                               
                                                   -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                     -- STREAM_PROJECT  
|PARTITIONED|
+                                                                               
                                                       -- ASSIGN  |PARTITIONED|
+                                                                               
                                                         -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                                               
                                                           -- REPLICATE  
|PARTITIONED|
+                                                                               
                                                             -- 
HASH_PARTITION_EXCHANGE [$$701]  |PARTITIONED|
+                                                                               
                                                               -- UNNEST  
|PARTITIONED|
+                                                                               
                                                                 -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                   -- 
PRE_CLUSTERED_GROUP_BY[$$694]  |PARTITIONED|
+                                                                               
                                                                           {
+                                                                               
                                                                             -- 
AGGREGATE  |LOCAL|
+                                                                               
                                                                               
-- STREAM_SELECT  |LOCAL|
+                                                                               
                                                                                
 -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                                           }
+                                                                               
                                                                     -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                       -- 
STABLE_SORT [$$694(ASC), $$708(ASC)]  |PARTITIONED|
+                                                                               
                                                                         -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                           -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                             -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                               
-- HYBRID_HASH_JOIN [$$709][$$712]  |PARTITIONED|
+                                                                               
                                                                                
 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
   -- UNNEST  |PARTITIONED|
+                                                                               
                                                                                
     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
       -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
           -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                                                                                
             -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
               -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                               
                                                                                
 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
   -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
     -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
         -- REPLICATE  |PARTITIONED|
+                                                                               
                                                                                
           -- BROADCAST_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
             -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
               -- RUNNING_AGGREGATE  |PARTITIONED|
+                                                                               
                                                                                
                 -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
                   -- SORT_MERGE_EXCHANGE [$$1147(ASC), $$899(ASC) ]  
|PARTITIONED|
+                                                                               
                                                                                
                     -- STABLE_SORT [$$1147(ASC), $$899(ASC)]  |PARTITIONED|
+                                                                               
                                                                                
                       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
                         -- EXTERNAL_GROUP_BY[$$1671]  |PARTITIONED|
+                                                                               
                                                                                
                                 {
+                                                                               
                                                                                
                                   -- AGGREGATE  |LOCAL|
+                                                                               
                                                                                
                                     -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                                                
                                 }
+                                                                               
                                                                                
                           -- HASH_PARTITION_EXCHANGE [$$1671]  |PARTITIONED|
+                                                                               
                                                                                
                             -- EXTERNAL_GROUP_BY[$$901]  |PARTITIONED|
+                                                                               
                                                                                
                                     {
+                                                                               
                                                                                
                                       -- AGGREGATE  |LOCAL|
+                                                                               
                                                                                
                                         -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                                                
                                     }
+                                                                               
                                                                                
                               -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
                                 -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
                                   -- UNNEST  |PARTITIONED|
+                                                                               
                                                                                
                                     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
                                       -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
                                         -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
                                           -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
                                             -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                                                
                                               -- REPLICATE  |PARTITIONED|
+                                                                               
                                                                                
                                                 -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                                                
                                                   -- STREAM_PROJECT  
|PARTITIONED|
+                                                                               
                                                                                
                                                     -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                                                
                                                       -- DATASOURCE_SCAN  
|PARTITIONED|
+                                                                               
                                                                                
                                                         -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                                               
                                                                                
                                                           -- 
EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                               
                                                   -- HASH_PARTITION_EXCHANGE 
[$$840]  |PARTITIONED|
+                                                                               
                                                     -- STREAM_PROJECT  
|PARTITIONED|
+                                                                               
                                                       -- UNNEST  |PARTITIONED|
+                                                                               
                                                         -- ASSIGN  
|PARTITIONED|
+                                                                               
                                                           -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                             -- 
PRE_CLUSTERED_GROUP_BY[$$833]  |PARTITIONED|
+                                                                               
                                                                     {
+                                                                               
                                                                       -- 
AGGREGATE  |LOCAL|
+                                                                               
                                                                         -- 
STREAM_SELECT  |LOCAL|
+                                                                               
                                                                           -- 
NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                                     }
+                                                                               
                                                               -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                 -- STABLE_SORT 
[$$833(ASC), $$867(ASC)]  |PARTITIONED|
+                                                                               
                                                                   -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                     -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                       -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                         -- 
HYBRID_HASH_JOIN [$$868][$$871]  |PARTITIONED|
+                                                                               
                                                                           -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                             -- 
UNNEST  |PARTITIONED|
+                                                                               
                                                                               
-- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
 -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
     -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
                                                                                
       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
         -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                               
                                                                           -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                             -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                               
-- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
   -- REPLICATE  |PARTITIONED|
+                                                                               
                                                                                
     -- BROADCAST_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
       -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
         -- RUNNING_AGGREGATE  |PARTITIONED|
+                                                                               
                                                                                
           -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
             -- SORT_MERGE_EXCHANGE [$$1147(ASC), $$899(ASC) ]  |PARTITIONED|
+                                                                               
                                                                                
               -- STABLE_SORT [$$1147(ASC), $$899(ASC)]  |PARTITIONED|
+                                                                               
                                                                                
                 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
                   -- EXTERNAL_GROUP_BY[$$1671]  |PARTITIONED|
+                                                                               
                                                                                
                           {
+                                                                               
                                                                                
                             -- AGGREGATE  |LOCAL|
+                                                                               
                                                                                
                               -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                                                
                           }
+                                                                               
                                                                                
                     -- HASH_PARTITION_EXCHANGE [$$1671]  |PARTITIONED|
+                                                                               
                                                                                
                       -- EXTERNAL_GROUP_BY[$$901]  |PARTITIONED|
+                                                                               
                                                                                
                               {
+                                                                               
                                                                                
                                 -- AGGREGATE  |LOCAL|
+                                                                               
                                                                                
                                   -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                                                                
                               }
+                                                                               
                                                                                
                         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
                           -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
                             -- UNNEST  |PARTITIONED|
+                                                                               
                                                                                
                               -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
                                 -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
                                   -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
                                     -- ASSIGN  |PARTITIONED|
+                                                                               
                                                                                
                                       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
                                         -- REPLICATE  |PARTITIONED|
+                                                                               
                                                                                
                                           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                                                                
                                             -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                                                
                                               -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                                                
                                                 -- DATASOURCE_SCAN  
|PARTITIONED|
+                                                                               
                                                                                
                                                   -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                                                
                                                     -- EMPTY_TUPLE_SOURCE  
|PARTITIONED|
+                                                                               
 -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
   -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
     -- ASSIGN  |PARTITIONED|
+                                                                               
       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
         -- REPLICATE  |PARTITIONED|
+                                                                               
           -- BROADCAST_EXCHANGE  |PARTITIONED|
+                                                                               
             -- ASSIGN  |PARTITIONED|
+                                                                               
               -- RUNNING_AGGREGATE  |PARTITIONED|
+                                                                               
                 -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                   -- SORT_MERGE_EXCHANGE [$$1146(ASC), $$885(ASC) ]  
|PARTITIONED|
+                                                                               
                     -- STABLE_SORT [$$1146(ASC), $$885(ASC)]  |PARTITIONED|
+                                                                               
                       -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                         -- EXTERNAL_GROUP_BY[$$1669]  |PARTITIONED|
+                                                                               
                                 {
+                                                                               
                                   -- AGGREGATE  |LOCAL|
+                                                                               
                                     -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                 }
+                                                                               
                           -- HASH_PARTITION_EXCHANGE [$$1669]  |PARTITIONED|
+                                                                               
                             -- EXTERNAL_GROUP_BY[$$887]  |PARTITIONED|
+                                                                               
                                     {
+                                                                               
                                       -- AGGREGATE  |LOCAL|
+                                                                               
                                         -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                     }
+                                                                               
                               -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                 -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                   -- UNNEST  |PARTITIONED|
+                                                                               
                                     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                       -- ASSIGN  |PARTITIONED|
+                                                                               
                                         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                           -- REPLICATE  |PARTITIONED|
+                                                                               
                                             -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                               -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                 -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                   -- DATASOURCE_SCAN  
|PARTITIONED|
+                                                                               
                                                     -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                       -- EMPTY_TUPLE_SOURCE  
|PARTITIONED|
+                      -- HASH_PARTITION_EXCHANGE [$$idLeft_0]  |PARTITIONED|
+                        -- STREAM_PROJECT  |PARTITIONED|
+                          -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                            -- HYBRID_HASH_JOIN [$$40][$$idRight_0]  
|PARTITIONED|
+                              -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                -- STREAM_PROJECT  |PARTITIONED|
+                                  -- ASSIGN  |PARTITIONED|
+                                    -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                      -- REPLICATE  |PARTITIONED|
+                                        -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                          -- STREAM_PROJECT  |PARTITIONED|
+                                            -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                              -- DATASOURCE_SCAN  |PARTITIONED|
+                                                -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                  -- EMPTY_TUPLE_SOURCE  
|PARTITIONED|
+                              -- HASH_PARTITION_EXCHANGE [$$idRight_0]  
|PARTITIONED|
+                                -- EXTERNAL_GROUP_BY[$$1014, $$1016, $$993]  
|PARTITIONED|
+                                        {
+                                          -- AGGREGATE  |LOCAL|
+                                            -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                        }
+                                  -- HASH_PARTITION_EXCHANGE [$$1014, $$1016, 
$$993]  |PARTITIONED|
+                                    -- STREAM_PROJECT  |PARTITIONED|
+                                      -- STREAM_SELECT  |PARTITIONED|
+                                        -- STREAM_PROJECT  |PARTITIONED|
+                                          -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                            -- HYBRID_HASH_JOIN 
[$$prefixTokenRight][$$prefixTokenLeft]  |PARTITIONED|
+                                              -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                -- STREAM_PROJECT  
|PARTITIONED|
+                                                  -- ASSIGN  |PARTITIONED|
+                                                    -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                      -- REPLICATE  
|PARTITIONED|
+                                                        -- 
HASH_PARTITION_EXCHANGE [$$701]  |PARTITIONED|
+                                                          -- UNNEST  
|PARTITIONED|
+                                                            -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                              -- 
PRE_CLUSTERED_GROUP_BY[$$694]  |PARTITIONED|
+                                                                      {
+                                                                        -- 
AGGREGATE  |LOCAL|
+                                                                          -- 
STREAM_SELECT  |LOCAL|
+                                                                            -- 
NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                      }
+                                                                -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                  -- 
STABLE_SORT [$$694(ASC), $$708(ASC)]  |PARTITIONED|
+                                                                    -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                      -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                        -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                          -- 
HYBRID_HASH_JOIN [$$709][$$712]  |PARTITIONED|
+                                                                            -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                              
-- UNNEST  |PARTITIONED|
+                                                                               
 -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
   -- ASSIGN  |PARTITIONED|
+                                                                               
     -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
       -- DATASOURCE_SCAN  |PARTITIONED|
+                                                                               
         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
           -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
+                                                                            -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                              
-- STREAM_PROJECT  |PARTITIONED|
+                                                                               
 -- ASSIGN  |PARTITIONED|
+                                                                               
   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
     -- REPLICATE  |PARTITIONED|
+                                                                               
       -- BROADCAST_EXCHANGE  |PARTITIONED|
+                                                                               
         -- ASSIGN  |PARTITIONED|
+                                                                               
           -- RUNNING_AGGREGATE  |PARTITIONED|
+                                                                               
             -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
               -- SORT_MERGE_EXCHANGE [$$1147(ASC), $$899(ASC) ]  |PARTITIONED|
+                                                                               
                 -- STABLE_SORT [$$1147(ASC), $$899(ASC)]  |PARTITIONED|
+                                                                               
                   -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                     -- EXTERNAL_GROUP_BY[$$1671]  |PARTITIONED|
+                                                                               
                             {
+                                                                               
                               -- AGGREGATE  |LOCAL|
+                                                                               
                                 -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                             }
+                                                                               
                       -- HASH_PARTITION_EXCHANGE [$$1671]  |PARTITIONED|
+                                                                               
                         -- EXTERNAL_GROUP_BY[$$901]  |PARTITIONED|
+                                                                               
                                 {
+                                                                               
                                   -- AGGREGATE  |LOCAL|
+                                                                               
                                     -- NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                               
                                 }
+                                                                               
                           -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                             -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                               -- UNNEST  |PARTITIONED|
+                                                                               
                                 -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                   -- ASSIGN  |PARTITIONED|
+                                                                               
                                     -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                       -- ASSIGN  |PARTITIONED|
+                                                                               
                                         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                               
                                           -- REPLICATE  |PARTITIONED|
+                                                                               
                                             -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                               -- STREAM_PROJECT  |PARTITIONED|
+                                                                               
                                                 -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                   -- DATASOURCE_SCAN  
|PARTITIONED|
+                                                                               
                                                     -- ONE_TO_ONE_EXCHANGE  
|PARTITIONED|
+                                                                               
                                                       -- EMPTY_TUPLE_SOURCE  
|PARTITIONED|
+                                              -- HASH_PARTITION_EXCHANGE 
[$$prefixTokenLeft]  |PARTITIONED|
+                                                -- STREAM_PROJECT  
|PARTITIONED|
+                                                  -- UNNEST  |PARTITIONED|
+                                                    -- ASSIGN  |PARTITIONED|
+                                                      -- STREAM_PROJECT  
|PARTITIONED|
+                                                        -- ONE_TO_ONE_EXCHANGE 
 |PARTITIONED|
+                                                          -- 
PRE_CLUSTERED_GROUP_BY[$$274, $$278, $$330, $$331, $$268, $$269, $$270, $$271]  
|PARTITIONED|
+                                                                  {
+                                                                    -- 
AGGREGATE  |LOCAL|
+                                                                      -- 
STREAM_SELECT  |LOCAL|
+                                                                        -- 
NESTED_TUPLE_SOURCE  |LOCAL|
+                                                                  }
+                                                            -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                              -- STABLE_SORT 
[$$274(ASC), $$278(ASC), $$330(ASC), $$331(ASC), $$268(ASC), $$269(ASC), 
$$270(ASC), $$271(ASC), $$i(ASC)]  |PARTITIONED|
+                                                                -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                  -- 
STREAM_PROJECT  |PARTITIONED|
+                                                                    -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                      -- 
HYBRID_HASH_JOIN [$$token][$$tokenGroupped]  |PARTITIONED|
+                                                                        -- 
ONE_TO_ONE_EXCHANGE  |PARTITIONED|
+                                                                          -- 
STREAM_PROJECT  |PARTITIONED|
+   

<TRUNCATED>

Reply via email to