@@ -114,12 +114,12 @@ SELECT * FROM a WHERE i < k AND i % 3 = 0
114114index-join a
115115 ├── columns: k:1(int!null) i:2(int!null) s:3(string) t:4(string)
116116 ├── immutable
117- ├── stats: [rows=555.556, distinct(1)=555.556, null(1)=0, distinct(2)=500, null(2)=0]
117+ ├── stats: [rows=555.556, distinct(1)=555.556, null(1)=0, distinct(2)=500, null(2)=0, distinct(1,2)=555.556, null(1,2)=-1 ]
118118 ├── key: (1)
119119 ├── fd: (1)-->(2-4)
120120 └── scan a@idx,partial
121121 ├── columns: k:1(int!null) i:2(int!null)
122- ├── stats: [rows=555.556, distinct(1)=555.556, null(1)=0, distinct(2)=500, null(2)=0]
122+ ├── stats: [rows=555.556, distinct(1)=555.556, null(1)=0, distinct(2)=500, null(2)=0, distinct(1,2)=555.556, null(1,2)=-1 ]
123123 ├── key: (1)
124124 └── fd: (1)-->(2)
125125
@@ -206,12 +206,12 @@ index-join a
206206 ├── fd: (1)-->(2-4), (3)==(4), (4)==(3)
207207 └── select
208208 ├── columns: k:1(int!null) s:3(string!null) t:4(string!null)
209- ├── stats: [rows=1.0395, distinct(3)=1.0395, null(3)=0, distinct(4)=1.0395, null(4)=0]
209+ ├── stats: [rows=1.0395, distinct(3)=1.0395, null(3)=0, distinct(4)=1.0395, null(4)=0, distinct(3,4)=1.0395, null(3,4)=-1 ]
210210 ├── key: (1)
211211 ├── fd: (1)-->(3,4), (3)==(4), (4)==(3)
212212 ├── scan a@idx,partial
213213 │ ├── columns: k:1(int!null) s:3(string!null) t:4(string!null)
214- │ ├── stats: [rows=9.3555, distinct(1)=9.3555, null(1)=0, distinct(3)=9.3555, null(3)=0, distinct(4)=9.3555, null(4)=0]
214+ │ ├── stats: [rows=9.3555, distinct(1)=9.3555, null(1)=0, distinct(3)=9.3555, null(3)=0, distinct(4)=9.3555, null(4)=0, distinct(3,4)=9.3555, null(3,4)=0 ]
215215 │ ├── key: (1)
216216 │ └── fd: (1)-->(3,4), (3)==(4), (4)==(3)
217217 └── filters
@@ -872,7 +872,7 @@ project
872872 ├── inverted constraint: /7/1
873873 │ └── spans: ["x"/"y", "x"/"y"]
874874 ├── flags: force-index=partial
875- ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0]
875+ ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0, distinct(4,7)=2.20441, null(4,7)=0 ]
876876 └── key: (1)
877877
878878opt
@@ -889,7 +889,7 @@ index-join inv
889889 ├── inverted constraint: /7/1
890890 │ └── spans: ["x"/"y", "x"/"y"]
891891 ├── flags: force-index=partial
892- ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0]
892+ ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0, distinct(4,7)=2.20441, null(4,7)=0 ]
893893 └── key: (1)
894894
895895opt
@@ -916,7 +916,7 @@ project
916916 │ ├── inverted constraint: /7/1
917917 │ │ └── spans: ["x"/"y", "x"/"y"]
918918 │ ├── flags: force-index=partial
919- │ ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0]
919+ │ ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0, distinct(4,7)=2.20441, null(4,7)=0 ]
920920 │ └── key: (1)
921921 └── filters
922922 └── s:4 = 'foo' [type=bool, outer=(4), constraints=(/4: [/'foo' - /'foo']; tight), fd=()-->(4)]
@@ -940,7 +940,7 @@ select
940940 │ ├── inverted constraint: /7/1
941941 │ │ └── spans: ["x"/"y", "x"/"y"]
942942 │ ├── flags: force-index=partial
943- │ ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0]
943+ │ ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0, distinct(4,7)=2.20441, null(4,7)=0 ]
944944 │ └── key: (1)
945945 └── filters
946946 └── s:4 = 'foo' [type=bool, outer=(4), constraints=(/4: [/'foo' - /'foo']; tight), fd=()-->(4)]
@@ -964,7 +964,7 @@ select
964964 │ ├── inverted constraint: /7/1
965965 │ │ └── spans: ["x"/"y", "x"/"y"]
966966 │ ├── flags: force-index=partial
967- │ ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0]
967+ │ ├── stats: [rows=2.20441, distinct(4)=2, null(4)=0, distinct(7)=2.20441, null(7)=0, distinct(4,7)=2.20441, null(4,7)=0 ]
968968 │ └── key: (1)
969969 └── filters
970970 ├── (i:2 > 0) AND (i:2 < 10) [type=bool, outer=(2), constraints=(/2: [/1 - /9]; tight)]
@@ -1224,7 +1224,7 @@ project
12241224 └── select
12251225 ├── columns: k:1(int!null) g:2(geometry!null) s:3(string!null)
12261226 ├── immutable
1227- ├── stats: [rows=16.6667, distinct(2)=7, null(2)=0, distinct(3)=3, null(3)=0]
1227+ ├── stats: [rows=16.6667, distinct(2)=7, null(2)=0, distinct(3)=3, null(3)=0, distinct(2,3)=7, null(2,3)=0 ]
12281228 ├── key: (1)
12291229 ├── fd: (1)-->(2,3)
12301230 ├── index-join spatial
@@ -1251,7 +1251,7 @@ project
12511251 │ │ ├── ["B\xfd\x10\x00\x00\x00\x00\x00\x00\x00", "B\xfd\x10\x00\x00\x00\x00\x00\x00\x00"]
12521252 │ │ ├── ["B\xfd\x10\x00\x00\x00\x00\x00\x00\x01", "B\xfd\x12\x00\x00\x00\x00\x00\x00\x00")
12531253 │ │ └── ["B\xfd\x14\x00\x00\x00\x00\x00\x00\x00", "B\xfd\x14\x00\x00\x00\x00\x00\x00\x00"]
1254- │ ├── stats: [rows=16.6667, distinct(1)=16.6667, null(1)=0, distinct(3)=3, null(3)=0, distinct(7)=16.6667, null(7)=0]
1254+ │ ├── stats: [rows=16.6667, distinct(1)=16.6667, null(1)=0, distinct(3)=3, null(3)=0, distinct(7)=16.6667, null(7)=0, distinct(3,7)=16.6667, null(3,7)=0 ]
12551255 │ └── key: (1,7)
12561256 └── filters
12571257 └── st_intersects('010200000002000000000000000000E03F000000000000E03F666666666666E63F666666666666E63F', g:2) [type=bool, outer=(2), immutable, constraints=(/2: (/NULL - ])]
@@ -1269,7 +1269,7 @@ project
12691269 └── select
12701270 ├── columns: k:1(int!null) g:2(geometry!null) s:3(string!null)
12711271 ├── immutable
1272- ├── stats: [rows=5.55556, distinct(2)=5.55556, null(2)=0, distinct(3)=1, null(3)=0]
1272+ ├── stats: [rows=5.55556, distinct(2)=5.55556, null(2)=0, distinct(3)=1, null(3)=0, distinct(2,3)=5.55556, null(2,3)=0 ]
12731273 ├── key: (1)
12741274 ├── fd: ()-->(3), (1)-->(2)
12751275 ├── index-join spatial
@@ -1296,7 +1296,7 @@ project
12961296 │ │ ├── ["B\xfd\x10\x00\x00\x00\x00\x00\x00\x00", "B\xfd\x10\x00\x00\x00\x00\x00\x00\x00"]
12971297 │ │ ├── ["B\xfd\x10\x00\x00\x00\x00\x00\x00\x01", "B\xfd\x12\x00\x00\x00\x00\x00\x00\x00")
12981298 │ │ └── ["B\xfd\x14\x00\x00\x00\x00\x00\x00\x00", "B\xfd\x14\x00\x00\x00\x00\x00\x00\x00"]
1299- │ ├── stats: [rows=16.6667, distinct(1)=16.6667, null(1)=0, distinct(3)=3, null(3)=0, distinct(7)=16.6667, null(7)=0]
1299+ │ ├── stats: [rows=16.6667, distinct(1)=16.6667, null(1)=0, distinct(3)=3, null(3)=0, distinct(7)=16.6667, null(7)=0, distinct(3,7)=16.6667, null(3,7)=0 ]
13001300 │ └── key: (1,7)
13011301 └── filters
13021302 ├── st_intersects('010200000002000000000000000000E03F000000000000E03F666666666666E63F666666666666E63F', g:2) [type=bool, outer=(2), immutable, constraints=(/2: (/NULL - ])]
@@ -1335,7 +1335,7 @@ project
13351335 └── select
13361336 ├── columns: k:1(int!null) g:2(geometry!null) s:3(string!null)
13371337 ├── immutable
1338- ├── stats: [rows=8.54701, distinct(2)=7, null(2)=0, distinct(3)=3, null(3)=0]
1338+ ├── stats: [rows=8.54701, distinct(2)=7, null(2)=0, distinct(3)=3, null(3)=0, distinct(2,3)=7, null(2,3)=0 ]
13391339 ├── key: (1)
13401340 ├── fd: (1)-->(2,3)
13411341 ├── index-join spatial
@@ -1362,7 +1362,7 @@ project
13621362 │ │ ├── ["B\xfd\x10\x00\x00\x00\x00\x00\x00\x00", "B\xfd\x10\x00\x00\x00\x00\x00\x00\x00"]
13631363 │ │ ├── ["B\xfd\x10\x00\x00\x00\x00\x00\x00\x01", "B\xfd\x12\x00\x00\x00\x00\x00\x00\x00")
13641364 │ │ └── ["B\xfd\x14\x00\x00\x00\x00\x00\x00\x00", "B\xfd\x14\x00\x00\x00\x00\x00\x00\x00"]
1365- │ ├── stats: [rows=8.54701, distinct(1)=8.54701, null(1)=0, distinct(3)=3, null(3)=0, distinct(7)=8.54701, null(7)=0]
1365+ │ ├── stats: [rows=8.54701, distinct(1)=8.54701, null(1)=0, distinct(3)=3, null(3)=0, distinct(7)=8.54701, null(7)=0, distinct(3,7)=8.54701, null(3,7)=0 ]
13661366 │ └── key: (1,7)
13671367 └── filters
13681368 └── st_intersects('010200000002000000000000000000E03F000000000000E03F666666666666E63F666666666666E63F', g:2) [type=bool, outer=(2), immutable, constraints=(/2: (/NULL - ])]
@@ -1378,7 +1378,7 @@ project
13781378 └── select
13791379 ├── columns: k:1(int!null) g:2(geometry!null) s:3(string!null)
13801380 ├── immutable
1381- ├── stats: [rows=2.849, distinct(2)=2.849, null(2)=0, distinct(3)=1, null(3)=0]
1381+ ├── stats: [rows=2.849, distinct(2)=2.849, null(2)=0, distinct(3)=1, null(3)=0, distinct(2,3)=2.849, null(2,3)=0 ]
13821382 ├── key: (1)
13831383 ├── fd: ()-->(3), (1)-->(2)
13841384 ├── index-join spatial
@@ -1405,7 +1405,7 @@ project
14051405 │ │ ├── ["B\xfd\x10\x00\x00\x00\x00\x00\x00\x00", "B\xfd\x10\x00\x00\x00\x00\x00\x00\x00"]
14061406 │ │ ├── ["B\xfd\x10\x00\x00\x00\x00\x00\x00\x01", "B\xfd\x12\x00\x00\x00\x00\x00\x00\x00")
14071407 │ │ └── ["B\xfd\x14\x00\x00\x00\x00\x00\x00\x00", "B\xfd\x14\x00\x00\x00\x00\x00\x00\x00"]
1408- │ ├── stats: [rows=8.54701, distinct(1)=8.54701, null(1)=0, distinct(3)=3, null(3)=0, distinct(7)=8.54701, null(7)=0]
1408+ │ ├── stats: [rows=8.54701, distinct(1)=8.54701, null(1)=0, distinct(3)=3, null(3)=0, distinct(7)=8.54701, null(7)=0, distinct(3,7)=8.54701, null(3,7)=0 ]
14091409 │ └── key: (1,7)
14101410 └── filters
14111411 ├── st_intersects('010200000002000000000000000000E03F000000000000E03F666666666666E63F666666666666E63F', g:2) [type=bool, outer=(2), immutable, constraints=(/2: (/NULL - ])]
@@ -1465,7 +1465,7 @@ project
14651465 └── select
14661466 ├── columns: k:1(int!null) g:2(geometry!null) s:3(string!null)
14671467 ├── immutable
1468- ├── stats: [rows=22.2222, distinct(2)=7, null(2)=0, distinct(3)=2, null(3)=0]
1468+ ├── stats: [rows=22.2222, distinct(2)=7, null(2)=0, distinct(3)=2, null(3)=0, distinct(2,3)=7, null(2,3)=0 ]
14691469 │ histogram(3)= 0 11.111 0 11.111
14701470 │ <--- 'banana' --- 'cherry'
14711471 ├── key: (1)
@@ -1516,7 +1516,7 @@ project
15161516 └── select
15171517 ├── columns: k:1(int!null) g:2(geometry!null) s:3(string!null)
15181518 ├── immutable
1519- ├── stats: [rows=11.1111, distinct(2)=7, null(2)=0, distinct(3)=1, null(3)=0]
1519+ ├── stats: [rows=11.1111, distinct(2)=7, null(2)=0, distinct(3)=1, null(3)=0, distinct(2,3)=7, null(2,3)=0 ]
15201520 │ histogram(3)= 0 11.111
15211521 │ <--- 'banana'
15221522 ├── key: (1)
@@ -1603,7 +1603,7 @@ project
16031603 └── select
16041604 ├── columns: k:1(int!null) g:2(geometry!null) s:3(string!null)
16051605 ├── immutable
1606- ├── stats: [rows=22.2222, distinct(2)=7, null(2)=0, distinct(3)=2, null(3)=0]
1606+ ├── stats: [rows=22.2222, distinct(2)=7, null(2)=0, distinct(3)=2, null(3)=0, distinct(2,3)=7, null(2,3)=0 ]
16071607 │ histogram(3)= 0 11.111 0 11.111
16081608 │ <--- 'banana' --- 'cherry'
16091609 ├── key: (1)
@@ -1652,7 +1652,7 @@ project
16521652 └── select
16531653 ├── columns: k:1(int!null) g:2(geometry!null) s:3(string!null)
16541654 ├── immutable
1655- ├── stats: [rows=11.1111, distinct(2)=7, null(2)=0, distinct(3)=1, null(3)=0]
1655+ ├── stats: [rows=11.1111, distinct(2)=7, null(2)=0, distinct(3)=1, null(3)=0, distinct(2,3)=7, null(2,3)=0 ]
16561656 │ histogram(3)= 0 11.111
16571657 │ <--- 'banana'
16581658 ├── key: (1)
0 commit comments