From 2b55199d2613911e2c46dcd17153675af8b4f707 Mon Sep 17 00:00:00 2001 From: Yahor Yuzefovich Date: Sat, 20 Jul 2024 13:26:59 -0700 Subject: [PATCH 1/2] sql: include MaxTimestampAge info for TableReader in DistSQL diagrams This commit includes `MaxTimestampAge` field of the `TableReaderSpec` into the DistSQL diagram. This feature is used by the table stats collection to utilize the inconsistent scan, and it'll be easier to confirm that it's actually used under the hood. Release note: None --- pkg/sql/execinfrapb/flow_diagram.go | 7 +++++++ .../exec/execbuilder/testdata/distsql_misc | 20 +++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/pkg/sql/execinfrapb/flow_diagram.go b/pkg/sql/execinfrapb/flow_diagram.go index 73c6650e72ce..5dfef032879c 100644 --- a/pkg/sql/execinfrapb/flow_diagram.go +++ b/pkg/sql/execinfrapb/flow_diagram.go @@ -21,6 +21,7 @@ import ( "sort" "strconv" "strings" + "time" "github.com/cockroachdb/cockroach/pkg/base" "github.com/cockroachdb/cockroach/pkg/sql/catalog/catalogkeys" @@ -179,6 +180,12 @@ func (tr *TableReaderSpec) summary() (string, []string) { details = append(details, spanStr.String()) } + if tr.MaxTimestampAgeNanos != 0 { + details = append(details, fmt.Sprintf( + "Inconsistent scan (max ts age %s)", time.Duration(tr.MaxTimestampAgeNanos), + )) + } + return "TableReader", details } diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_misc b/pkg/sql/opt/exec/execbuilder/testdata/distsql_misc index 8b473591e91a..52f20dd7ef63 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_misc +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_misc @@ -92,7 +92,7 @@ vectorized: false · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lV1ro0oYx-_Ppxiem7YwoqPmzauGNuUITdKTEc4uSyjT-DSVGic7M9Ltlnz3xWSzrW6VRIgXoqP-nt_858U30N9TCGD05e52GE7I-XXII_7f7QW5mo2G0YjwaBiFPAqv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ykfLZkTkCWFEmidUQCHMY5nrVBvMDdGxyMn5UrwSo4lYIOksHX0B8zUFWZgPLG3EAiFgn3yE1xA4a3q8FS6WqwyV3dm3sV3m6Q8MCHMcp3TJjTABuWQHQdwKSOcgyEf9IpcqQYXJXv35-iDqcLFQuBBGKps5x0OTc9dxyEMRP6OpydKrWGD7YbLj-4I16AubWbbbYmewU8zsOqPbQmd090Dc41N1m6TqWrbXYqruKWZ2qfZaSLW3B-Idn6rXJFXPsv0WU_VOMbNLtd9Cqv09EP_4VP0mqfqW3WkxVf8UM7tUBy2kOjhlSM1Qr2SusTIjvq7kVCpZrBwmmCxwO3m0LFSMd0rGm3-3r9ON0GYhQW22X9n2Jcx3n7RRKJa_Z-xnJVar5O4psc9KnaqSW890CpRXK-UfVmJVJb-pvW5VqVOr1D3M5FaVuk2ZelWlXq1S_zCTV1XqN2XqV5UG9W3gHIby_-jN-javoRqUR-cxky_3aQIBOL8u64vb7oJyg1jo8vzyJ_mykY3eVuXpexSZRgpj8YzXaFAt0zzVJo0hMKrA9fqvnwEAAP__bD7lOg== statement ok INSERT INTO data SELECT a, b, c::FLOAT, 1 @@ -116,7 +116,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsllFvm0gQx9_vU4zmpa2EA7tgx-GpOTfVWZXjyKCeTqeo2sDURcYst7sozUX-WPcF7pOdgHKxqXFNJFd9qB-Qd3eY-f-Z3672EfVfKfo4WVxdhlcQhJfhNAinkwA0g_k1CHi7mM8gFkbA79PwN5jfhNP5dQCXAczfQvBHEF7NIJzOruDFgBX6BVqYyZiuxZo0-n8iQws5WuiihR5aOMRbC3MlI9JaqjLksXphGn9G37EwyfLClNO3FkZSEfqPaBKTEvoYiruUFiRiUraDFsZkRJJWZUqBr8vHh3xFD2jhRKbFOtM-CLQwyEX5d2AzEFkMDKT5RAotfPceyuLah4zVQ0XLRJbBhrSpp0yyJh-cf__R9TiSmaHMJDL7aknJew0xRTKm2AfmOPX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BT2jhROblUugAOFoYFrz6ObAZcJEAA2m-kUILpyKWQmfakDCgYy7gZMkfwWjgKcFw6ehTtPDTZ6gg6gAEa5aK0kxWJQ1p04RMtqQAnL__0s06lqKqmknxw5aSDxoSimVCSQDMcZrw_ZMhDYp4EsDYceD_TTid304g5nmuN3ILnql1rlsHrz9PJqANFRDLUhg4oUdjZ8KcBuDYLwlEi66EGpYsTVGaptPdysJm_X0g2vCUMGAbE5x-wMBZWYcPMeTLIidlD7cH2ITD7E-qe9eUQsNNAO9ZJxC3BWTYCeSlfymkSkhRstX_btUJ9TJNFaXcSGUz53DQcOI6DtyX8YKMPu2k4LUosO0_kx3uCPYKR9hsYLtv0BPuLk-wsxF8yna4wt3lCv8YrnB7uIL1GeTaFaMjuGK0BcQ9XFHuaxTlDmzvp6KOoii3zyDXijo_gqLOt4B4hyvKe42ivIHt_1TUURTl9RnkWlHjIyhqvAXEP1xR_msU5Q_s4RtUlLdLUe6Zt1tR3i5FjY6hKK-Hovw-g1wr6uIIirrocymdky6k0NS6E-7u5LQ6DVh1eaQkpeamqWWpYrpVMq5zm-WsLlQHEtKm2WXNYirWW9oo4st_79SbldjeSu5WJbZZadiu5O7H1AeUt7eU312JtSv5fenxeiooyDxItWicpEnUB2DlzfVG46Vm5-V0Xu8uSWueviRUSt_EOWrjHO7FOepm7LYrjd4m4_M2zvO9OMfdjL12pfHbZDxu47zYbxCnm7L_g2v3HwC9OHudnN0z_z84D1ucL6oj62suH75kCQbofH8GO17rB6sPeKqrczP8Jh9q0NFTUZ16X3muycJrvqAPZEgtM5Fpk8UYGFXSavW_fwIAAP__4lPbAw== query T retry EXPLAIN (DISTSQL, TYPES) SELECT * FROM data @@ -157,7 +157,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsV9Fu27gSfb9fQcxLW1w6EiXZcfiUrJtijSJxYAldLBZGwUhTV7AsakkKaTbwZ-0P7JctJNVrSbFcC0GABKgfBHFmNJwzc3gMP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tINFK4Eit8jwbVOk5jbeIQuFE5bjb_-zcAAP__fmlu9A== +Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsV-9u2zYQ_76nONyXphgdiZLsOPqUzE0xo8gfWEKHYQgKRrq6QmzSI2kkWZDH2gvsyQZJVW0plmshKFoD9QdBvDsd73f348_gI5q_ZxjiaHJ2Gp9BFJ_G4ygejyIwHN5OLs8hFVbAH-P4d7i8iseXFxGcRnD5FqI_o_jsHOLx-Rm86vGleYUMpUrpQszJYPgXcmToIUMfGQbIsI_XDBdaJWSM0nnIY_HBOL3H0GWYycXS5uZrhonShOEj2szOCEOMxc2MJiRS0o6LDFOyIpsV2-QFnuSPD4tbekCGIzVbzqUJQTC4YZAwSJFhtBC5redwEDIFDsp-Io0MxzJR0mTGkrRgEiHhYC7uwRoQU4L-3DWvkeGEZEo6hBPO4MRjcOIzOAny9195GIbji3iIDN-9hxyRCUHycqlpmql8Y0vGliabzSkE979_TblOlMz3zpR85tLqzkBKiUopDYG7bmm-ebBkQJNIQxi6LvxWmqeTqxEkYjYza7ELkekq1iuM5-9HIzCWFpCopbRwQPfWyaR9HYLrrAKIbtsCirLU0i6Wttzp-olhuf48P2PFlDDkawMfv8HQfWK7zzwS88WMtNOvz7s0R9k_VOxdQIqssPlsVq_empWtr_y6g60bgmc-tm7rt-L0Gjj7rThX8JZS6ZQ0pTV410-tnTidTjVNhVXa4e7uPYEDz3XhZpncki2oXHWozdHo17aweve-ElnvZSO4rbN-o7O8TiG-u2zwl8iGw3uOt7fC4W0SDn44gHfZBunwNklH8C2kw-sgHbzL3CvpGOyfdAxqOL3d-e29iN9ez_F_8vs78tvrMveK30f7x--jGk5_d377L-K333OCn_z-jvz2u8y94vdw__g9rOEMdud38CJ-Bz2nv7f89jfx2zv0N_Pb38Tvwbfgt9-B30GXuVf8Pt4_fh93ucJNyCyUNNS44mzeyW3s1OP5XYjSKZUXJ6OWOqErrZIitlxeFokKQ0rGll5eLsaychmrScy_3EDXM_GtmbxaJr6eqd_M5G2vqUtR_tZUQXsm3swUdIUniqmgJHun9G15UA3JQu1zJagc5VEtPau_oso7J2PEdBXgBni9XuegWWd_a52DdsReM9Pgx0R81KzzaGudw3bEfjPT8MdEPGzWebz9gLjtkINnp3a7AHTC7Ldi9g6Dr2DuNzAf55L1cabuPmQphuh-_vU2PKof5h-Iqcl1M_qk7oqi44dFrnofxcwQw3NxS2_Ikp5nMjM2SzC0eklPT7_8HwAA__-heK4y query T EXPLAIN ANALYZE (DISTSQL) CREATE STATISTICS s1 ON c, e, a FROM data @@ -177,7 +177,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsV9Fu2zYUfd9XXNyXbhhdiZLsOHxy5qaYUTgOLKHDMBgFI926QmRRI2mkWeDP2g_sywZJcWurtmEFcZGH6kEAL68Oz9U9hyAf0PydocDh9PIiuoQwuohGYTQahmA4TK4gZkAMJLydTsaQSCvhj1H0O0yuo9HkKoSLECZvIfwzjC7HEI3Gl_Cqw5fmFTLMVUJXckEGxV_IkaGHDH1kGCDDLs4YFlrFZIzSZcpD9cEo-YzCZZjmxdKW4RnDWGlC8YA2tRmhwEjeZDQlmZB2XGSYkJVpVi1TEhyUrw_FLd0jw6HKlovcCJCsLOUGGYaFLAMdh4PME-Cg7CfSyHBKeUJawIAzGHgMBv6vXAgxuor6yPDdeygJGgE5r4ea5qkqoSwZW4dsuiAB7n__mnocq9xSblOVfzOl1Z2BhGKVUCKAu24dvrm3ZECTTAT0XRd-q8Pz6fUQYpllZiO3kKle53pVcPx-OARjqYBYLXMLP9Nn66S5_UWA63xNILrdl1DRUktbLG290mzFsB4_tsNYOScUfKN_ozco3BU7voWhXBQZaae73b46HKb_lH-qbJWVturHwGMDfy8Vr0Glu5fKVwbLXOmENCVbDGarvWQv5nNNc2mVdrj7LLT9Bm2-_Qv58S7gT3aBwzuO94J84O3yAX_dg3fpDid4u5wQnMIJXgsn8DZtXDuhdxIn9LaoeMcrynu6oryO4_9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m1wjZ8jDw28rdC8TpQ-luhfEYwl0pnpClbQ3C12Ar2LM815cIq7XD3P4Htd2Dz9VfI9_cKf7JXHN5zvO_OLd4mt_CXA3hTbPCLt8kvwTH84h3gF34I2Uu_DI7il8EaFG9_3XlP153Xc_wfuvsKuvMOIXupu5Oj6O5kDYq_v-78p-vO7znBD919Bd35h5C91N3wKLobrkEJ9tdd8HTdBT2n_93pzt-kO--lv1l3_ibdDY6hO_8A3QWHkL3U3elRdHd6yBF5SqZS0lDnfLq5k9vp1OP1QZaynNpTr1FzndJbrdImt11OmkJNICNj213eLiK53DJWk5h9OuGvVuI7K3lrlfhqpX63krcb0yGg_J2lgu2VeLdScOh4omEFJdlbpW9aLxmS9Y9U_df8GG691MaHzf_dcmdGxoj806aLV6v4Bl18_Z34Btsn9bqVBt_WpCddfCc78Q23T-p3Kw2_rUmHXXynu43gbh81-MKdu43-v896Wn-SPpTq9n2RYYju49XbcFteWD8gclN_F-OP6rYBm9xX9VftgygNMbwQN_SKLOlZIQtjixRDq-e0WPz0bwAAAP__cWn_DA== query T EXPLAIN ANALYZE (DISTSQL) CREATE STATISTICS s1 ON e FROM data @@ -197,7 +197,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsVtFu2zYUfd9XEPelLSZXoiQ7Dp-auSkmFI4DS-gwDEHBSLeqYJnUSAppFviz9gP7skFStdiq5VlBDeShehDMy6t7z_E9h-AD6D9zYDBbXl5ElySMLqIgjIJZSDQliyuC5N1yMScJN5z8FkS_ksV1FCyuQnIRksU7Ev4eRpdzEgXzS_JiREv9AiwQMsErvkYN7A-gYIELFnhggQ8WjOHGgkLJGLWWqkp5qD8Iki_AHAsyUZSmCt9YEEuFwB7AZCZHYBDx2xyXyBNUtgMWJGh4ltdtKoBvqtfHYoX3YMFM5uVaaEZuwYKw4NXPkU0JFwmhRJrPqMCCJYoEFSNv6M-UMRZcRVOw4P0HUkHSjAjaLBWmmaxKGNSmCZlsjYw4__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BPCVlO2hhSobnRdOmBvi6fn0ob-geLZzJoloKHcA1WhiVvP45shlwkQIDaT6RQgtDkUihc21IGNAJF3Cw5HdgNPCMYLx09CFauCCRkgrgNfuZBUEQXsRTtPDde6iB6wAEa5eKslzWjQxp04ZMvqQAnH_-1u06kaLulUvxxZaStxpSSmRKaQDMcdrw9b0hDYp4GsDUceCXNpwtLmeQ8KLQz3JLnqtVrtsEz9_PZqANlZDIShg4oDtj58IcBuDYTwlEN30JDSxZmbIybaerRwvb9ecxacMzwoA9m2v4BgPn0dp9tBFflgUpe7w-1jYc5X9R07uhFBlu6ln0AnE7QMa9QJ76V0KqlBSla_2vHnuhnmaZoowbqWzm7A4aDlzHgesquSGjD3speB0KbP3PZLv7hL3AJzYb2e534xR3k1PY0QTe5Ru84m7yir8Pr7gDvMKGjHfllckevDJZA-LurjP3JTpzR7b3Q2dfUWfukPGudHa8B50drwHxdteZ9xKdeSPb_6Gzr6gzb8h4Vzqb7kFn0zUg_u4681-iM39kj78bnXmbdOYeeZt15m3S2WQfOvMG6MwfMt6Vzk72oLOTIZfdBelSCk2du-bmTk6n04jVl1JKM2pvsFpWKqFLJZMmt13Om0JNICVt2l3WLkKx2tJGEV_-d1d_XoltreSuVWLPK427ldztmIaA8raW8vsrsW4lfyg93kwFBZlbqW5aJ2kSzbFYe3O10Xqp3Xk6s1e7S9KaZ08JtdKf45x0cY634pz0M3a7lSbfJuPjLs7jrTin_Yy9bqXpt8l42sV5st0gTj9l_wvXbj8ABnH2ejm7R_7_cB53OJ_UR9bHQt5-yFMM0Pn8jDa8Vg_WH_BM1-dm9EneNqDj-7I-9T7yQpOF5_yG3pAhtcxFrk2eYGBURY-PP_0bAAD__zu89_Q= statement ok ALTER TABLE data ADD COLUMN f FLOAT AS (atan2d(c, d::float)) VIRTUAL @@ -220,7 +220,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsV9Fu2zYUfd9XXNyXthhdiZLsOHyy5yaY0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zTL12pmAz0y5Q4cZU3fWZeDtTd9fyZN0VVORutblpvGRJVZey6lL-FG681MQH9V1xMTMja2X2ZdLHy-d8_TZfbyNff32lQTtT_3VVetjmO9zIN1hfadjONHhdlQ7afEebjeCvL7X7jTs3G_0_r_Wo-iRdF_r2U56iQP_p11nxt_hh9YDMbPVdjD7r2xo2vi-rr9q1LCwxPJM39J4cmVmucuvyBIUzc3p8_N8_AQAA__-jQhmi statement ok CREATE TYPE gh AS (g INT, h INT) @@ -252,7 +252,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsV-Fu2zYQ_r-nONyfphgdiZTsOPzlzE0wo0scWEKHYQgKRrq6QmzRI2mkWZDH2gvsyQZJ9WwrlmsjaFED9Q9BvDsd77v7-Bl8RPvXBCX2R-dn8TlE8Vk8iOJBPwLL4WI0vIRUOQW_D-JfYXgdD4ZXEZxFMLyA6I8oPr-EeHB5Dq9afG5fIcNcp3SlpmRR_okcGQpkGCDDEBm28YbhzOiErNWmCHksPxikn1D6DLN8NneF-YZhog2hfESXuQmhxFjdTmhEKiXj-cgwJaeySblNUWCveLyf3dEDMuzryXyaWwmKwS2DhEGKDKOZKmwtj4PKU-Cg3UcyyHBEeUpGQo8z6AkGvYBBLyzef-ZSysFV3GWgnMpFetQLWC-U8uK34VncfY0M376DAoKVkPNqaWic6WInR9ZVJpdNSYL_7z-2Wic6d5S7TOfPXEbfW0gp0SmlErjvV-bbB0cWDKlUQtf34ZfKPB5d9yFRk4ldiZ2pzCxiRWm8fNfvg3U0g0TPcwdH9Ml5We5eS_C9ZQDRXVNAWZaeu9ncVTvdPDGs1p8HZp0aE0q-MuHBG5T-E9t9yJGaziZkvPb6gCtzlP1N5d4lpMgpV4xs-SpWrGx1Faw72KohfOZjq7b28rXTCFnUILcbIS-RznNtUjKUriG9eWpsytl4bGisnDYe93dvDxwJ34fbeXJHzr5eaVaTo9a6bWHrjfxC5Hpbm4I7cCSW5qaGB7WG83WS8d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nM49FlH1I5mdiV2JnMzSI2KI3nH_p9sI5mkOq5cnBAd87LlXsrwPeWAUQ3TQFlWXruZnNX7XT1yLBaf_ms1skxoeArczB4h8J_ZLuPQiynswkZr70-BpU5zv-mcu8SUuykKz7Z8jFYsbLVVbjuYKuG6ImPrdray8dOI-SgBrndCHmJdK60ychQtob06rGxKSfjsaGxdNp43N-9PXAQ-D5cz9MbcuWwL5rV5Ki1blvYeiO_Erne1qbgDhwES3NTw8Naw_n6kPHd9YY_R2883vKC701xgk2Kww878D7foDnBJs2JvoXmBHtoDt9nHBaa03nVmtNZgxzszoDgWQwIWl74gwEvjwHBPuOwYMDRq2bA0RrkcHcGhM9iQNjyoh8MeHkMCPcZhwUDuq-aAd01yNHuDIiexYCo5bW_NwaEmxgQHIabGRBuYkDnWzAg3IMB0T7jsGDA8atmwPE-h80R2ZlWlmonsM07-bWdWrw4qlE2pupcZ_XcpHRpdFrGVsthmag0ZGRd5eXVYqAWLusMyen_Z-XVTHxrpmAtE1_N1K5nCrbXtE9R4dZUUXMmXs8U7QtPll8FFblbbW4qzlpS5a-hmNyFo2Jt5Vn-txbeKVkrx8sAP8Kr1To79TrbW-vsNCMO6pk6LxPxUb3Oo611dpsRh_VM3ZeJuFuv83g7QfxmyNET1m4XgL0wh42Yg8PoK5jbNczHhWR9mujbj3mGAv0vV2vDbXFh8YIc20I348_6tiw6uZ8VqvdJTiwxPJc39I4cmWmucuvyFIUzc3p8_Om_AAAA___V9eFO # Check that we also collect stats on the hidden expression index virt column. statement ok @@ -276,7 +276,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsWN1u2zgTvf-egpibJt_SkUjJP-GVs26CNbqJA0voYrEICkaaukJs0UtSSLOBH2tfYJ9sIaleW4rlWgiKtkF9IZAzo-EczuER6Ecwf85BwGh6fhaekyA8C8dBOB4FxDByMZ1cklhaSX4bh7-QyXU4nlwF5CwgkwsS_B6E55ckHF-ek1cdlplXQCFVMV7JB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GAAD__wRZvfM= +Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsWO9u2zYQ_76nONyXphsdi5L8J_zkzE0wo0scWEKHYQgKRrq6QmzSI2kkWZDH2gvsyQZJdW0rlmsjKBAY9QeBvDsd70fe7yfQj2j_nqDA_ujsND6DKD6NB1E86EdgOZyPhheQSifhj0H8Gwyv4sHwMoLTCIbnEP0ZxWcXEA8uzuBNg8_tG2SodEqXckoWxV_IkaGPDANkGCLDFl4znBmdkLXa5CGPxQuD9B6FxzBTs7nLzdcME20IxSO6zE0IBcbyZkIjkimZpocMU3IymxTL5AX28sfH2S09IMO-nsynygqQDG4YJAxSZBjNZG5rNDlIlQIH7T6TQYYDlWhlM-tIObCJVHA0lffgLMgxQWvq2bfIcEQqJSOgxxn0fAa9gEEvzMe_cCHE4DLuMujxn3OfdFL56VEvYL1QiPPfh6dxN8_x_gPkeK0AxcupoXGm87IcWVeaXDYlAd5__9pynmiVV5Zp9cxl9J2FlBKdUiqAe15pvnlwZMGQTAV0PQ9-Lc3j0VUfEjmZ2JXYmczMItYvjBcf-n2wjmaQ6LlycET3rpkp91aA11wGEN3WBRRl6bmbzV250vUTw3L-5XStk2NCwVfaYfAOhffEdu-ISE5nEzLN1no3lOYo-4eKtQtIkZMuP7nl0F-xstVZsO5gq4bwmY-t2lrLYXs57NSi9yvoW7Xol6DnSpuUDKVroK-favfndDw2NJZOmyb3dt8pOPI9D27myS25ov0X-1bnqOzitrD1Pf1G5PoO1wW36xwdOPKX5rqTCConwdcbke8uTfwl0tTkjaZ_oOLkbxInftyG99kGefI3yVP4PeTJ30Oe-D5dsZCn9qHIU3sNvb87J_wXccJvNIMfnHi1nPD36YoFJzqHwonOGvpgd04EL-JE0GiGPzjxajkR7NMVC050D4UT3TX04e6cCF_EibDRbB0oJ4JNnPCPg82cCDZxov09OBHswYlwn65YcOLkUDhxss_FdkR2ppWlyhVv80peZaUGz--ClI6pvDhaPTcJXRmdFLHldFgkKgwpWVd6eTkZqIXLOkNy-vVevpqJb83kr2Xiq5la1Uz-9pr2KSrYmiqsz8SrmcJ94cniVFCRu9PmtqSvJZV_N4pb98JRErj0LD9qC--UrJXjZYBX_GG2rLNdrbO1tc52PWK_mqn9OhF3qnV2ttbZrUccVDN1XyfibrXOk-0E8eohh89Yu10A9sIc1GL2j8NvYG5VMJ_kkvVpou8-ZikK9L78Ghseix_mL8ixzXUz-qzviqLjh1muep_kxBLDC3lL78iRmWYqsy5LUDgzp6enn_4PAAD__5Fs_TE= # Check that we also collect stats on other hidden columns. statement ok @@ -303,7 +303,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsWN1u2zgTvf-egpibJt_SkUjJP-GVs26CNbqJA0voYrEICkaaukJs0UtSSLOBH2tfYJ9sIaleW4rlWgiKtkF9IZAzo-EczuER6Ecwf85BwGh6fhaekyA8C8dBOB4FxDByMZ1cklhaSX4bh7-QyXU4nlwF5CwgkwsS_B6E55ckHF-ek1cdlplXQCFVMV7JBRoQfwADChwoeEDBBwpduKGw1CpCY5TOQx6LF8bxRxAuhSRdZjY331CIlEYQj2ATO0cQEMrbOU5RxqgdFyjEaGUyL5bJCxzmj3fLO3wACiM1zxapEURScktJREkMFIKlzG0dhxGZxoQRZT-gBgpTTGPUggwZJUNOydCjZOjn45-YEGJ8FQ4oGbL_5z5pZcrjo6FHh74QF79OzsLBMVB485bkSIwgKSunGmeJyhe0aGxpsskCBXH_-duU80ilFlObqPSJS6t7Q2KMVIyxIMx1S_Ptg0VDNMpYkIHrkp9L82x6PSKRnM_NVuxSJnodywvj5dvRiBiLSxKpLLXkCD9aJ0ntsSCuswlAvGsKKMpSmV1mtlzpZkWhnH_qm7FyhiDYVqPHr0G4K3p4rwO5WM5RO91qn0tzkPyFxdoFpMBKm3duM-RbVro986oOum3wn_jotq27GfY2w34jel5D321EvwGdpUrHqDGugL5ZNe7P2WymcSat0g5zD98pcsRdl9xm0R1ac7y1b02O2i7uC6vu6WciqzvcFN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BKdUiqAe15pvnlwZMGQTAV0PQ9-Lc3j0VUfEjmZ2JXYmczMItYvjBcf-n2wjmaQ6LlycET3rpkp91aA11wGEN3WBRRl6bmbzV250vUTw3L-5XStk2NCwVfaYfAOhffEdu-ISE5nEzLN1no3lOYo-4eKtQtIkZMuP7nl0F-xstVZsO5gq4bwmY-t2lrLYXs57NSi9yvoW7Xol6DnSpuUDKVroK-favfndDw2NJZOmyb3dt8pOPI9D27myS25ov0X-1bnqOzitrD1Pf1G5PoO1wW36xwdOPKX5rqTCConwdcbke8uTfwl0tTkjaZ_oOLkbxInftyG99kGefI3yVP4PeTJ30Oe-D5dsZCn9qHIU3sNvb87J_wXccJvNIMfnHi1nPD36YoFJzqHwonOGvpgd04EL-JE0GiGPzjxajkR7NMVC050D4UT3TX04e6cCF_EibDRbB0oJ4JNnPCPg82cCDZxov09OBHswYlwn65YcOLkUDhxss_FdkR2ppWlyhVv80peZaUGz--ClI6pvDhaPTcJXRmdFLHldFgkKgwpWVd6eTkZqIXLOkNy-vVevpqJb83kr2Xiq5la1Uz-9pr2KSrYmiqsz8SrmcJ94cniVFCRu9PmtqSvJZV_N4pb98JRErj0LD9qC--UrJXjZYBX_GG2rLNdrbO1tc52PWK_mqn9OhF3qnV2ttbZrUccVDN1XyfibrXOk-0E8eohh89Yu10A9sIc1GL2j8NvYG5VMJ_kkvVpou8-ZikK9L78Ghseix_mL8ixzXUz-qzviqLjh1muep_kxBLDC3lL78iRmWYqsy5LUDgzp6enn_4PAAD__5Fs_TE= # Check that we can disable stats collection on virtual computed columns. statement ok @@ -330,7 +330,7 @@ quality of service: regular · • create statistics · -Diagram: https://cockroachdb.github.io/distsqlplan/decode.html#eJzsV-Fum0gQ_n9PsZo_baV1YBfsOPxKzk11VuU6Mqin08mqNjB1kTHL7S5Kc5Ef617gnuwE1GdDDDWKWjVS_QN5Z4bZ-Wa-b4EH0H8l4MFkcX0VXBM_uAqmfjCd-EQz8mYxn5FIGEF-nwa_kflNMJ2_88mVT-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FojdD9l7pNrdB8AgzG4vZufA-wHmcQfzUXVkfc3k7Zc0Rh_t789oy6t9sPpAJLo6N4Nv8rYuOrwvqlPvq8g0MTwTN_SeDKlFmqfapBH6RpW0XP7yXwAAAP__FtptJQ== statement ok RESET CLUSTER SETTING sql.stats.virtual_computed_columns.enabled From a81beba85cd0007f7081adf349434a3e056351a7 Mon Sep 17 00:00:00 2001 From: Yahor Yuzefovich Date: Wed, 24 Jul 2024 13:21:37 -0400 Subject: [PATCH 2/2] logictest: retry relocate stmt in a couple of places The capabilities are propagated asynchronously, so previously we could try to relocate ranges in the secondary tenant before the necessary capability was picked up. This was recently changed in 5f2a4f8af18dc83957ceb3c24cf9c6d7c79ee9e4. Release note: None --- .../logictest/testdata/logic_test/distsql_tenant_locality | 5 +++-- .../opt/exec/execbuilder/testdata/distsql_tenant_locality | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/sql/logictest/testdata/logic_test/distsql_tenant_locality b/pkg/sql/logictest/testdata/logic_test/distsql_tenant_locality index 18ef8e4112a3..057ada6dd873 100644 --- a/pkg/sql/logictest/testdata/logic_test/distsql_tenant_locality +++ b/pkg/sql/logictest/testdata/logic_test/distsql_tenant_locality @@ -12,8 +12,9 @@ statement ok CREATE TABLE t (k INT PRIMARY KEY, v INT, FAMILY (k, v)); INSERT INTO t SELECT i, i FROM generate_series(1, 6) AS g(i) -# Upreplicate the table's range. -statement ok +# Upreplicate the table's range. We need a retry to guarantee that the +# capability has been picked up. +statement ok retry ALTER TABLE t EXPERIMENTAL_RELOCATE VALUES (ARRAY[1, 2, 3], 0) # Split the ranges in the table. diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_tenant_locality b/pkg/sql/opt/exec/execbuilder/testdata/distsql_tenant_locality index ea66b6106c22..8725baf7a56c 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_tenant_locality +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_tenant_locality @@ -12,8 +12,9 @@ user root statement ok CREATE TABLE t (k INT PRIMARY KEY, v INT, FAMILY (k, v)) -# Upreplicate the table's range. -statement ok +# Upreplicate the table's range. We need a retry to guarantee that the +# capability has been picked up. +statement ok retry ALTER TABLE t EXPERIMENTAL_RELOCATE VALUES (ARRAY[1, 2, 3], 0) # Split the ranges in the table.