Skip to content

Commit

Permalink
opt: calculate stats for partial spatial indexes
Browse files Browse the repository at this point in the history
This commit updates the statistics builder so that partial index
predicates of spatial indexes are considered when calculating the
statistics for spatial index scans.

Release note: None
  • Loading branch information
mgartner authored and jayshrivastava committed Oct 8, 2020
1 parent 3ee7ca7 commit 5ff0d05
Show file tree
Hide file tree
Showing 7 changed files with 693 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ query T
SELECT url FROM [EXPLAIN (DISTSQL)
SELECT k FROM geo_table WHERE ST_Intersects('MULTIPOINT((2.2 2.2), (3.0 3.0))'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUU19P2zAQf9-nsO6FVvNa2-m04afCCFumQlmaaUM4QllzYxHBzmx3yoT63ackDGhRC70HJ_fnd3e_O90tuN8lSJiFk_BDQha2JMfx9IRchN_PJgfRKekdRbNk9mXSJ3ch113AFZpLn_0okXz7FMYhcf6y0B6tw7l3vb2Tr5MkOptGp0mvJwaCiIHoU9ILBowEA9bv70n5MZyehEl8TptcN30yjY_CmByek-sUKGiT42l2gw7kBXBIKVTWzNE5YxvTbRsQ5TVIRqHQ1cI35pTC3FgEeQu-8CWChKRpMsYsRztkQCFHnxVlm_aew7jp4LLQOdZAYVZl2kkyVHCoVP0zV6rmTKmaPffAm10xXAHJdE4CRoz_hdZBuqRgFv6Bj_PZFYLkS_pyzpH-g9ZjflyUHi3aIV8l_t8f1pUlRpMxl8Q1rInzmfWyZRG8e6sUE0wpxp57gKDOd4U15NfYU5guvCRjvnEOYpc5fDaFvlu92LT6yhY3mf37UJqOxcbqwS7VZ8Z6tMNgtfKYvwYK3Wbk-tkwzkasE3H35Yx3P_sH-_fC-OiJ_hC5Iu9HT_Q9-fj6xqL_grmPdmEeo6uMdrjCfFNmtkwpYH6F3V07s7BzPLNm3pbp1GmLaw05Ot95eadEunM1DT4G861gsR0stoKD7eBgK3i0Bk6Xr_4FAAD__2cps3E=
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUU11P2zAUfd-vsO4Ljea1dtJpw0-FEbZMhbA004ZwhLLmjkUEO7PdKRPqf5-SMKBFLdQPTu7HObnnOL4F-7sCAbNwGn5IycJU5DiJT8hF-P1sehCdksFRNEtnX6YeuWu57huuUF-6_EeF5NunMAmJdZelcmgszp0d7J18nabRWRydpoOBP_SJP_Q9SgbBkJFgyDxvT4iPYXwSpsk5bbluPBInR2FCDs_JdQYUlC7wNL9BC-ICOGQUaqPnaK02beq2a4iKBgSjUKp64dp0RmGuDYK4BVe6CkFA2g6ZYF6gGTGgUKDLy6qjvdcwaSe4LFWBDVCY1bmygowkHErZ_CykbDiTsmHPbfBmVwyXQHJVkIAR7X6hsZAtKeiFe9BjXX6FIPiSvlxzpP6gcVgcl5VDg2bEV4X_r4dNbYhWZMIFsa1qYl1unOhUBO_eSsl8JiVjz21AUBW7wlrxa-opxAsnyIRv9MHfxYfPulR3R-9vOvralDe5-QsUerfE-q_MOBuzfvl3T854_7J_sH-_GB8_iR86V9b78ZN4Tzy-ERPfe4EXwS5ezLRxaEbBqg8T_noj_XgX-gRtrZXFFfpNzGyZUcDiCvurbPXCzPHM6Hn3mT6MO1yXKNC6vsr7IFJ9qR3wMZhvBfvbwf5WcLAdHGwFj9fA2fLVvwAAAP__ks-wYA==

# The inverted filterer handles five inverted index rows with decoded
# datums, where the first column is the PK (k) and the second is the cellid
Expand Down Expand Up @@ -65,7 +65,7 @@ query T
SELECT url FROM [EXPLAIN (DISTSQL)
SELECT k FROM geo_table WHERE ST_Intersects('MULTIPOINT((2.2 2.2), (3.0 3.0))'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUU19P2zAQf9-nsO6FVvNa2-m04afCCFumQlmaaUM4QllzYxHBzmx3yoT63ackDGhRC70HJ_fnd3e_O90tuN8lSJiFk_BDQha2JMfx9IRchN_PJgfRKekdRbNk9mXSJ3ch113AFZpLn_0okXz7FMYhcf6y0B6tw7l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zfvl3T854_7J_sH-_GB8_iR86V9b78ZN4Tzy-ERPfe4EXwS5ezLRxaEbBqg8T_noj_XgX-gRtrZXFFfpNzGyZUcDiCvurbPXCzPHM6Hn3mT6MO1yXKNC6vsr7IFJ9qR3wMZhvBfvbwf5WcLAdHGwFj9fA2fLVvwAAAP__ks-wYA==

statement ok
ALTER INDEX geo_table@geom_index EXPERIMENTAL_RELOCATE VALUES (ARRAY[2], 1152921574000000000)
Expand All @@ -89,7 +89,7 @@ query T
SELECT url FROM [EXPLAIN (DISTSQL)
SELECT k FROM geo_table WHERE ST_Intersects('MULTIPOINT((2.2 2.2), (3.0 3.0))'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUU19P2zAQf9-nsO6FVvNa2-m04afCCFumQlmaaUM4QllzYxHBzmx3yoT63ackDGhRC70HJ_fnd3e_O90tuN8lSJiFk_BDQha2JMfx9IRchN_PJgfRKekdRbNk9mXSJ3ch113AFZpLn_0okXz7FMYhcf6y0B6tw7l3vb2Tr5MkOptGp0mvJwaCiIHoU9ILBowEA9bv70n5MZyehEl8TptcN30yjY_CmByek-sUKGiT42l2gw7kBXBIKVTWzNE5YxvTbRsQ5TVIRqHQ1cI35pTC3FgEeQu-8CWChKRpMsYsRztkQCFHnxVlm_aew7jp4LLQOdZAYVZl2kkyVHCoVP0zV6rmTKmaPffAm10xXAHJdE4CRoz_hdZBuqRgFv6Bj_PZFYLkS_pyzpH-g9ZjflyUHi3aIV8l_t8f1pUlRpMxl8Q1rInzmfWyZRG8e6sUE0wpxp57gKDOd4U15NfYU5guvCRjvnEOYpc5fDaFvlu92LT6yhY3mf37UJqOxcbqwS7VZ8Z6tMNgtfKYvwYK3Wbk-tkwzkasE3H35Yx3P_sH-_fC-OiJ_hC5Iu9HT_Q9-fj6xqL_grmPdmEeo6uMdrjCfFNmtkwpYH6F3V07s7BzPLNm3pbp1GmLaw05Ot95eadEunM1DT4G861gsR0stoKD7eBgK3i0Bk6Xr_4FAAD__2cps3E=
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUU11P2zAUfd-vsO4Ljea1dtJpw0-FEbZMhbA004ZwhLLmjkUEO7PdKRPqf5-SMKBFLdQPTu7HObnnOL4F-7sCAbNwGn5IycJU5DiJT8hF-P1sehCdksFRNEtnX6YeuWu57huuUF-6_EeF5NunMAmJdZelcmgszp0d7J18nabRWRydpoOBP_SJP_Q9SgbBkJFgyDxvT4iPYXwSpsk5bbluPBInR2FCDs_JdQYUlC7wNL9BC-ICOGQUaqPnaK02beq2a4iKBgSjUKp64dp0RmGuDYK4BVe6CkFA2g6ZYF6gGTGgUKDLy6qjvdcwaSe4LFWBDVCY1bmygowkHErZ_CykbDiTsmHPbfBmVwyXQHJVkIAR7X6hsZAtKeiFe9BjXX6FIPiSvlxzpP6gcVgcl5VDg2bEV4X_r4dNbYhWZMIFsa1qYl1unOhUBO_eSsl8JiVjz21AUBW7wlrxa-opxAsnyIRv9MHfxYfPulR3R-9vOvralDe5-QsUerfE-q_MOBuzfvl3T854_7J_sH-_GB8_iR86V9b78ZN4Tzy-ERPfe4EXwS5ezLRxaEbBqg8T_noj_XgX-gRtrZXFFfpNzGyZUcDiCvurbPXCzPHM6Hn3mT6MO1yXKNC6vsr7IFJ9qR3wMZhvBfvbwf5WcLAdHGwFj9fA2fLVvwAAAP__ks-wYA==

# Data is distributed, but the filterer can't be distributed since it is not a union.
query I
Expand All @@ -102,7 +102,7 @@ query T
SELECT url FROM [EXPLAIN (DISTSQL)
SELECT k FROM geo_table WHERE ST_CoveredBy('MULTIPOINT((2.2 2.2), (3.0 3.0))'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUU99P2z4Qf__-Fda90OrrtbbTacNPhRG2TIWyNNOGcIRCfWMRIc5sFwWh_u9TEgYU1ELvwcn9-Nzd5053B-5PARJm4ST8lJCFLchhPD0iZ-HPk8ledEx6B9EsmX2b9Ml9yFUXcInm3GcXBZIfX8I4JM6fz80NW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z3dt9WIyPX8SPnSvr4_hFvCOeXoiJ773BimAbK2baODSjYNWGCf9_Lf14G_oEba0riyv065jZMqOA6hL7m2z1wszxxOh595k-jDtcl1BoXV_lfRBVfakd8CmYbwT7m8H-RnCwGRxsBI-fgbPlf38DAAD__7lKr14=

# Move all the index data that will be read to node 2 while the query executes
# at node 1. The filtering moves to node 2 when it is distributable.
Expand All @@ -129,7 +129,7 @@ query T
SELECT url FROM [EXPLAIN (DISTSQL)
SELECT k FROM geo_table WHERE ST_Intersects('MULTIPOINT((2.2 2.2), (3.0 3.0))'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUlFFP2zAQx9_3Kax7odVMaztBG34qjLBlKi1LO20IVyhrbiyi2JntTplQv_uUhAEFNaV-cHL2_e7yv9PlDtzvBUiYRMPow5Qs7YKcJuMzchl9Px8exSPSOYkn08mXYZfcu9w0Dtdornz6Y4Hk26coiYjzV7n2aB3OvevsnX0dTuPzcTyadjqiJ4joiS4lnaDHSNBj3e6elB-j8Vk0TS5oFeu2S8bJSZSQ4wtyMwMK2mQ4Sm_RgbwEDhQEzCgU1szROWOr47vaKc5KkIxCroulr45nFObGIsg78LlfIEgYmX1T9EOgkKFP80XttqJglv4Rcj69RpAHK_okMG8PPK0qkGCaoe2ztfDwUKBBJe8q1xmWQGFSpNpJ0ldwrFT5M1Oq5Eypkm3bYH9Xhisgqc5IwIjxv9A62KSZ76I51n_QesxO84VHi7bP14X_v4_KwhKjyYBL4irVxPnUelmrCN4dKMUEU4qxbRsQ1NmuWCX-mXoK46WXZMA31kHsUofPJtf3rRebWl_Y_Da1fx9T04HYmD3YJfvEWI-2H6xnHvC3QKHpjHw-k4yzkDVL3D85483L4dHhw2I8fGE_eq6t9-ELe08-He2B6L6i7uGa8i3DnKArjHb4qmlmqxkFzK6x-WE4s7RzPLdmXqdpzHHN1QcZOt_cHjRGrJur6gOfwrwVFu2waIWDdjhohcN2OGyF2TN4tnrzLwAA__-ZiOWI
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUlFFP2zAQx9_3Kax7odVMaztBG34qjLBlKi1LO20IVyhrbiyi2JntTplQv_uUhAEFNaV-cHu--13y_1uXO3C_FyBhEg2jD1OytAtymozPyGX0_Xx4FI9I5ySeTCdfhl1yX3LTFFyjufLpjwWSb5-iJCLOX-Xao3U4966zd_Z1OI3Px_Fo2umIniCiJ7qUdIIeI0GPdbt7Un6MxmfRNLmgVa_bLhknJ1FCji_IzQwoaJPhKL1FB_ISOFAQMKNQWDNH54ytju_qojgrQTIKuS6WvjqeUZgbiyDvwOd-gSBhZPZN0Q-BQoY-zRd12YqCWfpHyPn0GkEerOiTxry98bRyIME0Q9tna-3hwaBBJe8q1xmWQGFSpNpJ0ldwrFT5M1Oq5Eypkm3bYH9Xhisgqc5IwIjxv9A62KSZ76I51n_QesxO84VHi7bP14X_z0dlYYnRZMAlcZVq4nxqvaxVBO8OlGKCKcXYtg0I6mxXrBL_TD2F8dJLMuAbfRC7-PDZ5Pr-6sWmqy9sfpvav0ChcUs-nxPGWciaJe5_OePNn8Ojw4fFePgifqxcW-_DF_GefDpuA9F9hRfBLl5MjPVo-8G6DwP-dmP7cK39lvlN0BVGO3zVALPVjAJm19h8I5xZ2jmeWzOvH9OE45qrDzJ0vskeNEGsm1T1gk9h3gqLdli0wkE7HLTCYTsctsLsGTxbvfkXAAD__4th4nc=

query I
SELECT k FROM geo_table WHERE ST_CoveredBy('MULTIPOINT((2.2 2.2), (3.0 3.0))'::geometry, geom) ORDER BY k
Expand All @@ -142,7 +142,7 @@ query T
SELECT url FROM [EXPLAIN (DISTSQL)
SELECT k FROM geo_table WHERE ST_CoveredBy('MULTIPOINT((2.2 2.2), (3.0 3.0))'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUlNFP2z4Qx99_f4V1L7T6mdZ2gjb8VBhhy1RalnbaEK5QqG8sosSZ7aIg1P99SsKAghqoH5ycfZ-7fO90uQf3ZwESJtEw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C7LcMVkDTXJGDE-N9oHWzSzLfRHOe3aD3q42zh0aLt83Xh__JRWVhicjLgkrhKNXE-tV7WKoIPe0oxwZRi7K0NCOZ6W6wS_0I9hfHSSzLgG30Q2_jw1WT5w9WLTVdf2OwmtXdAoXFLvhgTxlnImiUefjnjzZ_9g_3HxXj4Kn6qXFsfw1fxjnw-bQPRfYcVwTZWTIz1aPvBug0D_v_G9uFa-zfGN0FXmNzhu-aXrWYUUF9h84lwZmnneGrNvH5ME45rrj7Q6HyT3WuCOG9S1Qs-h3krLNph0QoH7XDQCoftcNgKsxfwbPXf3wAAAP__KCLhdQ==

# Bounding box operations.
statement ok
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SELECT k FROM geo_table WHERE ST_Intersects('SRID=26918;POINT(400003 4000003)'::
query T
SELECT url FROM [EXPLAIN ANALYZE SELECT k FROM geo_table WHERE ST_Intersects('SRID=26918;POINT(400003 4000003)'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJyUVGFP2zAQ_b5fcbovUM1T7STriqdJLRC2bqVlaaWNkQqF5sYikriz3S0I9b9PSWDQQgvtB1e-u-e89-7sGzS_U5Q48vv-wRjmOoWjYHgMZ_73k363N4DuoNs__eHD7mFvNB597TfgtvSqLrwkdW6ji5Tg2yc_8MHY8yS3pA1NrdndGQW9ww9Oa0-0358Me4Pxrsc55y5Uf9xt7Ej50R8e--PglJVnZQ0YBod-APuncDVBhrmKaRBlZFCeocAJw5lWUzJG6TJ0UxX04gIlZ5jks7ktwxOGU6UJ5Q3axKaEEsclyYCimHSTI8OYbJSk1bH_NXRKBudJHlOBDEezKDcSmiHuh2HxMw7DQvAwLPhzC77ZFiNChCiPweWg7C_SBhlq9deApiiW4CFDY6M0BZtkJIGX-YtrS3cFjteGfZwsGKq5vffA2OiSUIoFe7lPvfwPaUvxUZJa0qSbYtmsu7xfzDSoHDpCgimdAmMjbWWl3H33Ngy5w8OQ8-cWBMrjbW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=

statement ok
DROP TABLE geo_table
Expand Down Expand Up @@ -64,7 +64,7 @@ SELECT k FROM geo_table WHERE ST_Intersects('SRID=26918;POINT(400003 4000003)'::
query T
SELECT url FROM [EXPLAIN ANALYZE SELECT k FROM geo_table WHERE ST_Intersects('SRID=26918;POINT(400003 4000003)'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJykVGFP2zoU_f5-xdX9AtXzU-0kr6_4aVILhK1baVlaaWOkQqG5YxFJ3NnuVoT63ycnMKBTM6r1gyvfe87NPcfXvkPzNUeJk3AYHk1hqXM4icancBF-PBv2ByPoj_rD808h7B8PJtPJ-2EL7qE3NfCa1KVNrnKCD2_CKARjL7PSkjY0t2Z_bxINjl95nQPR_f9sPBhN9wPOOfeh-uN-a0_K1-H4NJxG58zVKlowjo7DCA7P4WaGDEuV0igpyKC8QIEzhgut5mSM0i50VwEG6QolZ5iVi6V14RnDudKE8g5tZnNCiVPXZERJSrrNkWFKNsnyquxPDT3XwWVWprRChpNFUhoJ7RgP43j1OY3jFffdwn-z4D-7ckSMkJQp-ByU_ULaIEOtvhvQlKQSPGRobJLnYLOCJHCXv7q19AAQXgCHOFszVEv76IGxyTWhFGv2cp8G5TfSltKTLLekSbfFc7Me8uFqoUGV0BMSjHMKjE20lZVy_79_45g75dwJbFwQqEx3pTnDfnFsvLQSeuIF3hXJCgoqlL6FpSGH4vAu2-6gt4uDb1VW3g-at23QFjorEn372DTreS_ouxpN2EDVwQ3sNiX-LkomSlvSbf-5ip74GxnW8yE3LzwXXLir7XGv0zngT39Hnb7oBqLedHlXdIMgDMSefPoG9LzWn52kaD7JYBf9EZmFKg0907-tMl_PGFJ6TfW7ZNRSz-lMq3n1mXo7rnhVICVj66yoN4OyTrkGn5JFI9lrJnuNZL-Z7DeSgw3ybP3XjwAAAP__-mH3Sw==
https://cockroachdb.github.io/distsqlplan/decode.html#eJyclFFv0zAQx9_5FKd72SqCaiehdEZI7bYMAl070kowlmrKmmNES-Jiu9Bp6ndHTjZYixpW8uDId_-_c_eznTvU33MUOA4GwdEEFiqHk2h0ChfB57NBPxxCf9gfnH8JYP84HE_GHwctuJfe1MJrkpcmucoJPr0LogC0ucxKQ0rTzOj9vXEUHr9xOwe8-_psFA4n-z5jjHlQvZjX2hPibTA6DSbRuWPXKlowio6DCA7P4WaKDpYypWFSkEZxgRynDs6VnJHWUtnQXSUI0yUK5mBWzhfGhqcOzqQiFHdoMpMTCpzYIiNKUlJthg6mZJIsr5b93UPPVnCZlSkt0cHxPCm1gHaMh3G8_JrG8ZJ5dmD_GPDFrh4eIyRlCh4Dab6R0uigkj81KEpSAS46qE2S52CyggQwm7-6NfQg4K4PhzhdOSgX5g8DbZJrQsFXztM5heUPUobSkyw3pEi1-Tqsh3ywnCuQJfS4AG1JgTaJMqLq3Hv1Mo6Z7ZzZBhsHBCrTXW0W2F_ERgsjoMefwK5IllBQIdUtLDRZFYMP2XaC7i4E38usvD9o7raDNldZkahbdLDmLDYvDuOM2yviMrfTOWCPn6NOn3d9Xk-6rMu7vh_4fE88vks9t7UTkerQw4aqDm5otzHydmE0lsqQanvrfHr8-f9sHm_ePH-XwiLSc1lqWits28psNXWQ0muqf0VaLtSMzpScVZ-pp6PKVwVS0qbO8noSlnXKFvjYzBvNbrPZbTR7zWav0exvmKerZ78CAAD__4tB9Do=

# Also works when creating an index.
statement ok
Expand All @@ -76,4 +76,4 @@ CREATE INVERTED INDEX geom_index ON geo_table(geom)
query T
SELECT url FROM [EXPLAIN ANALYZE SELECT k FROM geo_table WHERE ST_Intersects('SRID=26918;POINT(400003 4000003)'::geometry, geom) ORDER BY k]
----
https://cockroachdb.github.io/distsqlplan/decode.html#eJykVGFP2zoU_f5-xdX9AtXzU-0kr6_4aVILhK1baVlaaWOkQqG5YxFJ3NnuVoT63ycnMKBTM6r1gyvfe87NPcfXvkPzNUeJk3AYHk1hqXM4icancBF-PBv2ByPoj_rD808h7B8PJtPJ-2EL7qE3NfCa1KVNrnKCD2_CKARjL7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ZJrQsFXztM5heUPUobSkyw3pEi1-Tqsh3ywnCuQJfS4AG1JgTaJMqLq3Hv1Mo6Z7ZzZBhsHBCrTXW0W2F_ERgsjoMefwK5IllBQIdUtLDRZFYMP2XaC7i4E38usvD9o7raDNldZkahbdLDmLDYvDuOM2yviMrfTOWCPn6NOn3d9Xk-6rMu7vh_4fE88vks9t7UTkerQw4aqDm5otzHydmE0lsqQanvrfHr8-f9sHm_ePH-XwiLSc1lqWits28psNXWQ0muqf0VaLtSMzpScVZ-pp6PKVwVS0qbO8noSlnXKFvjYzBvNbrPZbTR7zWav0exvmKerZ78CAAD__4tB9Do=
Loading

0 comments on commit 5ff0d05

Please sign in to comment.