simple-values-with-alias.svg 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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="469pt" height="490pt"
  8. viewBox="0.00 0.00 469.00 489.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 485.68)">
  10. <title>G</title>
  11. <polygon fill="white" stroke="transparent" points="-4,4 -4,-485.68 465,-485.68 465,4 -4,4"/>
  12. <text text-anchor="middle" x="226" y="-7.8" font-family="Times,serif" font-size="14.00">select * from (values(1, 2), (3, 4)) as a(b, c); (before rewrites)</text>
  13. <g id="clust1" class="cluster">
  14. <title>cluster0</title>
  15. <polygon fill="none" stroke="black" points="153,-315.09 153,-473.68 453,-473.68 453,-315.09 153,-315.09"/>
  16. <text text-anchor="middle" x="203.5" y="-458.48" font-family="Times,serif" font-size="14.00">Box0:Select</text>
  17. </g>
  18. <g id="clust3" class="cluster">
  19. <title>cluster2</title>
  20. <polygon fill="none" stroke="black" points="48,-194 48,-307.09 302,-307.09 302,-194 48,-194"/>
  21. <text text-anchor="middle" x="98.5" y="-291.89" font-family="Times,serif" font-size="14.00">Box2:Select</text>
  22. </g>
  23. <g id="clust5" class="cluster">
  24. <title>cluster1</title>
  25. <polygon fill="none" stroke="black" points="8,-31 8,-186 178,-186 178,-31 8,-31"/>
  26. <text text-anchor="middle" x="60" y="-170.8" font-family="Times,serif" font-size="14.00">Box1:Values</text>
  27. </g>
  28. <!-- boxhead0 -->
  29. <g id="node1" class="node">
  30. <title>boxhead0</title>
  31. <polygon fill="none" stroke="black" points="299,-348.39 299,-417.39 445,-417.39 445,-348.39 299,-348.39"/>
  32. <text text-anchor="middle" x="372" y="-402.19" font-family="Times,serif" font-size="14.00">Distinct: Preserve</text>
  33. <polyline fill="none" stroke="black" points="299,-394.39 445,-394.39 "/>
  34. <text text-anchor="middle" x="372" y="-379.19" font-family="Times,serif" font-size="14.00">0: Q1.c0 as B</text>
  35. <polyline fill="none" stroke="black" points="299,-371.39 445,-371.39 "/>
  36. <text text-anchor="middle" x="372" y="-356.19" font-family="Times,serif" font-size="14.00">1: Q1.c1 as C</text>
  37. </g>
  38. <!-- Q1 -->
  39. <g id="node2" class="node">
  40. <title>Q1</title>
  41. <ellipse fill="none" stroke="black" cx="221" cy="-382.89" rx="59.59" ry="59.59"/>
  42. <text text-anchor="middle" x="221" y="-379.19" font-family="Times,serif" font-size="14.00">Q1(F) as A</text>
  43. </g>
  44. <!-- boxhead2 -->
  45. <g id="node3" class="node">
  46. <title>boxhead2</title>
  47. <polygon fill="none" stroke="black" points="148,-204.55 148,-273.55 294,-273.55 294,-204.55 148,-204.55"/>
  48. <text text-anchor="middle" x="221" y="-258.35" font-family="Times,serif" font-size="14.00">Distinct: Preserve</text>
  49. <polyline fill="none" stroke="black" points="148,-250.55 294,-250.55 "/>
  50. <text text-anchor="middle" x="221" y="-235.35" font-family="Times,serif" font-size="14.00">0: Q0.c0 as B</text>
  51. <polyline fill="none" stroke="black" points="148,-227.55 294,-227.55 "/>
  52. <text text-anchor="middle" x="221" y="-212.35" font-family="Times,serif" font-size="14.00">1: Q0.c1 as C</text>
  53. </g>
  54. <!-- Q1&#45;&gt;boxhead2 -->
  55. <g id="edge1" class="edge">
  56. <title>Q1&#45;&gt;boxhead2</title>
  57. <path fill="none" stroke="black" stroke-dasharray="5,2" d="M221,-322.97C221,-317.73 221,-312.39 221,-307.09"/>
  58. </g>
  59. <!-- Q0 -->
  60. <g id="node4" class="node">
  61. <title>Q0</title>
  62. <ellipse fill="none" stroke="black" cx="93" cy="-239.05" rx="37.09" ry="37.09"/>
  63. <text text-anchor="middle" x="93" y="-235.35" font-family="Times,serif" font-size="14.00">Q0(F)</text>
  64. </g>
  65. <!-- boxhead1 -->
  66. <g id="node5" class="node">
  67. <title>boxhead1</title>
  68. <polygon fill="none" stroke="black" points="16.5,-39.5 16.5,-154.5 169.5,-154.5 169.5,-39.5 16.5,-39.5"/>
  69. <text text-anchor="middle" x="93" y="-139.3" font-family="Times,serif" font-size="14.00">Distinct: Preserve</text>
  70. <polyline fill="none" stroke="black" points="16.5,-131.5 169.5,-131.5 "/>
  71. <text text-anchor="middle" x="93" y="-116.3" font-family="Times,serif" font-size="14.00">0: c0 as COLUMN1</text>
  72. <polyline fill="none" stroke="black" points="16.5,-108.5 169.5,-108.5 "/>
  73. <text text-anchor="middle" x="93" y="-93.3" font-family="Times,serif" font-size="14.00">1: c1 as COLUMN2</text>
  74. <polyline fill="none" stroke="black" points="16.5,-85.5 169.5,-85.5 "/>
  75. <text text-anchor="middle" x="93" y="-70.3" font-family="Times,serif" font-size="14.00">1, 2</text>
  76. <polyline fill="none" stroke="black" points="16.5,-62.5 169.5,-62.5 "/>
  77. <text text-anchor="middle" x="93" y="-47.3" font-family="Times,serif" font-size="14.00">3, 4</text>
  78. </g>
  79. <!-- Q0&#45;&gt;boxhead1 -->
  80. <g id="edge2" class="edge">
  81. <title>Q0&#45;&gt;boxhead1</title>
  82. <path fill="none" stroke="black" stroke-dasharray="5,2" d="M93,-201.98C93,-196.91 93,-191.54 93,-186"/>
  83. </g>
  84. </g>
  85. </svg>