Skip to content

Commit c3fcab1

Browse files
committed
Add @force_zoneid_calculation variable and use dynamic zone height.
1 parent 1818aaf commit c3fcab1

File tree

2 files changed

+132
-142
lines changed

2 files changed

+132
-142
lines changed

demo/SQLxMatch_CasJobs_demo.ipynb

Lines changed: 101 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@
103103
"id": "556ced78-8c2f-4e11-988f-d95c892ca965",
104104
"metadata": {
105105
"execution": {
106-
"iopub.execute_input": "2023-11-17T17:36:04.102718Z",
107-
"iopub.status.busy": "2023-11-17T17:36:04.102114Z",
108-
"iopub.status.idle": "2023-11-17T17:36:05.125328Z",
109-
"shell.execute_reply": "2023-11-17T17:36:05.123187Z",
110-
"shell.execute_reply.started": "2023-11-17T17:36:04.102566Z"
106+
"iopub.execute_input": "2023-11-20T16:17:01.887813Z",
107+
"iopub.status.busy": "2023-11-20T16:17:01.887325Z",
108+
"iopub.status.idle": "2023-11-20T16:17:03.172494Z",
109+
"shell.execute_reply": "2023-11-20T16:17:03.170820Z",
110+
"shell.execute_reply.started": "2023-11-20T16:17:01.887686Z"
111111
},
112112
"tags": []
113113
},
@@ -136,11 +136,11 @@
136136
"id": "ead71a6c-c121-479e-a4d3-6d7b41e9af89",
137137
"metadata": {
138138
"execution": {
139-
"iopub.execute_input": "2023-11-17T17:36:05.128806Z",
140-
"iopub.status.busy": "2023-11-17T17:36:05.128289Z",
141-
"iopub.status.idle": "2023-11-17T17:36:06.826945Z",
142-
"shell.execute_reply": "2023-11-17T17:36:06.825162Z",
143-
"shell.execute_reply.started": "2023-11-17T17:36:05.128751Z"
139+
"iopub.execute_input": "2023-11-20T16:17:03.174799Z",
140+
"iopub.status.busy": "2023-11-20T16:17:03.174334Z",
141+
"iopub.status.idle": "2023-11-20T16:17:05.278111Z",
142+
"shell.execute_reply": "2023-11-20T16:17:05.275851Z",
143+
"shell.execute_reply.started": "2023-11-20T16:17:03.174737Z"
144144
},
145145
"tags": []
146146
},
@@ -325,11 +325,11 @@
325325
"id": "5be240a8-716b-4b38-aefd-45a61ff3d9e0",
326326
"metadata": {
327327
"execution": {
328-
"iopub.execute_input": "2023-11-17T17:36:06.832406Z",
329-
"iopub.status.busy": "2023-11-17T17:36:06.832000Z",
330-
"iopub.status.idle": "2023-11-17T17:36:08.599315Z",
331-
"shell.execute_reply": "2023-11-17T17:36:08.597605Z",
332-
"shell.execute_reply.started": "2023-11-17T17:36:06.832336Z"
328+
"iopub.execute_input": "2023-11-20T16:17:05.283404Z",
329+
"iopub.status.busy": "2023-11-20T16:17:05.282964Z",
330+
"iopub.status.idle": "2023-11-20T16:17:07.219971Z",
331+
"shell.execute_reply": "2023-11-20T16:17:07.218179Z",
332+
"shell.execute_reply.started": "2023-11-20T16:17:05.283357Z"
333333
},
334334
"tags": []
335335
},
@@ -418,11 +418,11 @@
418418
"id": "bd484de1-c066-499e-bdb3-141d8b0b087b",
419419
"metadata": {
420420
"execution": {
421-
"iopub.execute_input": "2023-11-17T17:36:08.601840Z",
422-
"iopub.status.busy": "2023-11-17T17:36:08.601390Z",
423-
"iopub.status.idle": "2023-11-17T17:36:10.458256Z",
424-
"shell.execute_reply": "2023-11-17T17:36:10.456486Z",
425-
"shell.execute_reply.started": "2023-11-17T17:36:08.601790Z"
421+
"iopub.execute_input": "2023-11-20T16:17:07.222591Z",
422+
"iopub.status.busy": "2023-11-20T16:17:07.222166Z",
423+
"iopub.status.idle": "2023-11-20T16:17:09.023439Z",
424+
"shell.execute_reply": "2023-11-20T16:17:09.021576Z",
425+
"shell.execute_reply.started": "2023-11-20T16:17:07.222543Z"
426426
},
427427
"tags": []
428428
},
@@ -726,11 +726,11 @@
726726
"id": "fa28b430-8353-4ddc-99be-07f1f4288a8e",
727727
"metadata": {
728728
"execution": {
729-
"iopub.execute_input": "2023-11-17T17:36:10.460832Z",
730-
"iopub.status.busy": "2023-11-17T17:36:10.460374Z",
731-
"iopub.status.idle": "2023-11-17T17:36:10.468721Z",
732-
"shell.execute_reply": "2023-11-17T17:36:10.467134Z",
733-
"shell.execute_reply.started": "2023-11-17T17:36:10.460783Z"
729+
"iopub.execute_input": "2023-11-20T16:17:09.026009Z",
730+
"iopub.status.busy": "2023-11-20T16:17:09.025590Z",
731+
"iopub.status.idle": "2023-11-20T16:17:09.034992Z",
732+
"shell.execute_reply": "2023-11-20T16:17:09.033243Z",
733+
"shell.execute_reply.started": "2023-11-20T16:17:09.025962Z"
734734
},
735735
"tags": []
736736
},
@@ -763,11 +763,11 @@
763763
"id": "7816e30a-0190-41bd-b38e-cde897a15faa",
764764
"metadata": {
765765
"execution": {
766-
"iopub.execute_input": "2023-11-17T17:36:10.470812Z",
767-
"iopub.status.busy": "2023-11-17T17:36:10.470393Z",
768-
"iopub.status.idle": "2023-11-17T17:36:17.020050Z",
769-
"shell.execute_reply": "2023-11-17T17:36:17.018116Z",
770-
"shell.execute_reply.started": "2023-11-17T17:36:10.470766Z"
766+
"iopub.execute_input": "2023-11-20T16:17:09.037525Z",
767+
"iopub.status.busy": "2023-11-20T16:17:09.037103Z",
768+
"iopub.status.idle": "2023-11-20T16:17:23.787872Z",
769+
"shell.execute_reply": "2023-11-20T16:17:23.785807Z",
770+
"shell.execute_reply.started": "2023-11-20T16:17:09.037441Z"
771771
},
772772
"tags": []
773773
},
@@ -776,9 +776,9 @@
776776
"name": "stdout",
777777
"output_type": "stream",
778778
"text": [
779-
"There are 97 matches.\n",
780-
"CPU times: user 29.8 ms, sys: 2.27 ms, total: 32.1 ms\n",
781-
"Wall time: 6.52 s\n"
779+
"There are 322 matches.\n",
780+
"CPU times: user 39.9 ms, sys: 12.8 ms, total: 52.7 ms\n",
781+
"Wall time: 14.7 s\n"
782782
]
783783
},
784784
{
@@ -810,33 +810,33 @@
810810
" <tbody>\n",
811811
" <tr>\n",
812812
" <th>0</th>\n",
813+
" <td>227306</td>\n",
814+
" <td>3422788</td>\n",
815+
" <td>0.477101</td>\n",
816+
" </tr>\n",
817+
" <tr>\n",
818+
" <th>1</th>\n",
813819
" <td>125607</td>\n",
814820
" <td>3251473</td>\n",
815821
" <td>0.881630</td>\n",
816822
" </tr>\n",
817823
" <tr>\n",
818-
" <th>1</th>\n",
824+
" <th>2</th>\n",
819825
" <td>217378</td>\n",
820826
" <td>3393112</td>\n",
821827
" <td>0.566069</td>\n",
822828
" </tr>\n",
823829
" <tr>\n",
824-
" <th>2</th>\n",
825-
" <td>170663</td>\n",
826-
" <td>3122486</td>\n",
827-
" <td>0.681755</td>\n",
828-
" </tr>\n",
829-
" <tr>\n",
830830
" <th>3</th>\n",
831831
" <td>27009</td>\n",
832832
" <td>3096636</td>\n",
833833
" <td>0.563840</td>\n",
834834
" </tr>\n",
835835
" <tr>\n",
836836
" <th>4</th>\n",
837-
" <td>135385</td>\n",
838-
" <td>3268209</td>\n",
839-
" <td>0.771273</td>\n",
837+
" <td>47266</td>\n",
838+
" <td>3157878</td>\n",
839+
" <td>0.367530</td>\n",
840840
" </tr>\n",
841841
" <tr>\n",
842842
" <th>...</th>\n",
@@ -845,55 +845,55 @@
845845
" <td>...</td>\n",
846846
" </tr>\n",
847847
" <tr>\n",
848-
" <th>92</th>\n",
849-
" <td>95744</td>\n",
850-
" <td>3074376</td>\n",
851-
" <td>0.352167</td>\n",
848+
" <th>317</th>\n",
849+
" <td>52332</td>\n",
850+
" <td>3102385</td>\n",
851+
" <td>0.921499</td>\n",
852852
" </tr>\n",
853853
" <tr>\n",
854-
" <th>93</th>\n",
855-
" <td>121214</td>\n",
856-
" <td>3231044</td>\n",
857-
" <td>0.205401</td>\n",
854+
" <th>318</th>\n",
855+
" <td>231267</td>\n",
856+
" <td>3412905</td>\n",
857+
" <td>0.299032</td>\n",
858858
" </tr>\n",
859859
" <tr>\n",
860-
" <th>94</th>\n",
861-
" <td>33112</td>\n",
862-
" <td>3137825</td>\n",
863-
" <td>0.621349</td>\n",
860+
" <th>319</th>\n",
861+
" <td>246626</td>\n",
862+
" <td>3334176</td>\n",
863+
" <td>0.864992</td>\n",
864864
" </tr>\n",
865865
" <tr>\n",
866-
" <th>95</th>\n",
867-
" <td>92458</td>\n",
868-
" <td>3207524</td>\n",
869-
" <td>0.741632</td>\n",
866+
" <th>320</th>\n",
867+
" <td>93038</td>\n",
868+
" <td>3225652</td>\n",
869+
" <td>0.986286</td>\n",
870870
" </tr>\n",
871871
" <tr>\n",
872-
" <th>96</th>\n",
873-
" <td>108160</td>\n",
874-
" <td>3231002</td>\n",
875-
" <td>0.428036</td>\n",
872+
" <th>321</th>\n",
873+
" <td>125092</td>\n",
874+
" <td>3169549</td>\n",
875+
" <td>0.555477</td>\n",
876876
" </tr>\n",
877877
" </tbody>\n",
878878
"</table>\n",
879-
"<p>97 rows × 3 columns</p>\n",
879+
"<p>322 rows × 3 columns</p>\n",
880880
"</div>"
881881
],
882882
"text/plain": [
883-
" id1 id2 sep\n",
884-
"0 125607 3251473 0.881630\n",
885-
"1 217378 3393112 0.566069\n",
886-
"2 170663 3122486 0.681755\n",
887-
"3 27009 3096636 0.563840\n",
888-
"4 135385 3268209 0.771273\n",
889-
".. ... ... ...\n",
890-
"92 95744 3074376 0.352167\n",
891-
"93 121214 3231044 0.205401\n",
892-
"94 33112 3137825 0.621349\n",
893-
"95 92458 3207524 0.741632\n",
894-
"96 108160 3231002 0.428036\n",
883+
" id1 id2 sep\n",
884+
"0 227306 3422788 0.477101\n",
885+
"1 125607 3251473 0.881630\n",
886+
"2 217378 3393112 0.566069\n",
887+
"3 27009 3096636 0.563840\n",
888+
"4 47266 3157878 0.367530\n",
889+
".. ... ... ...\n",
890+
"317 52332 3102385 0.921499\n",
891+
"318 231267 3412905 0.299032\n",
892+
"319 246626 3334176 0.864992\n",
893+
"320 93038 3225652 0.986286\n",
894+
"321 125092 3169549 0.555477\n",
895895
"\n",
896-
"[97 rows x 3 columns]"
896+
"[322 rows x 3 columns]"
897897
]
898898
},
899899
"execution_count": 6,
@@ -937,11 +937,11 @@
937937
"id": "6db61e21-b49a-4ea1-83e7-18f372d7acb8",
938938
"metadata": {
939939
"execution": {
940-
"iopub.execute_input": "2023-11-17T17:36:17.022509Z",
941-
"iopub.status.busy": "2023-11-17T17:36:17.022058Z",
942-
"iopub.status.idle": "2023-11-17T17:36:25.781444Z",
943-
"shell.execute_reply": "2023-11-17T17:36:25.779510Z",
944-
"shell.execute_reply.started": "2023-11-17T17:36:17.022418Z"
940+
"iopub.execute_input": "2023-11-20T16:17:23.790723Z",
941+
"iopub.status.busy": "2023-11-20T16:17:23.790222Z",
942+
"iopub.status.idle": "2023-11-20T16:17:28.429841Z",
943+
"shell.execute_reply": "2023-11-20T16:17:28.427860Z",
944+
"shell.execute_reply.started": "2023-11-20T16:17:23.790673Z"
945945
},
946946
"tags": []
947947
},
@@ -951,8 +951,8 @@
951951
"output_type": "stream",
952952
"text": [
953953
"There are 14482 matches.\n",
954-
"CPU times: user 145 ms, sys: 57.4 ms, total: 202 ms\n",
955-
"Wall time: 8.72 s\n"
954+
"CPU times: user 169 ms, sys: 69.1 ms, total: 238 ms\n",
955+
"Wall time: 4.6 s\n"
956956
]
957957
},
958958
{
@@ -1193,11 +1193,11 @@
11931193
"id": "85ee81f3-4a05-4db2-a191-26e3b16bf925",
11941194
"metadata": {
11951195
"execution": {
1196-
"iopub.execute_input": "2023-11-17T17:36:25.784040Z",
1197-
"iopub.status.busy": "2023-11-17T17:36:25.783641Z",
1198-
"iopub.status.idle": "2023-11-17T17:36:27.475685Z",
1199-
"shell.execute_reply": "2023-11-17T17:36:27.473606Z",
1200-
"shell.execute_reply.started": "2023-11-17T17:36:25.783989Z"
1196+
"iopub.execute_input": "2023-11-20T16:17:28.432397Z",
1197+
"iopub.status.busy": "2023-11-20T16:17:28.432016Z",
1198+
"iopub.status.idle": "2023-11-20T16:17:30.113352Z",
1199+
"shell.execute_reply": "2023-11-20T16:17:30.111913Z",
1200+
"shell.execute_reply.started": "2023-11-20T16:17:28.432351Z"
12011201
},
12021202
"tags": []
12031203
},
@@ -1229,11 +1229,11 @@
12291229
"id": "7597e6c7-5293-49cd-be7c-1b4875f14ea7",
12301230
"metadata": {
12311231
"execution": {
1232-
"iopub.execute_input": "2023-11-17T17:36:27.478255Z",
1233-
"iopub.status.busy": "2023-11-17T17:36:27.477869Z",
1234-
"iopub.status.idle": "2023-11-17T17:36:44.297308Z",
1235-
"shell.execute_reply": "2023-11-17T17:36:44.294953Z",
1236-
"shell.execute_reply.started": "2023-11-17T17:36:27.478205Z"
1232+
"iopub.execute_input": "2023-11-20T16:17:30.116194Z",
1233+
"iopub.status.busy": "2023-11-20T16:17:30.115793Z",
1234+
"iopub.status.idle": "2023-11-20T16:17:52.383378Z",
1235+
"shell.execute_reply": "2023-11-20T16:17:52.381207Z",
1236+
"shell.execute_reply.started": "2023-11-20T16:17:30.116148Z"
12371237
},
12381238
"tags": []
12391239
},
@@ -1243,8 +1243,8 @@
12431243
"output_type": "stream",
12441244
"text": [
12451245
"Job Message: Query Complete\n",
1246-
"CPU times: user 136 ms, sys: 19.8 ms, total: 156 ms\n",
1247-
"Wall time: 16.8 s\n"
1246+
"CPU times: user 162 ms, sys: 15.2 ms, total: 178 ms\n",
1247+
"Wall time: 22.3 s\n"
12481248
]
12491249
}
12501250
],
@@ -1291,11 +1291,11 @@
12911291
"id": "2843127a-f8fd-4596-b514-973a85b43e42",
12921292
"metadata": {
12931293
"execution": {
1294-
"iopub.execute_input": "2023-11-17T17:36:44.300412Z",
1295-
"iopub.status.busy": "2023-11-17T17:36:44.299961Z",
1296-
"iopub.status.idle": "2023-11-17T17:36:46.684560Z",
1297-
"shell.execute_reply": "2023-11-17T17:36:46.682578Z",
1298-
"shell.execute_reply.started": "2023-11-17T17:36:44.300337Z"
1294+
"iopub.execute_input": "2023-11-20T16:17:52.386137Z",
1295+
"iopub.status.busy": "2023-11-20T16:17:52.385703Z",
1296+
"iopub.status.idle": "2023-11-20T16:17:55.049147Z",
1297+
"shell.execute_reply": "2023-11-20T16:17:55.047208Z",
1298+
"shell.execute_reply.started": "2023-11-20T16:17:52.386089Z"
12991299
},
13001300
"tags": []
13011301
},

0 commit comments

Comments
 (0)