group-by-distinct-before.svg 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  3. "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  4. <!-- Generated by graphviz version 2.43.0 (0)
  5. -->
  6. <!-- Title: G Pages: 1 -->
  7. <svg width="821pt" height="584pt"
  8. viewBox="0.00 0.00 821.00 583.68" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  9. <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 579.68)">
  10. <title>G</title>
  11. <polygon fill="white" stroke="transparent" points="-4,4 -4,-579.68 817,-579.68 817,4 -4,4"/>
  12. <text text-anchor="middle" x="166.5" y="-7.8" font-family="Times,serif" font-size="14.00">select a from a group by a; (before rewrites)</text>
  13. <g id="clust1" class="cluster">
  14. <title>cluster3</title>
  15. <polygon fill="none" stroke="black" points="399,-454.59 399,-567.68 805,-567.68 805,-454.59 399,-454.59"/>
  16. <text text-anchor="middle" x="449.5" y="-552.48" font-family="Times,serif" font-size="14.00">Box3:Select</text>
  17. </g>
  18. <g id="clust3" class="cluster">
  19. <title>cluster2</title>
  20. <polygon fill="none" stroke="black" points="195,-314.59 195,-446.59 601,-446.59 601,-314.59 195,-314.59"/>
  21. <text text-anchor="middle" x="257" y="-431.39" font-family="Times,serif" font-size="14.00">Box2:Grouping</text>
  22. </g>
  23. <g id="clust5" class="cluster">
  24. <title>cluster0</title>
  25. <polygon fill="none" stroke="black" points="21,-148 21,-306.59 321,-306.59 321,-148 21,-148"/>
  26. <text text-anchor="middle" x="71.5" y="-291.39" font-family="Times,serif" font-size="14.00">Box0:Select</text>
  27. </g>
  28. <g id="clust7" class="cluster">
  29. <title>cluster1</title>
  30. <polygon fill="none" stroke="black" points="8,-31 8,-140 170,-140 170,-31 8,-31"/>
  31. <text text-anchor="middle" x="80" y="-124.8" font-family="Times,serif" font-size="14.00">Box1:BaseTable A</text>
  32. </g>
  33. <!-- boxhead3 -->
  34. <g id="node1" class="node">
  35. <title>boxhead3</title>
  36. <polygon fill="none" stroke="black" points="499.5,-465.14 499.5,-534.14 796.5,-534.14 796.5,-465.14 499.5,-465.14"/>
  37. <text text-anchor="middle" x="648" y="-518.94" font-family="Times,serif" font-size="14.00">Distinct: Preserve</text>
  38. <polyline fill="none" stroke="black" points="499.5,-511.14 796.5,-511.14 "/>
  39. <text text-anchor="middle" x="648" y="-495.94" font-family="Times,serif" font-size="14.00">0: Q2.c0 as A</text>
  40. <polyline fill="none" stroke="black" points="499.5,-488.14 796.5,-488.14 "/>
  41. <text text-anchor="middle" x="648" y="-472.94" font-family="Times,serif" font-size="14.00">UNIQUE KEY [0]</text>
  42. </g>
  43. <!-- Q2 -->
  44. <g id="node2" class="node">
  45. <title>Q2</title>
  46. <ellipse fill="none" stroke="black" cx="444" cy="-499.64" rx="37.09" ry="37.09"/>
  47. <text text-anchor="middle" x="444" y="-495.94" font-family="Times,serif" font-size="14.00">Q2(F)</text>
  48. </g>
  49. <!-- boxhead2 -->
  50. <g id="node3" class="node">
  51. <title>boxhead2</title>
  52. <polygon fill="none" stroke="black" points="295.5,-323.09 295.5,-415.09 592.5,-415.09 592.5,-323.09 295.5,-323.09"/>
  53. <text text-anchor="middle" x="444" y="-399.89" font-family="Times,serif" font-size="14.00">Distinct: Preserve</text>
  54. <polyline fill="none" stroke="black" points="295.5,-392.09 592.5,-392.09 "/>
  55. <text text-anchor="middle" x="444" y="-376.89" font-family="Times,serif" font-size="14.00">0: Q1.c0 as A</text>
  56. <polyline fill="none" stroke="black" points="295.5,-369.09 592.5,-369.09 "/>
  57. <text text-anchor="middle" x="444" y="-353.89" font-family="Times,serif" font-size="14.00">GROUP Q1.c0 Ascending</text>
  58. <polyline fill="none" stroke="black" points="295.5,-346.09 592.5,-346.09 "/>
  59. <text text-anchor="middle" x="444" y="-330.89" font-family="Times,serif" font-size="14.00">UNIQUE KEY [0]</text>
  60. </g>
  61. <!-- Q2&#45;&gt;boxhead2 -->
  62. <g id="edge1" class="edge">
  63. <title>Q2&#45;&gt;boxhead2</title>
  64. <path fill="none" stroke="black" stroke-dasharray="5,2" d="M444,-462.49C444,-457.42 444,-452.07 444,-446.59"/>
  65. </g>
  66. <!-- Q1 -->
  67. <g id="node4" class="node">
  68. <title>Q1</title>
  69. <ellipse fill="none" stroke="black" cx="240" cy="-369.09" rx="37.09" ry="37.09"/>
  70. <text text-anchor="middle" x="240" y="-365.39" font-family="Times,serif" font-size="14.00">Q1(F)</text>
  71. </g>
  72. <!-- boxhead0 -->
  73. <g id="node5" class="node">
  74. <title>boxhead0</title>
  75. <polygon fill="none" stroke="black" points="167,-181.29 167,-250.29 313,-250.29 313,-181.29 167,-181.29"/>
  76. <text text-anchor="middle" x="240" y="-235.09" font-family="Times,serif" font-size="14.00">Distinct: Preserve</text>
  77. <polyline fill="none" stroke="black" points="167,-227.29 313,-227.29 "/>
  78. <text text-anchor="middle" x="240" y="-212.09" font-family="Times,serif" font-size="14.00">0: Q0.c0 as A</text>
  79. <polyline fill="none" stroke="black" points="167,-204.29 313,-204.29 "/>
  80. <text text-anchor="middle" x="240" y="-189.09" font-family="Times,serif" font-size="14.00">1: Q0.c1 as B</text>
  81. </g>
  82. <!-- Q1&#45;&gt;boxhead0 -->
  83. <g id="edge2" class="edge">
  84. <title>Q1&#45;&gt;boxhead0</title>
  85. <path fill="none" stroke="black" stroke-dasharray="5,2" d="M240,-331.85C240,-324.04 240,-315.45 240,-306.59"/>
  86. </g>
  87. <!-- Q0 -->
  88. <g id="node6" class="node">
  89. <title>Q0</title>
  90. <ellipse fill="none" stroke="black" cx="89" cy="-215.79" rx="59.59" ry="59.59"/>
  91. <text text-anchor="middle" x="89" y="-212.09" font-family="Times,serif" font-size="14.00">Q0(F) as A</text>
  92. </g>
  93. <!-- boxhead1 -->
  94. <g id="node7" class="node">
  95. <title>boxhead1</title>
  96. <polygon fill="none" stroke="black" points="16,-39.5 16,-108.5 162,-108.5 162,-39.5 16,-39.5"/>
  97. <text text-anchor="middle" x="89" y="-93.3" font-family="Times,serif" font-size="14.00">Distinct: Preserve</text>
  98. <polyline fill="none" stroke="black" points="16,-85.5 162,-85.5 "/>
  99. <text text-anchor="middle" x="89" y="-70.3" font-family="Times,serif" font-size="14.00">0: c0 as A</text>
  100. <polyline fill="none" stroke="black" points="16,-62.5 162,-62.5 "/>
  101. <text text-anchor="middle" x="89" y="-47.3" font-family="Times,serif" font-size="14.00">1: c1 as B</text>
  102. </g>
  103. <!-- Q0&#45;&gt;boxhead1 -->
  104. <g id="edge3" class="edge">
  105. <title>Q0&#45;&gt;boxhead1</title>
  106. <path fill="none" stroke="black" stroke-dasharray="5,2" d="M89,-155.91C89,-150.65 89,-145.31 89,-140"/>
  107. </g>
  108. </g>
  109. </svg>