simple-distinct.svg 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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="479pt" height="323pt"
  8. viewBox="0.00 0.00 479.00 322.59" 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 318.59)">
  10. <title>G</title>
  11. <polygon fill="white" stroke="transparent" points="-4,4 -4,-318.59 475,-318.59 475,4 -4,4"/>
  12. <text text-anchor="middle" x="155.5" y="-7.8" font-family="Times,serif" font-size="14.00">select distinct a from a; (before rewrites)</text>
  13. <g id="clust1" class="cluster">
  14. <title>cluster0</title>
  15. <polygon fill="none" stroke="black" points="21,-148 21,-306.59 463,-306.59 463,-148 21,-148"/>
  16. <text text-anchor="middle" x="71.5" y="-291.39" font-family="Times,serif" font-size="14.00">Box0:Select</text>
  17. </g>
  18. <g id="clust3" class="cluster">
  19. <title>cluster1</title>
  20. <polygon fill="none" stroke="black" points="8,-31 8,-140 170,-140 170,-31 8,-31"/>
  21. <text text-anchor="middle" x="80" y="-124.8" font-family="Times,serif" font-size="14.00">Box1:BaseTable A</text>
  22. </g>
  23. <!-- boxhead0 -->
  24. <g id="node1" class="node">
  25. <title>boxhead0</title>
  26. <polygon fill="none" stroke="black" points="166.5,-181.29 166.5,-250.29 455.5,-250.29 455.5,-181.29 166.5,-181.29"/>
  27. <text text-anchor="middle" x="311" y="-235.09" font-family="Times,serif" font-size="14.00">Distinct: Enforce</text>
  28. <polyline fill="none" stroke="black" points="166.5,-227.29 455.5,-227.29 "/>
  29. <text text-anchor="middle" x="311" y="-212.09" font-family="Times,serif" font-size="14.00">0: Q0.c0 as A</text>
  30. <polyline fill="none" stroke="black" points="166.5,-204.29 455.5,-204.29 "/>
  31. <text text-anchor="middle" x="311" y="-189.09" font-family="Times,serif" font-size="14.00">UNIQUE KEY [0]</text>
  32. </g>
  33. <!-- Q0 -->
  34. <g id="node2" class="node">
  35. <title>Q0</title>
  36. <ellipse fill="none" stroke="black" cx="89" cy="-215.79" rx="59.59" ry="59.59"/>
  37. <text text-anchor="middle" x="89" y="-212.09" font-family="Times,serif" font-size="14.00">Q0(F) as A</text>
  38. </g>
  39. <!-- boxhead1 -->
  40. <g id="node3" class="node">
  41. <title>boxhead1</title>
  42. <polygon fill="none" stroke="black" points="16,-39.5 16,-108.5 162,-108.5 162,-39.5 16,-39.5"/>
  43. <text text-anchor="middle" x="89" y="-93.3" font-family="Times,serif" font-size="14.00">Distinct: Preserve</text>
  44. <polyline fill="none" stroke="black" points="16,-85.5 162,-85.5 "/>
  45. <text text-anchor="middle" x="89" y="-70.3" font-family="Times,serif" font-size="14.00">0: c0 as A</text>
  46. <polyline fill="none" stroke="black" points="16,-62.5 162,-62.5 "/>
  47. <text text-anchor="middle" x="89" y="-47.3" font-family="Times,serif" font-size="14.00">1: c1 as B</text>
  48. </g>
  49. <!-- Q0&#45;&gt;boxhead1 -->
  50. <g id="edge1" class="edge">
  51. <title>Q0&#45;&gt;boxhead1</title>
  52. <path fill="none" stroke="black" stroke-dasharray="5,2" d="M89,-155.91C89,-150.65 89,-145.31 89,-140"/>
  53. </g>
  54. </g>
  55. </svg>