| 1 |
|
| 2 |
<!DOCTYPE html> |
| 3 |
|
| 4 |
|
| 5 |
<html lang="en" data-content_root="../../" > |
| 6 |
|
| 7 |
<head> |
| 8 |
<meta charset="utf-8" /> |
| 9 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 10 |
|
| 11 |
<title>7.3.40. logical_table_remove — Groonga v16.0.9 documentation</title> |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<script data-cfasync="false"> |
| 16 |
document.documentElement.dataset.mode = localStorage.getItem("mode") || ""; |
| 17 |
document.documentElement.dataset.theme = localStorage.getItem("theme") || ""; |
| 18 |
</script> |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
<noscript> |
| 23 |
<style> |
| 24 |
.pst-js-only { display: none !important; } |
| 25 |
|
| 26 |
</style> |
| 27 |
</noscript> |
| 28 |
|
| 29 |
|
| 30 |
<link href="../../_static/styles/theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" /> |
| 31 |
<link href="../../_static/styles/pydata-sphinx-theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" /> |
| 32 |
|
| 33 |
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=8f2a1f02" /> |
| 34 |
|
| 35 |
|
| 36 |
<script defer src="../../_static/scripts/fontawesome.js?digest=90905a2f556bf617f1a9"></script> |
| 37 |
|
| 38 |
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" /> |
| 39 |
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" /> |
| 40 |
|
| 41 |
<script src="../../_static/documentation_options.js?v=2fcb8d4f"></script> |
| 42 |
<script src="../../_static/doctools.js?v=fd6eb6e6"></script> |
| 43 |
<script src="../../_static/sphinx_highlight.js?v=6ffebe34"></script> |
| 44 |
<script> |
| 45 |
window.dataLayer = window.dataLayer || []; |
| 46 |
function gtag(){ dataLayer.push(arguments); } |
| 47 |
gtag('consent', 'default', { |
| 48 |
'ad_storage': 'denied', |
| 49 |
'ad_user_data': 'denied', |
| 50 |
'ad_personalization': 'denied', |
| 51 |
'analytics_storage': 'denied' |
| 52 |
}); |
| 53 |
</script> |
| 54 |
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-MDK38RHNPW"></script> |
| 55 |
<script> |
| 56 |
window.dataLayer = window.dataLayer || []; |
| 57 |
function gtag(){dataLayer.push(arguments);} |
| 58 |
gtag('js', new Date()); |
| 59 |
gtag('config', 'G-MDK38RHNPW'); |
| 60 |
</script> |
| 61 |
<script>DOCUMENTATION_OPTIONS.pagename = 'reference/commands/logical_table_remove';</script> |
| 62 |
<script> |
| 63 |
DOCUMENTATION_OPTIONS.theme_version = '0.20.0'; |
| 64 |
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://groonga.org/docs/_static/switcher.json'; |
| 65 |
DOCUMENTATION_OPTIONS.theme_switcher_version_match = 'english'; |
| 66 |
DOCUMENTATION_OPTIONS.show_version_warning_banner = |
| 67 |
false; |
| 68 |
</script> |
| 69 |
<script>DOCUMENTATION_OPTIONS.search_as_you_type = false;</script> |
| 70 |
<link rel="icon" href="../../_static/favicon.ico"/> |
| 71 |
<link rel="index" title="Index" href="../../genindex.html" /> |
| 72 |
<link rel="search" title="Search" href="../../search.html" /> |
| 73 |
<link rel="next" title="7.3.41. normalize" href="normalize.html" /> |
| 74 |
<link rel="prev" title="7.3.39. logical_shard_list" href="logical_shard_list.html" /> |
| 75 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 76 |
<meta name="docsearch:language" content="en"/> |
| 77 |
<meta name="docsearch:version" content="16.0.9" /> |
| 78 |
|
| 79 |
|
| 80 |
<script src="../../_static/searchtools.js"></script> |
| 81 |
<script src="../../_static/language_data.js"></script> |
| 82 |
<script src="../../searchindex.js"></script> |
| 83 |
|
| 84 |
</head> |
| 85 |
<body data-default-mode=""> |
| 86 |
|
| 87 |
|
| 88 |
<div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div> |
| 89 |
|
| 90 |
|
| 91 |
<div id="pst-scroll-pixel-helper"></div> |
| 92 |
|
| 93 |
<button type="button" class="btn rounded-pill" id="pst-back-to-top"> |
| 94 |
<i class="fa-solid fa-arrow-up"></i>Back to top</button> |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
<dialog id="pst-search-dialog"> |
| 100 |
|
| 101 |
<form class="bd-search d-flex align-items-center" |
| 102 |
action="../../search.html" |
| 103 |
method="get"> |
| 104 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 105 |
<input type="search" |
| 106 |
class="form-control" |
| 107 |
name="q" |
| 108 |
placeholder="Search the docs ..." |
| 109 |
aria-label="Search the docs ..." |
| 110 |
autocomplete="off" |
| 111 |
autocorrect="off" |
| 112 |
autocapitalize="off" |
| 113 |
spellcheck="false"/> |
| 114 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span> |
| 115 |
</form> |
| 116 |
</dialog> |
| 117 |
|
| 118 |
<div class="pst-async-banner-revealer d-none"> |
| 119 |
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside> |
| 120 |
</div> |
| 121 |
|
| 122 |
|
| 123 |
<header id="pst-header" class="bd-header navbar navbar-expand-lg bd-navbar d-print-none"> |
| 124 |
<div class="bd-header__inner bd-page-width"> |
| 125 |
<button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation"> |
| 126 |
<span class="fa-solid fa-bars"></span> |
| 127 |
</button> |
| 128 |
|
| 129 |
|
| 130 |
<div class="col-lg-3 navbar-header-items__start"> |
| 131 |
|
| 132 |
<div class="navbar-item"> |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
<a class="navbar-brand logo" href="https://groonga.org/"> |
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
<img src="../../_static/groonga.png" class="logo__image only-light" alt="Groonga v16.0.9 documentation - Home"/> |
| 150 |
<img src="../../_static/groonga.png" class="logo__image only-dark pst-js-only" alt="Groonga v16.0.9 documentation - Home"/> |
| 151 |
|
| 152 |
|
| 153 |
</a></div> |
| 154 |
|
| 155 |
</div> |
| 156 |
|
| 157 |
<div class="col-lg-9 navbar-header-items"> |
| 158 |
|
| 159 |
|
| 160 |
<div class="navbar-header-items__end"> |
| 161 |
|
| 162 |
<div class="navbar-item navbar-persistent--container"> |
| 163 |
|
| 164 |
|
| 165 |
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip"> |
| 166 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 167 |
<span class="search-button__default-text">Search</span> |
| 168 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span> |
| 169 |
</button> |
| 170 |
</div> |
| 171 |
|
| 172 |
|
| 173 |
<div class="navbar-item"> |
| 174 |
|
| 175 |
<div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode"> |
| 176 |
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown"> |
| 177 |
<i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="Light"></i> |
| 178 |
<i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="Dark"></i> |
| 179 |
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i> |
| 180 |
</button> |
| 181 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 182 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li> |
| 183 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>Light</button></li> |
| 184 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>Dark</button></li> |
| 185 |
</ul> |
| 186 |
</div></div> |
| 187 |
|
| 188 |
<div class="navbar-item"><ul class="navbar-icon-links" |
| 189 |
aria-label="Icon Links"> |
| 190 |
<li class="nav-item"> |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
<a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a> |
| 200 |
</li> |
| 201 |
<li class="nav-item"> |
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
<a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a> |
| 211 |
</li> |
| 212 |
<li class="nav-item"> |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
<a href="/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a> |
| 222 |
</li> |
| 223 |
</ul></div> |
| 224 |
|
| 225 |
<div class="navbar-item"> |
| 226 |
<div class="version-switcher__container dropdown pst-js-only"> |
| 227 |
<button id="pst-version-switcher-button-2" |
| 228 |
type="button" |
| 229 |
class="version-switcher__button btn btn-sm dropdown-toggle" |
| 230 |
data-bs-toggle="dropdown" |
| 231 |
aria-haspopup="listbox" |
| 232 |
aria-controls="pst-version-switcher-list-2" |
| 233 |
aria-label="Version switcher list" |
| 234 |
> |
| 235 |
Choose version |
| 236 |
<span class="caret"></span> |
| 237 |
</button> |
| 238 |
<div id="pst-version-switcher-list-2" |
| 239 |
class="version-switcher__menu dropdown-menu list-group-flush py-0" |
| 240 |
role="listbox" aria-labelledby="pst-version-switcher-button-2"> |
| 241 |
|
| 242 |
</div> |
| 243 |
</div></div> |
| 244 |
|
| 245 |
</div> |
| 246 |
|
| 247 |
</div> |
| 248 |
|
| 249 |
|
| 250 |
<div class="navbar-persistent--mobile"> |
| 251 |
|
| 252 |
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip"> |
| 253 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 254 |
<span class="search-button__default-text">Search</span> |
| 255 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span> |
| 256 |
</button> |
| 257 |
</div> |
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
<button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page"> |
| 262 |
<span class="fa-solid fa-outdent"></span> |
| 263 |
</button> |
| 264 |
|
| 265 |
</div> |
| 266 |
|
| 267 |
</header> |
| 268 |
|
| 269 |
|
| 270 |
<div class="bd-container"> |
| 271 |
<div class="bd-container__inner bd-page-width"> |
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
<dialog id="pst-primary-sidebar-modal"></dialog> |
| 276 |
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar"> |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
<div class="sidebar-header-items sidebar-primary__section"> |
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
<div class="sidebar-header-items__end"> |
| 286 |
|
| 287 |
<div class="navbar-item"> |
| 288 |
|
| 289 |
<div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode"> |
| 290 |
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown"> |
| 291 |
<i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="Light"></i> |
| 292 |
<i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="Dark"></i> |
| 293 |
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i> |
| 294 |
</button> |
| 295 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 296 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li> |
| 297 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>Light</button></li> |
| 298 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>Dark</button></li> |
| 299 |
</ul> |
| 300 |
</div></div> |
| 301 |
|
| 302 |
<div class="navbar-item"><ul class="navbar-icon-links" |
| 303 |
aria-label="Icon Links"> |
| 304 |
<li class="nav-item"> |
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
<a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a> |
| 314 |
</li> |
| 315 |
<li class="nav-item"> |
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
<a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a> |
| 325 |
</li> |
| 326 |
<li class="nav-item"> |
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
<a href="/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a> |
| 336 |
</li> |
| 337 |
</ul></div> |
| 338 |
|
| 339 |
<div class="navbar-item"> |
| 340 |
<div class="version-switcher__container dropdown pst-js-only"> |
| 341 |
<button id="pst-version-switcher-button-3" |
| 342 |
type="button" |
| 343 |
class="version-switcher__button btn btn-sm dropdown-toggle" |
| 344 |
data-bs-toggle="dropdown" |
| 345 |
aria-haspopup="listbox" |
| 346 |
aria-controls="pst-version-switcher-list-3" |
| 347 |
aria-label="Version switcher list" |
| 348 |
> |
| 349 |
Choose version |
| 350 |
<span class="caret"></span> |
| 351 |
</button> |
| 352 |
<div id="pst-version-switcher-list-3" |
| 353 |
class="version-switcher__menu dropdown-menu list-group-flush py-0" |
| 354 |
role="listbox" aria-labelledby="pst-version-switcher-button-3"> |
| 355 |
|
| 356 |
</div> |
| 357 |
</div></div> |
| 358 |
|
| 359 |
</div> |
| 360 |
|
| 361 |
</div> |
| 362 |
|
| 363 |
<div class="sidebar-primary-items__start sidebar-primary__section"> |
| 364 |
<div class="sidebar-primary-item pst-sidebar-collapse"><button id="pst-collapse-sidebar-button" aria-expanded="true" aria-controls="pst-primary-sidebar"> |
| 365 |
<svg class="pst-icon" role="img" aria-hidden="true" focusable="false" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> |
| 366 |
<path fill="currentColor" d="M3 15.5C2.36232 15.5 1.74874 15.2564 1.28478 14.8189C0.820828 14.3815 0.541576 13.7832 0.504167 13.1467L0.5 13L0.5 3C0.499965 2.36232 0.743605 1.74874 1.18107 1.28478C1.61854 0.820828 2.21676 0.541576 2.85333 0.504167L3 0.5L13 0.5C13.6377 0.499965 14.2513 0.743605 14.7152 1.18107C15.1792 1.61854 15.4584 2.21676 15.4958 2.85333L15.5 3L15.5 13C15.5 13.6377 15.2564 14.2513 14.8189 14.7152C14.3815 15.1792 13.7832 15.4584 13.1467 15.4958L13 15.5L3 15.5ZM3 13.8333L10.5 13.8333L10.5 2.16667L3 2.16667C2.79589 2.16669 2.59889 2.24163 2.44636 2.37726C2.29383 2.5129 2.19638 2.69979 2.1725 2.9025L2.16667 3L2.16667 13C2.16669 13.2041 2.24163 13.4011 2.37726 13.5536C2.5129 13.7062 2.69979 13.8036 2.9025 13.8275L3 13.8333ZM6.65583 10.325L6.5775 10.2558L4.91083 8.58917C4.76735 8.44567 4.68116 8.25476 4.66843 8.05223C4.65569 7.84971 4.71729 7.6495 4.84167 7.48917L4.91083 7.41083L6.5775 5.74417C6.72747 5.59471 6.9287 5.50794 7.14032 5.50148C7.35194 5.49502 7.55809 5.56935 7.7169 5.70937C7.8757 5.8494 7.97525 6.04463 7.99533 6.25539C8.01541 6.46616 7.95451 6.67667 7.825 6.84417L7.75583 6.9225L6.67917 8L7.75583 9.0775C7.89931 9.22099 7.98551 9.41191 7.99824 9.61443C8.01097 9.81695 7.94938 10.0172 7.825 10.1775L7.75583 10.2558C7.61234 10.3993 7.42142 10.4855 7.2189 10.4982C7.01638 10.511 6.81617 10.4494 6.65583 10.325Z"/> |
| 367 |
</svg> |
| 368 |
<span class="pst-collapse-sidebar-label">Collapse Sidebar</span> |
| 369 |
<span class="pst-expand-sidebar-label">Expand Sidebar</span> |
| 370 |
</button></div> |
| 371 |
<div class="sidebar-primary-item"> |
| 372 |
|
| 373 |
<nav class="bd-docs-nav bd-links" |
| 374 |
aria-label="Section Navigation"> |
| 375 |
<p class="bd-links__title" role="heading" aria-level="1">Section Navigation</p> |
| 376 |
<div class="bd-toc-item navbar-nav"><ul class="current nav bd-sidenav"> |
| 377 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../executables.html">7.1. Executables</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 378 |
<li class="toctree-l2"><a class="reference internal" href="../executables/grndb.html">7.1.1. <code class="docutils literal notranslate"><span class="pre">grndb</span></code></a></li> |
| 379 |
<li class="toctree-l2"><a class="reference internal" href="../executables/grnslap.html">7.1.2. grnslap</a></li> |
| 380 |
<li class="toctree-l2"><a class="reference internal" href="../executables/groonga.html">7.1.3. <code class="docutils literal notranslate"><span class="pre">groonga</span></code> executable file</a></li> |
| 381 |
<li class="toctree-l2"><a class="reference internal" href="../executables/groonga-benchmark.html">7.1.4. groonga-benchmark</a></li> |
| 382 |
<li class="toctree-l2"><a class="reference internal" href="../executables/groonga-httpd.html">7.1.5. groonga-httpd</a></li> |
| 383 |
<li class="toctree-l2"><a class="reference internal" href="../executables/groonga-server-http.html">7.1.6. Groonga HTTP server</a></li> |
| 384 |
<li class="toctree-l2"><a class="reference internal" href="../executables/groonga-suggest-create-dataset.html">7.1.7. groonga-suggest-create-dataset</a></li> |
| 385 |
<li class="toctree-l2"><a class="reference internal" href="../executables/groonga-suggest-httpd.html">7.1.8. <code class="docutils literal notranslate"><span class="pre">groonga-suggest-httpd</span></code></a></li> |
| 386 |
<li class="toctree-l2"><a class="reference internal" href="../executables/groonga-suggest-learner.html">7.1.9. groonga-suggest-learner</a></li> |
| 387 |
</ul> |
| 388 |
</details></li> |
| 389 |
<li class="toctree-l1"><a class="reference internal" href="../output.html">7.2. Output</a></li> |
| 390 |
<li class="toctree-l1 current active has-children"><a class="reference internal" href="../command.html">7.3. Command</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul class="current"> |
| 391 |
<li class="toctree-l2"><a class="reference internal" href="../command/command_version.html">7.3.1. Command version</a></li> |
| 392 |
<li class="toctree-l2"><a class="reference internal" href="../command/n_workers.html">7.3.2. Parallel execution</a></li> |
| 393 |
<li class="toctree-l2"><a class="reference internal" href="../command/output_format.html">7.3.3. Output format</a></li> |
| 394 |
<li class="toctree-l2"><a class="reference internal" href="../command/output_trace_log.html">7.3.4. Output trace log</a></li> |
| 395 |
<li class="toctree-l2"><a class="reference internal" href="../command/pretty_print.html">7.3.5. Pretty print</a></li> |
| 396 |
<li class="toctree-l2"><a class="reference internal" href="../command/request_id.html">7.3.6. Request ID</a></li> |
| 397 |
<li class="toctree-l2"><a class="reference internal" href="../command/request_timeout.html">7.3.7. Request timeout</a></li> |
| 398 |
<li class="toctree-l2 has-children"><a class="reference internal" href="../command/return_code.html">7.3.8. Return code</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 399 |
<li class="toctree-l3"><a class="reference internal" href="../command/return_codes/grn_operation_not_permitted.html">7.3.8.3.1. <code class="docutils literal notranslate"><span class="pre">-2:</span> <span class="pre">GRN_OPERATION_NOT_PERMITTED</span></code></a></li> |
| 400 |
<li class="toctree-l3"><a class="reference internal" href="../command/return_codes/grn_no_such_file_or_directory.html">7.3.8.3.2. <code class="docutils literal notranslate"><span class="pre">-3:</span> <span class="pre">GRN_NO_SUCH_FILE_OR_DIRECTORY</span></code></a></li> |
| 401 |
<li class="toctree-l3"><a class="reference internal" href="../command/return_codes/grn_input_output_error.html">7.3.8.3.3. <code class="docutils literal notranslate"><span class="pre">-6:</span> <span class="pre">GRN_INPUT_OUTPUT_ERROR</span></code></a></li> |
| 402 |
<li class="toctree-l3"><a class="reference internal" href="../command/return_codes/grn_not_enough_space.html">7.3.8.3.4. <code class="docutils literal notranslate"><span class="pre">-13:</span> <span class="pre">GRN_NOT_ENOUGH_SPACE</span></code></a></li> |
| 403 |
<li class="toctree-l3"><a class="reference internal" href="../command/return_codes/grn_invalid_argument.html">7.3.8.3.5. <code class="docutils literal notranslate"><span class="pre">-22:</span> <span class="pre">GRN_INVALID_ARGUMENT</span></code></a></li> |
| 404 |
<li class="toctree-l3"><a class="reference internal" href="../command/return_codes/grn_resource_deadlock_avoided.html">7.3.8.3.6. <code class="docutils literal notranslate"><span class="pre">-34:</span> <span class="pre">GRN_RESOURCE_DEADLOCK_AVOIDED</span></code></a></li> |
| 405 |
</ul> |
| 406 |
</details></li> |
| 407 |
<li class="toctree-l2"><a class="reference internal" href="cache_limit.html">7.3.9. <code class="docutils literal notranslate"><span class="pre">cache_limit</span></code></a></li> |
| 408 |
<li class="toctree-l2"><a class="reference internal" href="check.html">7.3.10. <code class="docutils literal notranslate"><span class="pre">check</span></code></a></li> |
| 409 |
<li class="toctree-l2"><a class="reference internal" href="clearlock.html">7.3.11. <code class="docutils literal notranslate"><span class="pre">clearlock</span></code></a></li> |
| 410 |
<li class="toctree-l2"><a class="reference internal" href="column_copy.html">7.3.12. <code class="docutils literal notranslate"><span class="pre">column_copy</span></code></a></li> |
| 411 |
<li class="toctree-l2"><a class="reference internal" href="column_create.html">7.3.13. <code class="docutils literal notranslate"><span class="pre">column_create</span></code></a></li> |
| 412 |
<li class="toctree-l2"><a class="reference internal" href="column_list.html">7.3.14. <code class="docutils literal notranslate"><span class="pre">column_list</span></code></a></li> |
| 413 |
<li class="toctree-l2"><a class="reference internal" href="column_remove.html">7.3.15. <code class="docutils literal notranslate"><span class="pre">column_remove</span></code></a></li> |
| 414 |
<li class="toctree-l2"><a class="reference internal" href="column_rename.html">7.3.16. <code class="docutils literal notranslate"><span class="pre">column_rename</span></code></a></li> |
| 415 |
<li class="toctree-l2"><a class="reference internal" href="config_delete.html">7.3.17. <code class="docutils literal notranslate"><span class="pre">config_delete</span></code></a></li> |
| 416 |
<li class="toctree-l2"><a class="reference internal" href="config_get.html">7.3.18. <code class="docutils literal notranslate"><span class="pre">config_get</span></code></a></li> |
| 417 |
<li class="toctree-l2"><a class="reference internal" href="config_set.html">7.3.19. <code class="docutils literal notranslate"><span class="pre">config_set</span></code></a></li> |
| 418 |
<li class="toctree-l2"><a class="reference internal" href="database_unmap.html">7.3.20. <code class="docutils literal notranslate"><span class="pre">database_unmap</span></code></a></li> |
| 419 |
<li class="toctree-l2"><a class="reference internal" href="define_selector.html">7.3.21. <code class="docutils literal notranslate"><span class="pre">define_selector</span></code></a></li> |
| 420 |
<li class="toctree-l2"><a class="reference internal" href="defrag.html">7.3.22. <code class="docutils literal notranslate"><span class="pre">defrag</span></code></a></li> |
| 421 |
<li class="toctree-l2"><a class="reference internal" href="delete.html">7.3.23. <code class="docutils literal notranslate"><span class="pre">delete</span></code></a></li> |
| 422 |
<li class="toctree-l2"><a class="reference internal" href="dump.html">7.3.24. <code class="docutils literal notranslate"><span class="pre">dump</span></code></a></li> |
| 423 |
<li class="toctree-l2"><a class="reference internal" href="extract.html">7.3.25. <code class="docutils literal notranslate"><span class="pre">extract</span></code></a></li> |
| 424 |
<li class="toctree-l2"><a class="reference internal" href="index_column_diff.html">7.3.26. <code class="docutils literal notranslate"><span class="pre">index_column_diff</span></code></a></li> |
| 425 |
<li class="toctree-l2"><a class="reference internal" href="io_flush.html">7.3.27. <code class="docutils literal notranslate"><span class="pre">io_flush</span></code></a></li> |
| 426 |
<li class="toctree-l2"><a class="reference internal" href="load.html">7.3.28. <code class="docutils literal notranslate"><span class="pre">load</span></code></a></li> |
| 427 |
<li class="toctree-l2"><a class="reference internal" href="lock_acquire.html">7.3.29. <code class="docutils literal notranslate"><span class="pre">lock_acquire</span></code></a></li> |
| 428 |
<li class="toctree-l2"><a class="reference internal" href="lock_clear.html">7.3.30. <code class="docutils literal notranslate"><span class="pre">lock_clear</span></code></a></li> |
| 429 |
<li class="toctree-l2"><a class="reference internal" href="lock_release.html">7.3.31. <code class="docutils literal notranslate"><span class="pre">lock_release</span></code></a></li> |
| 430 |
<li class="toctree-l2"><a class="reference internal" href="log_level.html">7.3.32. <code class="docutils literal notranslate"><span class="pre">log_level</span></code></a></li> |
| 431 |
<li class="toctree-l2"><a class="reference internal" href="log_put.html">7.3.33. <code class="docutils literal notranslate"><span class="pre">log_put</span></code></a></li> |
| 432 |
<li class="toctree-l2"><a class="reference internal" href="log_reopen.html">7.3.34. <code class="docutils literal notranslate"><span class="pre">log_reopen</span></code></a></li> |
| 433 |
<li class="toctree-l2"><a class="reference internal" href="logical_count.html">7.3.35. <code class="docutils literal notranslate"><span class="pre">logical_count</span></code></a></li> |
| 434 |
<li class="toctree-l2"><a class="reference internal" href="logical_parameters.html">7.3.36. <code class="docutils literal notranslate"><span class="pre">logical_parameters</span></code></a></li> |
| 435 |
<li class="toctree-l2"><a class="reference internal" href="logical_range_filter.html">7.3.37. <code class="docutils literal notranslate"><span class="pre">logical_range_filter</span></code></a></li> |
| 436 |
<li class="toctree-l2"><a class="reference internal" href="logical_select.html">7.3.38. <code class="docutils literal notranslate"><span class="pre">logical_select</span></code></a></li> |
| 437 |
<li class="toctree-l2"><a class="reference internal" href="logical_shard_list.html">7.3.39. <code class="docutils literal notranslate"><span class="pre">logical_shard_list</span></code></a></li> |
| 438 |
<li class="toctree-l2 current active"><a class="current reference internal" href="#">7.3.40. <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code></a></li> |
| 439 |
<li class="toctree-l2"><a class="reference internal" href="normalize.html">7.3.41. <code class="docutils literal notranslate"><span class="pre">normalize</span></code></a></li> |
| 440 |
<li class="toctree-l2"><a class="reference internal" href="normalizer_list.html">7.3.42. <code class="docutils literal notranslate"><span class="pre">normalizer_list</span></code></a></li> |
| 441 |
<li class="toctree-l2"><a class="reference internal" href="object_exist.html">7.3.43. <code class="docutils literal notranslate"><span class="pre">object_exist</span></code></a></li> |
| 442 |
<li class="toctree-l2"><a class="reference internal" href="object_inspect.html">7.3.44. <code class="docutils literal notranslate"><span class="pre">object_inspect</span></code></a></li> |
| 443 |
<li class="toctree-l2"><a class="reference internal" href="object_list.html">7.3.45. <code class="docutils literal notranslate"><span class="pre">object_list</span></code></a></li> |
| 444 |
<li class="toctree-l2"><a class="reference internal" href="object_remove.html">7.3.46. <code class="docutils literal notranslate"><span class="pre">object_remove</span></code></a></li> |
| 445 |
<li class="toctree-l2"><a class="reference internal" href="plugin_register.html">7.3.47. <code class="docutils literal notranslate"><span class="pre">plugin_register</span></code></a></li> |
| 446 |
<li class="toctree-l2"><a class="reference internal" href="plugin_unregister.html">7.3.48. <code class="docutils literal notranslate"><span class="pre">plugin_unregister</span></code></a></li> |
| 447 |
<li class="toctree-l2"><a class="reference internal" href="query_expand.html">7.3.49. <code class="docutils literal notranslate"><span class="pre">query_expand</span></code></a></li> |
| 448 |
<li class="toctree-l2"><a class="reference internal" href="quit.html">7.3.50. <code class="docutils literal notranslate"><span class="pre">quit</span></code></a></li> |
| 449 |
<li class="toctree-l2"><a class="reference internal" href="range_filter.html">7.3.51. <code class="docutils literal notranslate"><span class="pre">range_filter</span></code></a></li> |
| 450 |
<li class="toctree-l2"><a class="reference internal" href="reference_acquire.html">7.3.52. <code class="docutils literal notranslate"><span class="pre">reference_acquire</span></code></a></li> |
| 451 |
<li class="toctree-l2"><a class="reference internal" href="reference_release.html">7.3.53. <code class="docutils literal notranslate"><span class="pre">reference_release</span></code></a></li> |
| 452 |
<li class="toctree-l2"><a class="reference internal" href="register.html">7.3.54. <code class="docutils literal notranslate"><span class="pre">register</span></code></a></li> |
| 453 |
<li class="toctree-l2"><a class="reference internal" href="reindex.html">7.3.55. <code class="docutils literal notranslate"><span class="pre">reindex</span></code></a></li> |
| 454 |
<li class="toctree-l2"><a class="reference internal" href="request_cancel.html">7.3.56. <code class="docutils literal notranslate"><span class="pre">request_cancel</span></code></a></li> |
| 455 |
<li class="toctree-l2"><a class="reference internal" href="ruby_eval.html">7.3.57. <code class="docutils literal notranslate"><span class="pre">ruby_eval</span></code></a></li> |
| 456 |
<li class="toctree-l2"><a class="reference internal" href="schema.html">7.3.58. <code class="docutils literal notranslate"><span class="pre">schema</span></code></a></li> |
| 457 |
<li class="toctree-l2"><a class="reference internal" href="select.html">7.3.59. <code class="docutils literal notranslate"><span class="pre">select</span></code></a></li> |
| 458 |
<li class="toctree-l2"><a class="reference internal" href="shutdown.html">7.3.60. <code class="docutils literal notranslate"><span class="pre">shutdown</span></code></a></li> |
| 459 |
<li class="toctree-l2"><a class="reference internal" href="status.html">7.3.61. <code class="docutils literal notranslate"><span class="pre">status</span></code></a></li> |
| 460 |
<li class="toctree-l2"><a class="reference internal" href="suggest.html">7.3.62. <code class="docutils literal notranslate"><span class="pre">suggest</span></code></a></li> |
| 461 |
<li class="toctree-l2"><a class="reference internal" href="table_copy.html">7.3.63. <code class="docutils literal notranslate"><span class="pre">table_copy</span></code></a></li> |
| 462 |
<li class="toctree-l2"><a class="reference internal" href="table_create.html">7.3.64. <code class="docutils literal notranslate"><span class="pre">table_create</span></code></a></li> |
| 463 |
<li class="toctree-l2"><a class="reference internal" href="table_list.html">7.3.65. <code class="docutils literal notranslate"><span class="pre">table_list</span></code></a></li> |
| 464 |
<li class="toctree-l2"><a class="reference internal" href="table_remove.html">7.3.66. <code class="docutils literal notranslate"><span class="pre">table_remove</span></code></a></li> |
| 465 |
<li class="toctree-l2"><a class="reference internal" href="table_rename.html">7.3.67. <code class="docutils literal notranslate"><span class="pre">table_rename</span></code></a></li> |
| 466 |
<li class="toctree-l2"><a class="reference internal" href="table_tokenize.html">7.3.68. <code class="docutils literal notranslate"><span class="pre">table_tokenize</span></code></a></li> |
| 467 |
<li class="toctree-l2"><a class="reference internal" href="thread_dump.html">7.3.69. <code class="docutils literal notranslate"><span class="pre">thread_dump</span></code></a></li> |
| 468 |
<li class="toctree-l2"><a class="reference internal" href="thread_limit.html">7.3.70. <code class="docutils literal notranslate"><span class="pre">thread_limit</span></code></a></li> |
| 469 |
<li class="toctree-l2"><a class="reference internal" href="tokenize.html">7.3.71. <code class="docutils literal notranslate"><span class="pre">tokenize</span></code></a></li> |
| 470 |
<li class="toctree-l2"><a class="reference internal" href="tokenizer_list.html">7.3.72. <code class="docutils literal notranslate"><span class="pre">tokenizer_list</span></code></a></li> |
| 471 |
<li class="toctree-l2"><a class="reference internal" href="truncate.html">7.3.73. <code class="docutils literal notranslate"><span class="pre">truncate</span></code></a></li> |
| 472 |
</ul> |
| 473 |
</details></li> |
| 474 |
<li class="toctree-l1"><a class="reference internal" href="../types.html">7.4. Data types</a></li> |
| 475 |
<li class="toctree-l1"><a class="reference internal" href="../tables.html">7.5. Tables</a></li> |
| 476 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../column.html">7.6. Column</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 477 |
<li class="toctree-l2"><a class="reference internal" href="../columns/scalar.html">7.6.2.1. Scalar column</a></li> |
| 478 |
<li class="toctree-l2"><a class="reference internal" href="../columns/vector.html">7.6.2.2. Vector column</a></li> |
| 479 |
<li class="toctree-l2"><a class="reference internal" href="../columns/pseudo.html">7.6.2.3. Pseudo column</a></li> |
| 480 |
<li class="toctree-l2"><a class="reference internal" href="../columns/index.html">7.6.3.1. Index column</a></li> |
| 481 |
</ul> |
| 482 |
</details></li> |
| 483 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../extractors.html">7.7. Extractors</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 484 |
<li class="toctree-l2"><a class="reference internal" href="../extractors/extractor_html.html">7.7.2.1. <code class="docutils literal notranslate"><span class="pre">ExtractorHTML</span></code></a></li> |
| 485 |
<li class="toctree-l2"><a class="reference internal" href="../extractors/extractor_json.html">7.7.2.2. <code class="docutils literal notranslate"><span class="pre">ExtractorJSON</span></code></a></li> |
| 486 |
</ul> |
| 487 |
</details></li> |
| 488 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../normalizers.html">7.8. Normalizers</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 489 |
<li class="toctree-l2"><a class="reference internal" href="../normalizers/normalizer_auto.html">7.8.2.1. <code class="docutils literal notranslate"><span class="pre">NormalizerAuto</span></code></a></li> |
| 490 |
<li class="toctree-l2"><a class="reference internal" href="../normalizers/normalizer_nfkc.html">7.8.2.2. <code class="docutils literal notranslate"><span class="pre">NormalizerNFKC</span></code></a></li> |
| 491 |
<li class="toctree-l2"><a class="reference internal" href="../normalizers/normalizer_nfkc100.html">7.8.2.3. <code class="docutils literal notranslate"><span class="pre">NormalizerNFKC100</span></code></a></li> |
| 492 |
<li class="toctree-l2"><a class="reference internal" href="../normalizers/normalizer_nfkc121.html">7.8.2.4. <code class="docutils literal notranslate"><span class="pre">NormalizerNFKC121</span></code></a></li> |
| 493 |
<li class="toctree-l2"><a class="reference internal" href="../normalizers/normalizer_nfkc130.html">7.8.2.5. <code class="docutils literal notranslate"><span class="pre">NormalizerNFKC130</span></code></a></li> |
| 494 |
<li class="toctree-l2"><a class="reference internal" href="../normalizers/normalizer_nfkc150.html">7.8.2.6. <code class="docutils literal notranslate"><span class="pre">NormalizerNFKC150</span></code></a></li> |
| 495 |
<li class="toctree-l2"><a class="reference internal" href="../normalizers/normalizer_nfkc51.html">7.8.2.7. <code class="docutils literal notranslate"><span class="pre">NormalizerNFKC51</span></code></a></li> |
| 496 |
<li class="toctree-l2"><a class="reference internal" href="../normalizers/normalizer_table.html">7.8.2.8. <code class="docutils literal notranslate"><span class="pre">NormalizerTable</span></code></a></li> |
| 497 |
</ul> |
| 498 |
</details></li> |
| 499 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../tokenizers.html">7.9. Tokenizers</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 500 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizer/summary.html">7.9.1. Summary</a></li> |
| 501 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_bigram.html">7.9.2. <code class="docutils literal notranslate"><span class="pre">TokenBigram</span></code></a></li> |
| 502 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_bigram_ignore_blank.html">7.9.3. <code class="docutils literal notranslate"><span class="pre">TokenBigramIgnoreBlank</span></code></a></li> |
| 503 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_bigram_ignore_blank_split_symbol.html">7.9.4. <code class="docutils literal notranslate"><span class="pre">TokenBigramIgnoreBlankSplitSymbol</span></code></a></li> |
| 504 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html">7.9.5. <code class="docutils literal notranslate"><span class="pre">TokenBigramIgnoreBlankSplitSymbolAlpha</span></code></a></li> |
| 505 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html">7.9.6. <code class="docutils literal notranslate"><span class="pre">TokenBigramIgnoreBlankSplitSymbolAlphaDigit</span></code></a></li> |
| 506 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_bigram_split_symbol.html">7.9.7. <code class="docutils literal notranslate"><span class="pre">TokenBigramSplitSymbol</span></code></a></li> |
| 507 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_bigram_split_symbol_alpha.html">7.9.8. <code class="docutils literal notranslate"><span class="pre">TokenBigramSplitSymbolAlpha</span></code></a></li> |
| 508 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_bigram_split_symbol_alpha_digit.html">7.9.9. <code class="docutils literal notranslate"><span class="pre">TokenBigramSplitSymbolAlphaDigit</span></code></a></li> |
| 509 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_delimit.html">7.9.10. <code class="docutils literal notranslate"><span class="pre">TokenDelimit</span></code></a></li> |
| 510 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_delimit_null.html">7.9.11. <code class="docutils literal notranslate"><span class="pre">TokenDelimitNull</span></code></a></li> |
| 511 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_language_model_knn.html">7.9.12. <code class="docutils literal notranslate"><span class="pre">TokenLanguageModelKNN</span></code></a></li> |
| 512 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_mecab.html">7.9.13. <code class="docutils literal notranslate"><span class="pre">TokenMecab</span></code></a></li> |
| 513 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_ngram.html">7.9.14. <code class="docutils literal notranslate"><span class="pre">TokenNgram</span></code></a></li> |
| 514 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_pattern.html">7.9.15. <code class="docutils literal notranslate"><span class="pre">TokenPattern</span></code></a></li> |
| 515 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_regexp.html">7.9.16. <code class="docutils literal notranslate"><span class="pre">TokenRegexp</span></code></a></li> |
| 516 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_table.html">7.9.17. <code class="docutils literal notranslate"><span class="pre">TokenTable</span></code></a></li> |
| 517 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_trigram.html">7.9.18. <code class="docutils literal notranslate"><span class="pre">TokenTrigram</span></code></a></li> |
| 518 |
<li class="toctree-l2"><a class="reference internal" href="../tokenizers/token_unigram.html">7.9.19. <code class="docutils literal notranslate"><span class="pre">TokenUnigram</span></code></a></li> |
| 519 |
</ul> |
| 520 |
</details></li> |
| 521 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../token_filters.html">7.10. Token filters</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 522 |
<li class="toctree-l2"><a class="reference internal" href="../token_filter/summary.html">7.10.1. Summary</a></li> |
| 523 |
<li class="toctree-l2"><a class="reference internal" href="../token_filters/token_filter_nfkc.html">7.10.2. <code class="docutils literal notranslate"><span class="pre">TokenFilterNFKC</span></code></a></li> |
| 524 |
<li class="toctree-l2"><a class="reference internal" href="../token_filters/token_filter_nfkc100.html">7.10.3. <code class="docutils literal notranslate"><span class="pre">TokenFilterNFKC100</span></code></a></li> |
| 525 |
<li class="toctree-l2"><a class="reference internal" href="../token_filters/token_filter_nfkc150.html">7.10.4. <code class="docutils literal notranslate"><span class="pre">TokenFilterNFKC150</span></code></a></li> |
| 526 |
<li class="toctree-l2"><a class="reference internal" href="../token_filters/token_filter_stem.html">7.10.5. <code class="docutils literal notranslate"><span class="pre">TokenFilterStem</span></code></a></li> |
| 527 |
<li class="toctree-l2"><a class="reference internal" href="../token_filters/token_filter_stop_word.html">7.10.6. <code class="docutils literal notranslate"><span class="pre">TokenFilterStopWord</span></code></a></li> |
| 528 |
</ul> |
| 529 |
</details></li> |
| 530 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../query_expanders.html">7.11. Query expanders</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 531 |
<li class="toctree-l2"><a class="reference internal" href="../query_expanders/tsv.html">7.11.1. QueryExpanderTSV</a></li> |
| 532 |
</ul> |
| 533 |
</details></li> |
| 534 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../scorer.html">7.12. Scorer</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 535 |
<li class="toctree-l2"><a class="reference internal" href="../scorers/scorer_tf_at_most.html">7.12.3.1. <code class="docutils literal notranslate"><span class="pre">scorer_tf_at_most</span></code></a></li> |
| 536 |
<li class="toctree-l2"><a class="reference internal" href="../scorers/scorer_tf_idf.html">7.12.3.2. <code class="docutils literal notranslate"><span class="pre">scorer_tf_idf</span></code></a></li> |
| 537 |
</ul> |
| 538 |
</details></li> |
| 539 |
<li class="toctree-l1"><a class="reference internal" href="../cast.html">7.13. Cast</a></li> |
| 540 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../grn_expr.html">7.14. grn_expr</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 541 |
<li class="toctree-l2"><a class="reference internal" href="../grn_expr/query_syntax.html">7.14.1. Query syntax</a></li> |
| 542 |
<li class="toctree-l2"><a class="reference internal" href="../grn_expr/script_syntax.html">7.14.2. Script syntax</a></li> |
| 543 |
</ul> |
| 544 |
</details></li> |
| 545 |
<li class="toctree-l1"><a class="reference internal" href="../regular_expression.html">7.15. Regular expression</a></li> |
| 546 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../function.html">7.16. Function</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 547 |
<li class="toctree-l2"><a class="reference internal" href="../functions/between.html">7.16.1. <code class="docutils literal notranslate"><span class="pre">between</span></code></a></li> |
| 548 |
<li class="toctree-l2"><a class="reference internal" href="../functions/cast_loose.html">7.16.2. <code class="docutils literal notranslate"><span class="pre">cast_loose</span></code></a></li> |
| 549 |
<li class="toctree-l2"><a class="reference internal" href="../functions/edit_distance.html">7.16.3. edit_distance</a></li> |
| 550 |
<li class="toctree-l2"><a class="reference internal" href="../functions/escalate.html">7.16.4. <code class="docutils literal notranslate"><span class="pre">escalate</span></code></a></li> |
| 551 |
<li class="toctree-l2"><a class="reference internal" href="../functions/fuzzy_search.html">7.16.5. <code class="docutils literal notranslate"><span class="pre">fuzzy_search</span></code></a></li> |
| 552 |
<li class="toctree-l2"><a class="reference internal" href="../functions/geo_distance.html">7.16.6. <code class="docutils literal notranslate"><span class="pre">geo_distance</span></code></a></li> |
| 553 |
<li class="toctree-l2"><a class="reference internal" href="../functions/geo_in_circle.html">7.16.7. geo_in_circle</a></li> |
| 554 |
<li class="toctree-l2"><a class="reference internal" href="../functions/geo_in_rectangle.html">7.16.8. geo_in_rectangle</a></li> |
| 555 |
<li class="toctree-l2"><a class="reference internal" href="../functions/highlight.html">7.16.9. <code class="docutils literal notranslate"><span class="pre">highlight</span></code></a></li> |
| 556 |
<li class="toctree-l2"><a class="reference internal" href="../functions/highlight_full.html">7.16.10. <code class="docutils literal notranslate"><span class="pre">highlight_full</span></code></a></li> |
| 557 |
<li class="toctree-l2"><a class="reference internal" href="../functions/highlight_html.html">7.16.11. <code class="docutils literal notranslate"><span class="pre">highlight_html</span></code></a></li> |
| 558 |
<li class="toctree-l2"><a class="reference internal" href="../functions/html_untag.html">7.16.12. <code class="docutils literal notranslate"><span class="pre">html_untag</span></code></a></li> |
| 559 |
<li class="toctree-l2"><a class="reference internal" href="../functions/in_records.html">7.16.13. <code class="docutils literal notranslate"><span class="pre">in_records</span></code></a></li> |
| 560 |
<li class="toctree-l2"><a class="reference internal" href="../functions/in_values.html">7.16.14. <code class="docutils literal notranslate"><span class="pre">in_values</span></code></a></li> |
| 561 |
<li class="toctree-l2"><a class="reference internal" href="../functions/json_extract.html">7.16.15. <code class="docutils literal notranslate"><span class="pre">json_extract</span></code></a></li> |
| 562 |
<li class="toctree-l2"><a class="reference internal" href="../functions/language_model_knn.html">7.16.16. <code class="docutils literal notranslate"><span class="pre">language_model_knn</span></code></a></li> |
| 563 |
<li class="toctree-l2"><a class="reference internal" href="../functions/language_model_vectorize.html">7.16.17. <code class="docutils literal notranslate"><span class="pre">language_model_vectorize</span></code></a></li> |
| 564 |
<li class="toctree-l2"><a class="reference internal" href="../functions/math_abs.html">7.16.18. <code class="docutils literal notranslate"><span class="pre">math_abs</span></code></a></li> |
| 565 |
<li class="toctree-l2"><a class="reference internal" href="../functions/now.html">7.16.19. now</a></li> |
| 566 |
<li class="toctree-l2"><a class="reference internal" href="../functions/number_classify.html">7.16.20. <code class="docutils literal notranslate"><span class="pre">number_classify</span></code></a></li> |
| 567 |
<li class="toctree-l2"><a class="reference internal" href="../functions/prefix_rk_search.html">7.16.21. <code class="docutils literal notranslate"><span class="pre">prefix_rk_search</span></code></a></li> |
| 568 |
<li class="toctree-l2"><a class="reference internal" href="../functions/query.html">7.16.22. <code class="docutils literal notranslate"><span class="pre">query</span></code></a></li> |
| 569 |
<li class="toctree-l2"><a class="reference internal" href="../functions/query_parallel_or.html">7.16.23. <code class="docutils literal notranslate"><span class="pre">query_parallel_or</span></code></a></li> |
| 570 |
<li class="toctree-l2"><a class="reference internal" href="../functions/rand.html">7.16.24. rand</a></li> |
| 571 |
<li class="toctree-l2"><a class="reference internal" href="../functions/snippet.html">7.16.25. <code class="docutils literal notranslate"><span class="pre">snippet</span></code></a></li> |
| 572 |
<li class="toctree-l2"><a class="reference internal" href="../functions/snippet_html.html">7.16.26. <code class="docutils literal notranslate"><span class="pre">snippet_html</span></code></a></li> |
| 573 |
<li class="toctree-l2"><a class="reference internal" href="../functions/string_length.html">7.16.27. <code class="docutils literal notranslate"><span class="pre">string_length</span></code></a></li> |
| 574 |
<li class="toctree-l2"><a class="reference internal" href="../functions/string_slice.html">7.16.28. <code class="docutils literal notranslate"><span class="pre">string_slice</span></code></a></li> |
| 575 |
<li class="toctree-l2"><a class="reference internal" href="../functions/string_substring.html">7.16.29. <code class="docutils literal notranslate"><span class="pre">string_substring</span></code></a></li> |
| 576 |
<li class="toctree-l2"><a class="reference internal" href="../functions/string_truncate.html">7.16.30. <code class="docutils literal notranslate"><span class="pre">string_truncate</span></code></a></li> |
| 577 |
<li class="toctree-l2"><a class="reference internal" href="../functions/sub_filter.html">7.16.31. <code class="docutils literal notranslate"><span class="pre">sub_filter</span></code></a></li> |
| 578 |
<li class="toctree-l2"><a class="reference internal" href="../functions/time_classify_day.html">7.16.32. <code class="docutils literal notranslate"><span class="pre">time_classify_day</span></code></a></li> |
| 579 |
<li class="toctree-l2"><a class="reference internal" href="../functions/time_classify_day_of_week.html">7.16.33. <code class="docutils literal notranslate"><span class="pre">time_classify_day_of_week</span></code></a></li> |
| 580 |
<li class="toctree-l2"><a class="reference internal" href="../functions/time_classify_hour.html">7.16.34. <code class="docutils literal notranslate"><span class="pre">time_classify_hour</span></code></a></li> |
| 581 |
<li class="toctree-l2"><a class="reference internal" href="../functions/time_classify_minute.html">7.16.35. <code class="docutils literal notranslate"><span class="pre">time_classify_minute</span></code></a></li> |
| 582 |
<li class="toctree-l2"><a class="reference internal" href="../functions/time_classify_month.html">7.16.36. <code class="docutils literal notranslate"><span class="pre">time_classify_month</span></code></a></li> |
| 583 |
<li class="toctree-l2"><a class="reference internal" href="../functions/time_classify_second.html">7.16.37. <code class="docutils literal notranslate"><span class="pre">time_classify_second</span></code></a></li> |
| 584 |
<li class="toctree-l2"><a class="reference internal" href="../functions/time_classify_week.html">7.16.38. <code class="docutils literal notranslate"><span class="pre">time_classify_week</span></code></a></li> |
| 585 |
<li class="toctree-l2"><a class="reference internal" href="../functions/time_classify_year.html">7.16.39. <code class="docutils literal notranslate"><span class="pre">time_classify_year</span></code></a></li> |
| 586 |
<li class="toctree-l2"><a class="reference internal" href="../functions/vector_find.html">7.16.40. <code class="docutils literal notranslate"><span class="pre">vector_find</span></code></a></li> |
| 587 |
<li class="toctree-l2"><a class="reference internal" href="../functions/vector_new.html">7.16.41. <code class="docutils literal notranslate"><span class="pre">vector_new</span></code></a></li> |
| 588 |
<li class="toctree-l2"><a class="reference internal" href="../functions/vector_size.html">7.16.42. <code class="docutils literal notranslate"><span class="pre">vector_size</span></code></a></li> |
| 589 |
<li class="toctree-l2"><a class="reference internal" href="../functions/vector_slice.html">7.16.43. <code class="docutils literal notranslate"><span class="pre">vector_slice</span></code></a></li> |
| 590 |
</ul> |
| 591 |
</details></li> |
| 592 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../window_function.html">7.17. Window function</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 593 |
<li class="toctree-l2"><a class="reference internal" href="../window_functions/record_number.html">7.17.1. <code class="docutils literal notranslate"><span class="pre">record_number</span></code></a></li> |
| 594 |
<li class="toctree-l2"><a class="reference internal" href="../window_functions/window_count.html">7.17.2. <code class="docutils literal notranslate"><span class="pre">window_count</span></code></a></li> |
| 595 |
<li class="toctree-l2"><a class="reference internal" href="../window_functions/window_rank.html">7.17.3. <code class="docutils literal notranslate"><span class="pre">window_rank</span></code></a></li> |
| 596 |
<li class="toctree-l2"><a class="reference internal" href="../window_functions/window_record_number.html">7.17.4. <code class="docutils literal notranslate"><span class="pre">window_record_number</span></code></a></li> |
| 597 |
<li class="toctree-l2"><a class="reference internal" href="../window_functions/window_sum.html">7.17.5. <code class="docutils literal notranslate"><span class="pre">window_sum</span></code></a></li> |
| 598 |
</ul> |
| 599 |
</details></li> |
| 600 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../operations.html">7.18. Operations</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 601 |
<li class="toctree-l2"><a class="reference internal" href="../operations/geolocation_search.html">7.18.1. Geolocation search</a></li> |
| 602 |
<li class="toctree-l2"><a class="reference internal" href="../operations/prefix_rk_search.html">7.18.2. Prefix RK search</a></li> |
| 603 |
</ul> |
| 604 |
</details></li> |
| 605 |
<li class="toctree-l1"><a class="reference internal" href="../configuration.html">7.19. Configuration</a></li> |
| 606 |
<li class="toctree-l1"><a class="reference internal" href="../alias.html">7.20. Alias</a></li> |
| 607 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../suggest.html">7.21. Suggest</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 608 |
<li class="toctree-l2"><a class="reference internal" href="../suggest/introduction.html">7.21.1. Introduction</a></li> |
| 609 |
<li class="toctree-l2"><a class="reference internal" href="../suggest/completion.html">7.21.2. Completion</a></li> |
| 610 |
<li class="toctree-l2"><a class="reference internal" href="../suggest/correction.html">7.21.3. Correction</a></li> |
| 611 |
<li class="toctree-l2"><a class="reference internal" href="../suggest/suggestion.html">7.21.4. Suggestion</a></li> |
| 612 |
</ul> |
| 613 |
</details></li> |
| 614 |
<li class="toctree-l1"><a class="reference internal" href="../indexing.html">7.22. Indexing</a></li> |
| 615 |
<li class="toctree-l1"><a class="reference internal" href="../sharding.html">7.23. Sharding</a></li> |
| 616 |
<li class="toctree-l1"><a class="reference internal" href="../language_model.html">7.24. Language model</a></li> |
| 617 |
<li class="toctree-l1"><a class="reference internal" href="../log.html">7.25. Log</a></li> |
| 618 |
<li class="toctree-l1"><a class="reference internal" href="../tuning.html">7.26. Tuning</a></li> |
| 619 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../api.html">7.27. API</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 620 |
<li class="toctree-l2"><a class="reference internal" href="../api/overview.html">7.27.1.1. Overview</a></li> |
| 621 |
<li class="toctree-l2"><a class="reference internal" href="../api/global_configurations.html">7.27.1.2. Global configurations</a></li> |
| 622 |
<li class="toctree-l2"><a class="reference internal" href="../api/plugin.html">7.27.1.3. Plugin</a></li> |
| 623 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_cache.html">7.27.1.4. <code class="docutils literal notranslate"><span class="pre">grn_cache</span></code></a></li> |
| 624 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_column.html">7.27.1.5. <code class="docutils literal notranslate"><span class="pre">grn_column</span></code></a></li> |
| 625 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_command_version.html">7.27.1.6. <code class="docutils literal notranslate"><span class="pre">grn_command_version</span></code></a></li> |
| 626 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_content_type.html">7.27.1.7. <code class="docutils literal notranslate"><span class="pre">grn_content_type</span></code></a></li> |
| 627 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_ctx.html">7.27.1.8. <code class="docutils literal notranslate"><span class="pre">grn_ctx</span></code></a></li> |
| 628 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_db.html">7.27.1.9. <code class="docutils literal notranslate"><span class="pre">grn_db</span></code></a></li> |
| 629 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_encoding.html">7.27.1.10. <code class="docutils literal notranslate"><span class="pre">grn_encoding</span></code></a></li> |
| 630 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_expr.html">7.27.1.11. grn_expr</a></li> |
| 631 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_geo.html">7.27.1.12. <code class="docutils literal notranslate"><span class="pre">grn_geo</span></code></a></li> |
| 632 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_hook.html">7.27.1.13. <code class="docutils literal notranslate"><span class="pre">grn_hook</span></code></a></li> |
| 633 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_ii.html">7.27.1.14. <code class="docutils literal notranslate"><span class="pre">grn_ii</span></code></a></li> |
| 634 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_index_cursor.html">7.27.1.15. <code class="docutils literal notranslate"><span class="pre">grn_index_cursor</span></code></a></li> |
| 635 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_info.html">7.27.1.16. <code class="docutils literal notranslate"><span class="pre">grn_info</span></code></a></li> |
| 636 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_inspect.html">7.27.1.17. <code class="docutils literal notranslate"><span class="pre">grn_inspect</span></code></a></li> |
| 637 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_match_escalation.html">7.27.1.18. <code class="docutils literal notranslate"><span class="pre">grn_match_escalation</span></code></a></li> |
| 638 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_obj.html">7.27.1.19. <code class="docutils literal notranslate"><span class="pre">grn_obj</span></code></a></li> |
| 639 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_proc.html">7.27.1.20. <code class="docutils literal notranslate"><span class="pre">grn_proc</span></code></a></li> |
| 640 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_search.html">7.27.1.21. <code class="docutils literal notranslate"><span class="pre">grn_search</span></code></a></li> |
| 641 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_table.html">7.27.1.22. <code class="docutils literal notranslate"><span class="pre">grn_table</span></code></a></li> |
| 642 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_table_cursor.html">7.27.1.23. <code class="docutils literal notranslate"><span class="pre">grn_table_cursor</span></code></a></li> |
| 643 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_thread.html">7.27.1.24. <code class="docutils literal notranslate"><span class="pre">grn_thread_*</span></code></a></li> |
| 644 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_type.html">7.27.1.25. <code class="docutils literal notranslate"><span class="pre">grn_type</span></code></a></li> |
| 645 |
<li class="toctree-l2"><a class="reference internal" href="../api/grn_user_data.html">7.27.1.26. <code class="docutils literal notranslate"><span class="pre">grn_user_data</span></code></a></li> |
| 646 |
</ul> |
| 647 |
</details></li> |
| 648 |
</ul> |
| 649 |
</div> |
| 650 |
</nav></div> |
| 651 |
</div> |
| 652 |
|
| 653 |
|
| 654 |
<div class="sidebar-primary-items__end sidebar-primary__section"> |
| 655 |
<div class="sidebar-primary-item"> |
| 656 |
<div id="ethical-ad-placement" |
| 657 |
class="flat" |
| 658 |
data-ea-publisher="readthedocs" |
| 659 |
data-ea-type="readthedocs-sidebar" |
| 660 |
data-ea-manual="true"> |
| 661 |
</div></div> |
| 662 |
</div> |
| 663 |
|
| 664 |
|
| 665 |
</div> |
| 666 |
|
| 667 |
<main id="main-content" class="bd-main" role="main"> |
| 668 |
|
| 669 |
|
| 670 |
<div class="bd-content"> |
| 671 |
<div class="bd-article-container"> |
| 672 |
|
| 673 |
<div class="bd-header-article d-print-none"> |
| 674 |
<div class="header-article-items header-article__inner"> |
| 675 |
|
| 676 |
<div class="header-article-items__start"> |
| 677 |
|
| 678 |
<div class="header-article-item"> |
| 679 |
|
| 680 |
<nav aria-label="Breadcrumb" class="d-print-none"> |
| 681 |
<ul class="bd-breadcrumbs"> |
| 682 |
|
| 683 |
<li class="breadcrumb-item breadcrumb-home"> |
| 684 |
<a href="../../index.html" class="nav-link" aria-label="Home"> |
| 685 |
<i class="fa-solid fa-home"></i> |
| 686 |
</a> |
| 687 |
</li> |
| 688 |
|
| 689 |
<li class="breadcrumb-item"><a href="../../reference.html" class="nav-link"><span class="section-number">7. </span>Reference manual</a></li> |
| 690 |
|
| 691 |
|
| 692 |
<li class="breadcrumb-item"><a href="../command.html" class="nav-link"><span class="section-number">7.3. </span>Command</a></li> |
| 693 |
|
| 694 |
<li class="breadcrumb-item active" aria-current="page"><span class="ellipsis"><span class="section-number">7.3.40. </span><code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code></span></li> |
| 695 |
</ul> |
| 696 |
</nav> |
| 697 |
</div> |
| 698 |
|
| 699 |
</div> |
| 700 |
|
| 701 |
|
| 702 |
</div> |
| 703 |
</div> |
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
<div id="searchbox"></div> |
| 709 |
<article class="bd-article"> |
| 710 |
|
| 711 |
<section id="logical-table-remove"> |
| 712 |
<h1><span class="section-number">7.3.40. </span><code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code><a class="headerlink" href="#logical-table-remove" title="Link to this heading">#</a></h1> |
| 713 |
<section id="summary"> |
| 714 |
<h2><span class="section-number">7.3.40.1. </span>Summary<a class="headerlink" href="#summary" title="Link to this heading">#</a></h2> |
| 715 |
<div class="versionadded"> |
| 716 |
<p><span class="versionmodified added">Added in version 5.0.5.</span></p> |
| 717 |
</div> |
| 718 |
<p><code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> removes tables and their columns for the |
| 719 |
specified logical table. If there are one or more indexes against key |
| 720 |
of the tables and their columns, they are also removed.</p> |
| 721 |
<p>If you specify the part of a shard, table of the shard isn’t |
| 722 |
removed. <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> just deletes records in the table.</p> |
| 723 |
<p>For example, there are the following records in a table:</p> |
| 724 |
<blockquote> |
| 725 |
<div><ul class="simple"> |
| 726 |
<li><p>Record1: <code class="docutils literal notranslate"><span class="pre">2016-03-18</span> <span class="pre">00:30:00</span></code></p></li> |
| 727 |
<li><p>Record2: <code class="docutils literal notranslate"><span class="pre">2016-03-18</span> <span class="pre">01:00:00</span></code></p></li> |
| 728 |
<li><p>Record3: <code class="docutils literal notranslate"><span class="pre">2016-03-18</span> <span class="pre">02:00:00</span></code></p></li> |
| 729 |
</ul> |
| 730 |
</div></blockquote> |
| 731 |
<p><code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> deletes “Record1” and “Record2” when you |
| 732 |
specify range as between <code class="docutils literal notranslate"><span class="pre">2016-03-18</span> <span class="pre">00:00:00</span></code> and <code class="docutils literal notranslate"><span class="pre">2016-03-18</span> |
| 733 |
<span class="pre">01:30:00</span></code>. <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> doesn’t delete |
| 734 |
“Record3”. <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> doesn’t remove the table.</p> |
| 735 |
<div class="versionadded"> |
| 736 |
<p><span class="versionmodified added">Added in version 6.0.1: </span>You can also remove tables and columns that reference the target |
| 737 |
table and tables related with the target shard by using |
| 738 |
<code class="docutils literal notranslate"><span class="pre">dependent</span></code> parameter.</p> |
| 739 |
</div> |
| 740 |
<div class="versionadded"> |
| 741 |
<p><span class="versionmodified added">Added in version 6.0.9: </span>You can remove broken tables and columns as much as possible by |
| 742 |
using <code class="docutils literal notranslate"><span class="pre">force</span></code> parameter.</p> |
| 743 |
</div> |
| 744 |
</section> |
| 745 |
<section id="syntax"> |
| 746 |
<h2><span class="section-number">7.3.40.2. </span>Syntax<a class="headerlink" href="#syntax" title="Link to this heading">#</a></h2> |
| 747 |
<p>This command takes many parameters.</p> |
| 748 |
<p>The required parameters are <code class="docutils literal notranslate"><span class="pre">logical_table</span></code> and <code class="docutils literal notranslate"><span class="pre">shard_key</span></code>:</p> |
| 749 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_table_remove</span> <span class="n">logical_table</span> |
| 750 |
<span class="n">shard_key</span> |
| 751 |
<span class="p">[</span><span class="nb">min</span><span class="o">=</span><span class="n">null</span><span class="p">]</span> |
| 752 |
<span class="p">[</span><span class="n">min_border</span><span class="o">=</span><span class="s2">"include"</span><span class="p">]</span> |
| 753 |
<span class="p">[</span><span class="nb">max</span><span class="o">=</span><span class="n">null</span><span class="p">]</span> |
| 754 |
<span class="p">[</span><span class="n">max_border</span><span class="o">=</span><span class="s2">"include"</span><span class="p">]</span> |
| 755 |
<span class="p">[</span><span class="n">dependent</span><span class="o">=</span><span class="n">no</span><span class="p">]</span> |
| 756 |
<span class="p">[</span><span class="n">force</span><span class="o">=</span><span class="n">no</span><span class="p">]</span> |
| 757 |
</pre></div> |
| 758 |
</div> |
| 759 |
</section> |
| 760 |
<section id="usage"> |
| 761 |
<span id="logical-table-remove-usage"></span><h2><span class="section-number">7.3.40.3. </span>Usage<a class="headerlink" href="#usage" title="Link to this heading">#</a></h2> |
| 762 |
<p>You specify logical table name and shard key what you want to remove.</p> |
| 763 |
<p>This section describes about the followings:</p> |
| 764 |
<blockquote> |
| 765 |
<div><ul class="simple"> |
| 766 |
<li><p>Basic usage</p></li> |
| 767 |
<li><p>Removes parts of a logical table</p></li> |
| 768 |
<li><p>Unremovable cases</p></li> |
| 769 |
<li><p>Removes with related tables</p></li> |
| 770 |
<li><p>Removes broken tables as much as possible</p></li> |
| 771 |
<li><p>Decreases used resources</p></li> |
| 772 |
</ul> |
| 773 |
</div></blockquote> |
| 774 |
<section id="basic-usage"> |
| 775 |
<span id="logical-table-remove-basic-usage"></span><h3><span class="section-number">7.3.40.3.1. </span>Basic usage<a class="headerlink" href="#basic-usage" title="Link to this heading">#</a></h3> |
| 776 |
<p>Register <code class="docutils literal notranslate"><span class="pre">sharding</span></code> plugin to use this command in advance.</p> |
| 777 |
<p>Execution example:</p> |
| 778 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">plugin_register</span> <span class="n">sharding</span> |
| 779 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 780 |
</pre></div> |
| 781 |
</div> |
| 782 |
<p>You can remove all tables for the logical table by specifying only |
| 783 |
<code class="docutils literal notranslate"><span class="pre">logical_table</span></code> and <code class="docutils literal notranslate"><span class="pre">shard_key</span></code>.</p> |
| 784 |
<p>Here are commands to create 2 shards:</p> |
| 785 |
<p>Execution example:</p> |
| 786 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">table_create</span> <span class="n">Logs_20160318</span> <span class="n">TABLE_NO_KEY</span> |
| 787 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 788 |
<span class="n">column_create</span> <span class="n">Logs_20160318</span> <span class="n">timestamp</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Time</span> |
| 789 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 790 |
<span class="n">table_create</span> <span class="n">Logs_20160319</span> <span class="n">TABLE_NO_KEY</span> |
| 791 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 792 |
<span class="n">column_create</span> <span class="n">Logs_20160319</span> <span class="n">timestamp</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Time</span> |
| 793 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 794 |
</pre></div> |
| 795 |
</div> |
| 796 |
<p>You can confirm existing shards by <a class="reference internal" href="logical_shard_list.html"><span class="doc">logical_shard_list</span></a>:</p> |
| 797 |
<p>Execution example:</p> |
| 798 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_shard_list</span> <span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> |
| 799 |
<span class="c1"># [</span> |
| 800 |
<span class="c1"># [</span> |
| 801 |
<span class="c1"># 0,</span> |
| 802 |
<span class="c1"># 1337566253.89858,</span> |
| 803 |
<span class="c1"># 0.000355720520019531</span> |
| 804 |
<span class="c1"># ],</span> |
| 805 |
<span class="c1"># [</span> |
| 806 |
<span class="c1"># {</span> |
| 807 |
<span class="c1"># "name": "Logs_20160318"</span> |
| 808 |
<span class="c1"># },</span> |
| 809 |
<span class="c1"># {</span> |
| 810 |
<span class="c1"># "name": "Logs_20160319"</span> |
| 811 |
<span class="c1"># }</span> |
| 812 |
<span class="c1"># ]</span> |
| 813 |
<span class="c1"># ]</span> |
| 814 |
</pre></div> |
| 815 |
</div> |
| 816 |
<p>You can remove all shards:</p> |
| 817 |
<p>Execution example:</p> |
| 818 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_table_remove</span> \ |
| 819 |
<span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> \ |
| 820 |
<span class="o">--</span><span class="n">shard_key</span> <span class="n">timestamp</span> |
| 821 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 822 |
</pre></div> |
| 823 |
</div> |
| 824 |
<p>There are no shards after you remove all shards:</p> |
| 825 |
<p>Execution example:</p> |
| 826 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_shard_list</span> <span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> |
| 827 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],[]]</span> |
| 828 |
</pre></div> |
| 829 |
</div> |
| 830 |
</section> |
| 831 |
<section id="removes-parts-of-a-logical-table"> |
| 832 |
<span id="logical-table-remove-removes-parts"></span><h3><span class="section-number">7.3.40.3.2. </span>Removes parts of a logical table<a class="headerlink" href="#removes-parts-of-a-logical-table" title="Link to this heading">#</a></h3> |
| 833 |
<p>You can specify range of shards by the following parameters:</p> |
| 834 |
<blockquote> |
| 835 |
<div><ul class="simple"> |
| 836 |
<li><p><code class="docutils literal notranslate"><span class="pre">min</span></code></p></li> |
| 837 |
<li><p><code class="docutils literal notranslate"><span class="pre">min_border</span></code></p></li> |
| 838 |
<li><p><code class="docutils literal notranslate"><span class="pre">max</span></code></p></li> |
| 839 |
<li><p><code class="docutils literal notranslate"><span class="pre">max_border</span></code></p></li> |
| 840 |
</ul> |
| 841 |
</div></blockquote> |
| 842 |
<p>See the following documents of <a class="reference internal" href="logical_select.html"><span class="doc">logical_select</span></a> for each |
| 843 |
parameter:</p> |
| 844 |
<blockquote> |
| 845 |
<div><ul class="simple"> |
| 846 |
<li><p><a class="reference internal" href="logical_select.html#logical-select-min"><span class="std std-ref">min</span></a></p></li> |
| 847 |
<li><p><a class="reference internal" href="logical_select.html#logical-select-min-border"><span class="std std-ref">min_border</span></a></p></li> |
| 848 |
<li><p><a class="reference internal" href="logical_select.html#logical-select-max"><span class="std std-ref">max</span></a></p></li> |
| 849 |
<li><p><a class="reference internal" href="logical_select.html#logical-select-max-border"><span class="std std-ref">max_border</span></a></p></li> |
| 850 |
</ul> |
| 851 |
</div></blockquote> |
| 852 |
<p>If the specified range doesn’t cover all records in a shard, table for |
| 853 |
the shard isn’t removed. Target records in the table are only deleted.</p> |
| 854 |
<p>If the specified range covers all records in a shard, table for the |
| 855 |
shard is removed.</p> |
| 856 |
<p>Here is a logical table to show the behavior. The logical table has two |
| 857 |
shards:</p> |
| 858 |
<p>Execution example:</p> |
| 859 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">table_create</span> <span class="n">Logs_20160318</span> <span class="n">TABLE_NO_KEY</span> |
| 860 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 861 |
<span class="n">column_create</span> <span class="n">Logs_20160318</span> <span class="n">timestamp</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Time</span> |
| 862 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 863 |
<span class="n">load</span> <span class="o">--</span><span class="n">table</span> <span class="n">Logs_20160318</span> |
| 864 |
<span class="p">[</span> |
| 865 |
<span class="p">{</span><span class="s2">"timestamp"</span><span class="p">:</span> <span class="s2">"2016-03-18 00:30:00"</span><span class="p">},</span> |
| 866 |
<span class="p">{</span><span class="s2">"timestamp"</span><span class="p">:</span> <span class="s2">"2016-03-18 01:00:00"</span><span class="p">},</span> |
| 867 |
<span class="p">{</span><span class="s2">"timestamp"</span><span class="p">:</span> <span class="s2">"2016-03-18 02:00:00"</span><span class="p">}</span> |
| 868 |
<span class="p">]</span> |
| 869 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],3]</span> |
| 870 |
<span class="n">table_create</span> <span class="n">Logs_20160319</span> <span class="n">TABLE_NO_KEY</span> |
| 871 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 872 |
<span class="n">column_create</span> <span class="n">Logs_20160319</span> <span class="n">timestamp</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Time</span> |
| 873 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 874 |
<span class="n">load</span> <span class="o">--</span><span class="n">table</span> <span class="n">Logs_20160319</span> |
| 875 |
<span class="p">[</span> |
| 876 |
<span class="p">{</span><span class="s2">"timestamp"</span><span class="p">:</span> <span class="s2">"2016-03-19 00:30:00"</span><span class="p">},</span> |
| 877 |
<span class="p">{</span><span class="s2">"timestamp"</span><span class="p">:</span> <span class="s2">"2016-03-19 01:00:00"</span><span class="p">}</span> |
| 878 |
<span class="p">]</span> |
| 879 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],2]</span> |
| 880 |
</pre></div> |
| 881 |
</div> |
| 882 |
<p>There are the following records in <code class="docutils literal notranslate"><span class="pre">Logs_20160318</span></code> table:</p> |
| 883 |
<blockquote> |
| 884 |
<div><ul class="simple"> |
| 885 |
<li><p>Record1: <code class="docutils literal notranslate"><span class="pre">"2016-03-18</span> <span class="pre">00:30:00"</span></code></p></li> |
| 886 |
<li><p>Record2: <code class="docutils literal notranslate"><span class="pre">"2016-03-18</span> <span class="pre">01:00:00"</span></code></p></li> |
| 887 |
<li><p>Record3: <code class="docutils literal notranslate"><span class="pre">"2016-03-18</span> <span class="pre">02:00:00"</span></code></p></li> |
| 888 |
</ul> |
| 889 |
</div></blockquote> |
| 890 |
<p>There are the following records in <code class="docutils literal notranslate"><span class="pre">Logs_20160319</span></code> table:</p> |
| 891 |
<blockquote> |
| 892 |
<div><ul class="simple"> |
| 893 |
<li><p>Record1: <code class="docutils literal notranslate"><span class="pre">"2016-03-19</span> <span class="pre">00:30:00"</span></code></p></li> |
| 894 |
<li><p>Record2: <code class="docutils literal notranslate"><span class="pre">"2016-03-19</span> <span class="pre">01:00:00"</span></code></p></li> |
| 895 |
</ul> |
| 896 |
</div></blockquote> |
| 897 |
<p>The following range doesn’t cover “Record1” in <code class="docutils literal notranslate"><span class="pre">Logs_20160318</span></code> table |
| 898 |
but covers all records in <code class="docutils literal notranslate"><span class="pre">Logs_20160319</span></code> table:</p> |
| 899 |
<div class="pst-scrollable-table-container"><table class="table"> |
| 900 |
<thead> |
| 901 |
<tr class="row-odd"><th class="head"><p>Parameter</p></th> |
| 902 |
<th class="head"><p>Value</p></th> |
| 903 |
</tr> |
| 904 |
</thead> |
| 905 |
<tbody> |
| 906 |
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">min</span></code></p></td> |
| 907 |
<td><p><code class="docutils literal notranslate"><span class="pre">"2016-03-18</span> <span class="pre">01:00:00"</span></code></p></td> |
| 908 |
</tr> |
| 909 |
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">min_border</span></code></p></td> |
| 910 |
<td><p><code class="docutils literal notranslate"><span class="pre">"include"</span></code></p></td> |
| 911 |
</tr> |
| 912 |
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">max</span></code></p></td> |
| 913 |
<td><p><code class="docutils literal notranslate"><span class="pre">"2016-03-19</span> <span class="pre">01:30:00"</span></code></p></td> |
| 914 |
</tr> |
| 915 |
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">max_border</span></code></p></td> |
| 916 |
<td><p><code class="docutils literal notranslate"><span class="pre">"include"</span></code></p></td> |
| 917 |
</tr> |
| 918 |
</tbody> |
| 919 |
</table> |
| 920 |
</div> |
| 921 |
<p><code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> with the range deletes “Record2” and |
| 922 |
“Record3” in <code class="docutils literal notranslate"><span class="pre">Logs_20160318</span></code> table but doesn’t remove |
| 923 |
<code class="docutils literal notranslate"><span class="pre">Logs_20160318</span></code> table. Because there is “Record1” in |
| 924 |
<code class="docutils literal notranslate"><span class="pre">Logs_20160318</span></code> table.</p> |
| 925 |
<p><code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> with the range removes <code class="docutils literal notranslate"><span class="pre">Logs_20160319</span></code> |
| 926 |
table because the range covers all records in <code class="docutils literal notranslate"><span class="pre">Logs_20160319</span></code> table.</p> |
| 927 |
<p>Here is an example to use <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> with the range:</p> |
| 928 |
<p>Execution example:</p> |
| 929 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_table_remove</span> \ |
| 930 |
<span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> \ |
| 931 |
<span class="o">--</span><span class="n">shard_key</span> <span class="n">timestamp</span> \ |
| 932 |
<span class="o">--</span><span class="nb">min</span> <span class="s2">"2016-03-18 01:00:00"</span> \ |
| 933 |
<span class="o">--</span><span class="n">min_border</span> <span class="s2">"include"</span> \ |
| 934 |
<span class="o">--</span><span class="nb">max</span> <span class="s2">"2016-03-19 01:30:00"</span> \ |
| 935 |
<span class="o">--</span><span class="n">max_border</span> <span class="s2">"include"</span> |
| 936 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 937 |
</pre></div> |
| 938 |
</div> |
| 939 |
<p><a class="reference internal" href="dump.html"><span class="doc">dump</span></a> shows that there is “Record1” in <code class="docutils literal notranslate"><span class="pre">Logs_20160318</span></code> table:</p> |
| 940 |
<p>Execution example:</p> |
| 941 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">dump</span> |
| 942 |
<span class="c1"># plugin_register sharding</span> |
| 943 |
<span class="c1">#</span> |
| 944 |
<span class="c1"># table_create Logs_20160318 TABLE_NO_KEY</span> |
| 945 |
<span class="c1"># column_create Logs_20160318 timestamp COLUMN_SCALAR Time</span> |
| 946 |
<span class="c1">#</span> |
| 947 |
<span class="c1"># load --table Logs_20160318</span> |
| 948 |
<span class="c1"># [</span> |
| 949 |
<span class="c1"># ["_id","timestamp"],</span> |
| 950 |
<span class="c1"># [1,1458228600.0]</span> |
| 951 |
<span class="c1"># ]</span> |
| 952 |
</pre></div> |
| 953 |
</div> |
| 954 |
</section> |
| 955 |
<section id="unremovable-cases"> |
| 956 |
<span id="logical-table-remove-unremovable-cases"></span><h3><span class="section-number">7.3.40.3.3. </span>Unremovable cases<a class="headerlink" href="#unremovable-cases" title="Link to this heading">#</a></h3> |
| 957 |
<p>There are some unremovable cases. See |
| 958 |
<a class="reference internal" href="table_remove.html#table-remove-unremovable-cases"><span class="std std-ref">Unremovable cases</span></a> for details. Because |
| 959 |
<code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> uses the same checks.</p> |
| 960 |
</section> |
| 961 |
<section id="removes-with-related-tables"> |
| 962 |
<span id="logical-table-remove-removes-with-related-tables"></span><h3><span class="section-number">7.3.40.3.4. </span>Removes with related tables<a class="headerlink" href="#removes-with-related-tables" title="Link to this heading">#</a></h3> |
| 963 |
<div class="versionadded"> |
| 964 |
<p><span class="versionmodified added">Added in version 6.0.1.</span></p> |
| 965 |
</div> |
| 966 |
<p>If you understand what you’ll do, you can also remove tables and |
| 967 |
columns that depend on the target shard with one |
| 968 |
<code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> command by using <code class="docutils literal notranslate"><span class="pre">--dependent</span> <span class="pre">yes</span></code> |
| 969 |
parameter.</p> |
| 970 |
<p>Here are conditions for dependent. If table or column satisfies one of |
| 971 |
the conditions, the table or column depends on the target shard:</p> |
| 972 |
<blockquote> |
| 973 |
<div><ul class="simple"> |
| 974 |
<li><p>Tables and columns that reference the target shard</p></li> |
| 975 |
<li><p>Tables for the shard (= The table has the same <code class="docutils literal notranslate"><span class="pre">_YYYYMMDD</span></code> |
| 976 |
postfix as the target shard and is referenced from the target |
| 977 |
shard)</p></li> |
| 978 |
</ul> |
| 979 |
</div></blockquote> |
| 980 |
<p>If there are one or more tables and columns that reference the target |
| 981 |
shard, <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> is failed. It’s for avoiding dangling |
| 982 |
references.</p> |
| 983 |
<p><code class="docutils literal notranslate"><span class="pre">Bookmarks.log_20160320</span></code> column in the following is the column that |
| 984 |
references the target shard:</p> |
| 985 |
<p>Execution example:</p> |
| 986 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">table_create</span> <span class="n">Logs_20160320</span> <span class="n">TABLE_NO_KEY</span> |
| 987 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 988 |
<span class="n">column_create</span> <span class="n">Logs_20160320</span> <span class="n">timestamp</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Time</span> |
| 989 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 990 |
<span class="n">table_create</span> <span class="n">Bookmarks</span> <span class="n">TABLE_HASH_KEY</span> <span class="n">ShortText</span> |
| 991 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 992 |
<span class="n">column_create</span> <span class="n">Bookmarks</span> <span class="n">log_20160320</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Logs_20160320</span> |
| 993 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 994 |
</pre></div> |
| 995 |
</div> |
| 996 |
<p>You can’t remove <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> by <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> by |
| 997 |
default:</p> |
| 998 |
<p>Execution example:</p> |
| 999 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_table_remove</span> \ |
| 1000 |
<span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> \ |
| 1001 |
<span class="o">--</span><span class="n">shard_key</span> <span class="n">timestamp</span> |
| 1002 |
<span class="c1"># [</span> |
| 1003 |
<span class="c1"># [</span> |
| 1004 |
<span class="c1"># -2,</span> |
| 1005 |
<span class="c1"># 1337566253.89858,</span> |
| 1006 |
<span class="c1"># 0.000355720520019531,</span> |
| 1007 |
<span class="c1"># "operation not permitted: <[table][remove] a column that references the table exists: <Bookmarks.log_20160320> -> <Logs_20160320",</span> |
| 1008 |
<span class="c1"># [</span> |
| 1009 |
<span class="c1"># [</span> |
| 1010 |
<span class="c1"># "remove",</span> |
| 1011 |
<span class="c1"># "lib/groonga/plugins/sharding/logical_table_remove.rb",</span> |
| 1012 |
<span class="c1"># 2929</span> |
| 1013 |
<span class="c1"># ]</span> |
| 1014 |
<span class="c1"># ]</span> |
| 1015 |
<span class="c1"># ]</span> |
| 1016 |
<span class="c1"># ]</span> |
| 1017 |
</pre></div> |
| 1018 |
</div> |
| 1019 |
<p>You can remove <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> by <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> with |
| 1020 |
<code class="docutils literal notranslate"><span class="pre">--dependent</span> <span class="pre">yes</span></code> parameter. <code class="docutils literal notranslate"><span class="pre">Bookmarks.log_20160320</span></code> is also |
| 1021 |
removed:</p> |
| 1022 |
<p>Execution example:</p> |
| 1023 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_table_remove</span> \ |
| 1024 |
<span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> \ |
| 1025 |
<span class="o">--</span><span class="n">shard_key</span> <span class="n">timestamp</span> \ |
| 1026 |
<span class="o">--</span><span class="n">dependent</span> <span class="n">yes</span> |
| 1027 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1028 |
</pre></div> |
| 1029 |
</div> |
| 1030 |
<p><a class="reference internal" href="object_exist.html"><span class="doc">object_exist</span></a> shows that <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> table and |
| 1031 |
<code class="docutils literal notranslate"><span class="pre">Bookmarks.log_20160320</span></code> column are removed:</p> |
| 1032 |
<p>Execution example:</p> |
| 1033 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">object_exist</span> <span class="n">Logs_20160320</span> |
| 1034 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],false]</span> |
| 1035 |
<span class="n">object_exist</span> <span class="n">Bookmarks</span><span class="o">.</span><span class="n">log_20160320</span> |
| 1036 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],false]</span> |
| 1037 |
</pre></div> |
| 1038 |
</div> |
| 1039 |
<p>If there is one or more tables for the target shard, |
| 1040 |
<code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> with <code class="docutils literal notranslate"><span class="pre">--dependent</span> <span class="pre">yes</span></code> also removes |
| 1041 |
them. Tables that have the same <code class="docutils literal notranslate"><span class="pre">_YYYYMMDD</span></code> postfix as the target |
| 1042 |
shard are treated as tables for the target shard.</p> |
| 1043 |
<p>Here are two tables that have <code class="docutils literal notranslate"><span class="pre">_20160320</span></code> |
| 1044 |
postfix. <code class="docutils literal notranslate"><span class="pre">NotRelated_20160320</span></code> table isn’t used by <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> |
| 1045 |
table. <code class="docutils literal notranslate"><span class="pre">Users_20160320</span></code> table is used by <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> |
| 1046 |
table. <code class="docutils literal notranslate"><span class="pre">Servers</span></code> table exists and used by <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> table:</p> |
| 1047 |
<p>Execution example:</p> |
| 1048 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">table_create</span> <span class="n">NotRelated_20160320</span> <span class="n">TABLE_PAT_KEY</span> <span class="n">ShortText</span> |
| 1049 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1050 |
<span class="n">table_create</span> <span class="n">Users_20160320</span> <span class="n">TABLE_PAT_KEY</span> <span class="n">ShortText</span> |
| 1051 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1052 |
<span class="n">table_create</span> <span class="n">Servers</span> <span class="n">TABLE_PAT_KEY</span> <span class="n">ShortText</span> |
| 1053 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1054 |
<span class="n">table_create</span> <span class="n">Logs_20160320</span> <span class="n">TABLE_NO_KEY</span> |
| 1055 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1056 |
<span class="n">column_create</span> <span class="n">Logs_20160320</span> <span class="n">timestamp</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Time</span> |
| 1057 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1058 |
<span class="n">column_create</span> <span class="n">Logs_20160320</span> <span class="n">user</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Users_20160320</span> |
| 1059 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1060 |
<span class="n">column_create</span> <span class="n">Logs_20160320</span> <span class="n">server</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Servers</span> |
| 1061 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1062 |
</pre></div> |
| 1063 |
</div> |
| 1064 |
<p><code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> with <code class="docutils literal notranslate"><span class="pre">--dependent</span> <span class="pre">yes</span></code> parameter removes |
| 1065 |
only <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> table and <code class="docutils literal notranslate"><span class="pre">Users_20160320</span></code> table. Because |
| 1066 |
<code class="docutils literal notranslate"><span class="pre">Users_20160320</span></code> table has <code class="docutils literal notranslate"><span class="pre">_20160320</span></code> postfix and used by |
| 1067 |
<code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code>. <code class="docutils literal notranslate"><span class="pre">NotRelated_20160320</span></code> table and <code class="docutils literal notranslate"><span class="pre">Servers</span></code> table |
| 1068 |
aren’t removed. Because <code class="docutils literal notranslate"><span class="pre">NotRelated_20160320</span></code> table has |
| 1069 |
<code class="docutils literal notranslate"><span class="pre">_20160320</span></code> postfix but isn’t used by <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code>. <code class="docutils literal notranslate"><span class="pre">Servers</span></code> |
| 1070 |
table is used by <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> but doesn’t have <code class="docutils literal notranslate"><span class="pre">_20160320</span></code> |
| 1071 |
postfix:</p> |
| 1072 |
<p>Execution example:</p> |
| 1073 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_table_remove</span> \ |
| 1074 |
<span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> \ |
| 1075 |
<span class="o">--</span><span class="n">shard_key</span> <span class="n">timestamp</span> \ |
| 1076 |
<span class="o">--</span><span class="n">dependent</span> <span class="n">yes</span> |
| 1077 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1078 |
</pre></div> |
| 1079 |
</div> |
| 1080 |
<p>You can confirm that <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> table and <code class="docutils literal notranslate"><span class="pre">Users_20160320</span></code> |
| 1081 |
table are removed but <code class="docutils literal notranslate"><span class="pre">NotRelated_20160320</span></code> table and <code class="docutils literal notranslate"><span class="pre">Servers</span></code> |
| 1082 |
table aren’t removed:</p> |
| 1083 |
<p>Execution example:</p> |
| 1084 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">object_exist</span> <span class="n">Logs_20160320</span> |
| 1085 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],false]</span> |
| 1086 |
<span class="n">object_exist</span> <span class="n">Users_20160320</span> |
| 1087 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],false]</span> |
| 1088 |
<span class="n">object_exist</span> <span class="n">NotRelated_20160320</span> |
| 1089 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1090 |
<span class="n">object_exist</span> <span class="n">Servers</span> |
| 1091 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1092 |
</pre></div> |
| 1093 |
</div> |
| 1094 |
</section> |
| 1095 |
<section id="removes-broken-tables-as-much-as-possible"> |
| 1096 |
<span id="logical-table-remove-removes-broken-tables-as-much-as-possible"></span><h3><span class="section-number">7.3.40.3.5. </span>Removes broken tables as much as possible<a class="headerlink" href="#removes-broken-tables-as-much-as-possible" title="Link to this heading">#</a></h3> |
| 1097 |
<div class="versionadded"> |
| 1098 |
<p><span class="versionmodified added">Added in version 6.0.9.</span></p> |
| 1099 |
</div> |
| 1100 |
<p>If the target tables are broken, you can’t remove them. But you can |
| 1101 |
remove them as much as possible by using <code class="docutils literal notranslate"><span class="pre">force</span></code> parameter.</p> |
| 1102 |
<p>If you specify <code class="docutils literal notranslate"><span class="pre">--force</span> <span class="pre">yes</span></code>, they are removed as much as |
| 1103 |
possible. You can also use <code class="docutils literal notranslate"><span class="pre">--dependent</span> <span class="pre">yes</span></code> with <code class="docutils literal notranslate"><span class="pre">--force</span> <span class="pre">yes</span></code>.</p> |
| 1104 |
<p>Here is a sample schema to show how <code class="docutils literal notranslate"><span class="pre">--force</span> <span class="pre">yes</span></code> behavior:</p> |
| 1105 |
<p>Execution example:</p> |
| 1106 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">table_create</span> <span class="n">Logs_20160320</span> <span class="n">TABLE_NO_KEY</span> |
| 1107 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1108 |
<span class="n">column_create</span> <span class="n">Logs_20160320</span> <span class="n">timestamp</span> <span class="n">COLUMN_SCALAR</span> <span class="n">Time</span> |
| 1109 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1110 |
<span class="n">table_create</span> <span class="n">Timestamps</span> <span class="n">TABLE_PAT_KEY</span> <span class="n">Time</span> |
| 1111 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1112 |
<span class="n">column_create</span> <span class="n">Timestamps</span> <span class="n">logs_20160320_timestamp</span> \ |
| 1113 |
<span class="n">COLUMN_INDEX</span> <span class="n">Logs_20160320</span> <span class="n">timestamp</span> |
| 1114 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1115 |
</pre></div> |
| 1116 |
</div> |
| 1117 |
<p>You can’t remove <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> when |
| 1118 |
<code class="docutils literal notranslate"><span class="pre">Timestamps.logs_20160320_timestamp</span></code> is broken:</p> |
| 1119 |
<p>Execution example:</p> |
| 1120 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_table_remove</span> \ |
| 1121 |
<span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> \ |
| 1122 |
<span class="o">--</span><span class="n">shard_key</span> <span class="n">timestamp</span> |
| 1123 |
<span class="c1"># [</span> |
| 1124 |
<span class="c1"># [</span> |
| 1125 |
<span class="c1"># -55,</span> |
| 1126 |
<span class="c1"># 1337566253.89858,</span> |
| 1127 |
<span class="c1"># 0.000355720520019531,</span> |
| 1128 |
<span class="c1"># "object corrupt: <[object][remove][index][Logs_20160320.timestamp][set] hook has a dangling reference: <Timestamps.logs_20160320",</span> |
| 1129 |
<span class="c1"># [</span> |
| 1130 |
<span class="c1"># [</span> |
| 1131 |
<span class="c1"># "remove",</span> |
| 1132 |
<span class="c1"># "lib/groonga/plugins/sharding/logical_table_remove.rb",</span> |
| 1133 |
<span class="c1"># 2929</span> |
| 1134 |
<span class="c1"># ]</span> |
| 1135 |
<span class="c1"># ]</span> |
| 1136 |
<span class="c1"># ]</span> |
| 1137 |
<span class="c1"># ]</span> |
| 1138 |
</pre></div> |
| 1139 |
</div> |
| 1140 |
<p>You can remove <code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code> and its columns by using <code class="docutils literal notranslate"><span class="pre">--force</span> |
| 1141 |
<span class="pre">yes</span></code> parameter even when <code class="docutils literal notranslate"><span class="pre">Timestamps.logs_20160320_timestamp</span></code> is |
| 1142 |
broken:</p> |
| 1143 |
<p>Execution example:</p> |
| 1144 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">logical_table_remove</span> \ |
| 1145 |
<span class="o">--</span><span class="n">logical_table</span> <span class="n">Logs</span> \ |
| 1146 |
<span class="o">--</span><span class="n">shard_key</span> <span class="n">timestamp</span> \ |
| 1147 |
<span class="o">--</span><span class="n">force</span> <span class="n">yes</span> |
| 1148 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],true]</span> |
| 1149 |
</pre></div> |
| 1150 |
</div> |
| 1151 |
<p><code class="docutils literal notranslate"><span class="pre">Logs_20160320</span></code>, its columns and |
| 1152 |
<code class="docutils literal notranslate"><span class="pre">Timestamps.logs_20160320_timestamp</span></code> are removed:</p> |
| 1153 |
<p>Execution example:</p> |
| 1154 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">object_exist</span> <span class="n">Logs_20160320</span> |
| 1155 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],false]</span> |
| 1156 |
<span class="n">object_exist</span> <span class="n">Logs_20160320</span><span class="o">.</span><span class="n">timestamp</span> |
| 1157 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],false]</span> |
| 1158 |
<span class="n">object_exist</span> <span class="n">Timestamps</span><span class="o">.</span><span class="n">logs_20160320_timestamp</span> |
| 1159 |
<span class="c1"># [[0,1337566253.89858,0.000355720520019531],false]</span> |
| 1160 |
</pre></div> |
| 1161 |
</div> |
| 1162 |
<p><code class="docutils literal notranslate"><span class="pre">--force</span> <span class="pre">yes</span></code> parameter is a dangerous parameter. Normally, you |
| 1163 |
don’t need to use it.</p> |
| 1164 |
</section> |
| 1165 |
<section id="decreases-used-resources"> |
| 1166 |
<span id="logical-table-remove-decreases-used-resources"></span><h3><span class="section-number">7.3.40.3.6. </span>Decreases used resources<a class="headerlink" href="#decreases-used-resources" title="Link to this heading">#</a></h3> |
| 1167 |
<p>You can decrease resources for this command. See |
| 1168 |
<a class="reference internal" href="table_remove.html#table-remove-decreases-used-resources"><span class="std std-ref">Decreases used resources</span></a> for details. Because |
| 1169 |
<code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code> uses the same logic as <a class="reference internal" href="table_remove.html"><span class="doc">table_remove</span></a>.</p> |
| 1170 |
</section> |
| 1171 |
</section> |
| 1172 |
<section id="parameters"> |
| 1173 |
<h2><span class="section-number">7.3.40.4. </span>Parameters<a class="headerlink" href="#parameters" title="Link to this heading">#</a></h2> |
| 1174 |
<p>This section describes parameters of <code class="docutils literal notranslate"><span class="pre">logical_table_remove</span></code>.</p> |
| 1175 |
<section id="required-parameters"> |
| 1176 |
<h3><span class="section-number">7.3.40.4.1. </span>Required parameters<a class="headerlink" href="#required-parameters" title="Link to this heading">#</a></h3> |
| 1177 |
<p>There are required parameters.</p> |
| 1178 |
<section id="logical-table"> |
| 1179 |
<span id="logical-table-remove-logical-table"></span><h4><span class="section-number">7.3.40.4.1.1. </span><code class="docutils literal notranslate"><span class="pre">logical_table</span></code><a class="headerlink" href="#logical-table" title="Link to this heading">#</a></h4> |
| 1180 |
<p>Specifies logical table name. It means table name without |
| 1181 |
<code class="docutils literal notranslate"><span class="pre">_YYYYMMDD</span></code> postfix. If you use actual table such as |
| 1182 |
<code class="docutils literal notranslate"><span class="pre">Logs_20150203</span></code>, <code class="docutils literal notranslate"><span class="pre">Logs_20150203</span></code> and so on, logical table name is |
| 1183 |
<code class="docutils literal notranslate"><span class="pre">Logs</span></code>.</p> |
| 1184 |
<p>See also <a class="reference internal" href="logical_select.html#logical-select-logical-table"><span class="std std-ref">logical_table</span></a>.</p> |
| 1185 |
</section> |
| 1186 |
<section id="shard-key"> |
| 1187 |
<span id="logical-table-remove-shard-key"></span><h4><span class="section-number">7.3.40.4.1.2. </span><code class="docutils literal notranslate"><span class="pre">shard_key</span></code><a class="headerlink" href="#shard-key" title="Link to this heading">#</a></h4> |
| 1188 |
<p>Specifies column name which is treated as shared key.</p> |
| 1189 |
<p>See also <a class="reference internal" href="logical_select.html#logical-select-shard-key"><span class="std std-ref">shard_key</span></a>.</p> |
| 1190 |
</section> |
| 1191 |
</section> |
| 1192 |
<section id="optional-parameters"> |
| 1193 |
<h3><span class="section-number">7.3.40.4.2. </span>Optional parameters<a class="headerlink" href="#optional-parameters" title="Link to this heading">#</a></h3> |
| 1194 |
<p>There are optional parameters.</p> |
| 1195 |
<section id="min"> |
| 1196 |
<span id="logical-table-remove-min"></span><h4><span class="section-number">7.3.40.4.2.1. </span><code class="docutils literal notranslate"><span class="pre">min</span></code><a class="headerlink" href="#min" title="Link to this heading">#</a></h4> |
| 1197 |
<p>Specifies the minimum value of <code class="docutils literal notranslate"><span class="pre">shard_key</span></code> column.</p> |
| 1198 |
<p>See also <a class="reference internal" href="logical_select.html#logical-select-min"><span class="std std-ref">min</span></a>.</p> |
| 1199 |
</section> |
| 1200 |
<section id="min-border"> |
| 1201 |
<span id="logical-table-remove-min-border"></span><h4><span class="section-number">7.3.40.4.2.2. </span><code class="docutils literal notranslate"><span class="pre">min_border</span></code><a class="headerlink" href="#min-border" title="Link to this heading">#</a></h4> |
| 1202 |
<p>Specifies whether the minimum value is included or not. <code class="docutils literal notranslate"><span class="pre">include</span></code> |
| 1203 |
and <code class="docutils literal notranslate"><span class="pre">exclude</span></code> are available. The default is <code class="docutils literal notranslate"><span class="pre">include</span></code>.</p> |
| 1204 |
<p>See also <a class="reference internal" href="logical_select.html#logical-select-min-border"><span class="std std-ref">min_border</span></a>.</p> |
| 1205 |
</section> |
| 1206 |
<section id="max"> |
| 1207 |
<span id="logical-table-remove-max"></span><h4><span class="section-number">7.3.40.4.2.3. </span><code class="docutils literal notranslate"><span class="pre">max</span></code><a class="headerlink" href="#max" title="Link to this heading">#</a></h4> |
| 1208 |
<p>Specifies the maximum value of <code class="docutils literal notranslate"><span class="pre">shard_key</span></code> column.</p> |
| 1209 |
<p>See also <a class="reference internal" href="logical_select.html#logical-select-max"><span class="std std-ref">max</span></a>.</p> |
| 1210 |
</section> |
| 1211 |
<section id="max-border"> |
| 1212 |
<span id="logical-table-remove-max-border"></span><h4><span class="section-number">7.3.40.4.2.4. </span><code class="docutils literal notranslate"><span class="pre">max_border</span></code><a class="headerlink" href="#max-border" title="Link to this heading">#</a></h4> |
| 1213 |
<p>Specifies whether the maximum value is included or not. <code class="docutils literal notranslate"><span class="pre">include</span></code> |
| 1214 |
and <code class="docutils literal notranslate"><span class="pre">exclude</span></code> are available. The default is <code class="docutils literal notranslate"><span class="pre">include</span></code>.</p> |
| 1215 |
<p>See also <a class="reference internal" href="logical_select.html#logical-select-max-border"><span class="std std-ref">max_border</span></a>.</p> |
| 1216 |
</section> |
| 1217 |
<section id="dependent"> |
| 1218 |
<span id="logical-table-remove-dependent"></span><h4><span class="section-number">7.3.40.4.2.5. </span><code class="docutils literal notranslate"><span class="pre">dependent</span></code><a class="headerlink" href="#dependent" title="Link to this heading">#</a></h4> |
| 1219 |
<div class="versionadded"> |
| 1220 |
<p><span class="versionmodified added">Added in version 6.0.1.</span></p> |
| 1221 |
</div> |
| 1222 |
<p>Specifies whether tables and columns that depend on the target shard |
| 1223 |
are also removed or not.</p> |
| 1224 |
<p>Here are conditions for dependent. If table or column satisfies one of |
| 1225 |
the conditions, the table or column depends on the target shard:</p> |
| 1226 |
<blockquote> |
| 1227 |
<div><ul class="simple"> |
| 1228 |
<li><p>Tables and columns that reference the target shard</p></li> |
| 1229 |
<li><p>Tables for the shard (= The table has the same <code class="docutils literal notranslate"><span class="pre">_YYYYMMDD</span></code> |
| 1230 |
postfix as the target shard and is referenced from the target |
| 1231 |
shard)</p></li> |
| 1232 |
</ul> |
| 1233 |
</div></blockquote> |
| 1234 |
<p>If this value is <code class="docutils literal notranslate"><span class="pre">yes</span></code>, tables and columns that depend on the target |
| 1235 |
shard are also removed. Otherwise, they aren’t removed. If there are |
| 1236 |
one or more tables that reference the target shard, an error is |
| 1237 |
returned. If there are tables for the shared, they are not touched.</p> |
| 1238 |
<p>You should use this parameter carefully. This is a danger parameter.</p> |
| 1239 |
<p>See <a class="reference internal" href="#logical-table-remove-removes-with-related-tables"><span class="std std-ref">Removes with related tables</span></a> how to use |
| 1240 |
this parameter.</p> |
| 1241 |
</section> |
| 1242 |
<section id="force"> |
| 1243 |
<span id="logical-table-remove-force"></span><h4><span class="section-number">7.3.40.4.2.6. </span><code class="docutils literal notranslate"><span class="pre">force</span></code><a class="headerlink" href="#force" title="Link to this heading">#</a></h4> |
| 1244 |
<div class="versionadded"> |
| 1245 |
<p><span class="versionmodified added">Added in version 6.0.9.</span></p> |
| 1246 |
</div> |
| 1247 |
<p>Specifies whether you want to remove target tables and columns even if |
| 1248 |
some problems exist.</p> |
| 1249 |
<p>You should use this parameter carefully. This is a danger parameter.</p> |
| 1250 |
<p>See |
| 1251 |
<a class="reference internal" href="#logical-table-remove-removes-broken-tables-as-much-as-possible"><span class="std std-ref">Removes broken tables as much as possible</span></a> |
| 1252 |
how to use this parameter.</p> |
| 1253 |
</section> |
| 1254 |
</section> |
| 1255 |
</section> |
| 1256 |
<section id="return-value"> |
| 1257 |
<h2><span class="section-number">7.3.40.5. </span>Return value<a class="headerlink" href="#return-value" title="Link to this heading">#</a></h2> |
| 1258 |
<p>The command returns <code class="docutils literal notranslate"><span class="pre">true</span></code> as body on success such as:</p> |
| 1259 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">HEADER</span><span class="p">,</span> <span class="n">true</span><span class="p">]</span> |
| 1260 |
</pre></div> |
| 1261 |
</div> |
| 1262 |
<p>If the command fails, error details are in <code class="docutils literal notranslate"><span class="pre">HEADER</span></code>.</p> |
| 1263 |
<p>See <a class="reference internal" href="../command/output_format.html"><span class="doc">Output format</span></a> for <code class="docutils literal notranslate"><span class="pre">HEADER</span></code>.</p> |
| 1264 |
</section> |
| 1265 |
</section> |
| 1266 |
|
| 1267 |
|
| 1268 |
</article> |
| 1269 |
|
| 1270 |
|
| 1271 |
|
| 1272 |
|
| 1273 |
|
| 1274 |
<footer class="prev-next-footer d-print-none"> |
| 1275 |
|
| 1276 |
<div class="prev-next-area"> |
| 1277 |
<a class="left-prev" |
| 1278 |
href="logical_shard_list.html" |
| 1279 |
title="previous page"> |
| 1280 |
<i class="fa-solid fa-angle-left"></i> |
| 1281 |
<div class="prev-next-info"> |
| 1282 |
<p class="prev-next-subtitle">previous</p> |
| 1283 |
<p class="prev-next-title"><span class="section-number">7.3.39. </span><code class="docutils literal notranslate"><span class="pre">logical_shard_list</span></code></p> |
| 1284 |
</div> |
| 1285 |
</a> |
| 1286 |
<a class="right-next" |
| 1287 |
href="normalize.html" |
| 1288 |
title="next page"> |
| 1289 |
<div class="prev-next-info"> |
| 1290 |
<p class="prev-next-subtitle">next</p> |
| 1291 |
<p class="prev-next-title"><span class="section-number">7.3.41. </span><code class="docutils literal notranslate"><span class="pre">normalize</span></code></p> |
| 1292 |
</div> |
| 1293 |
<i class="fa-solid fa-angle-right"></i> |
| 1294 |
</a> |
| 1295 |
</div> |
| 1296 |
</footer> |
| 1297 |
|
| 1298 |
</div> |
| 1299 |
|
| 1300 |
|
| 1301 |
|
| 1302 |
<dialog id="pst-secondary-sidebar-modal"></dialog> |
| 1303 |
<div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner"> |
| 1304 |
|
| 1305 |
|
| 1306 |
<div class="sidebar-secondary-item"> |
| 1307 |
<div |
| 1308 |
id="pst-page-navigation-heading-2" |
| 1309 |
class="page-toc tocsection onthispage"> |
| 1310 |
<i class="fa-solid fa-list"></i> On this page |
| 1311 |
</div> |
| 1312 |
<nav id="pst-page-toc-nav" class="page-toc" aria-labelledby="pst-page-navigation-heading-2"> |
| 1313 |
<ul class="pst-show_toc_level nav section-nav flex-column"> |
| 1314 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#summary">7.3.40.1. Summary</a></li> |
| 1315 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#syntax">7.3.40.2. Syntax</a></li> |
| 1316 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#usage">7.3.40.3. Usage</a><ul class="nav section-nav flex-column"> |
| 1317 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#basic-usage">7.3.40.3.1. Basic usage</a></li> |
| 1318 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#removes-parts-of-a-logical-table">7.3.40.3.2. Removes parts of a logical table</a></li> |
| 1319 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#unremovable-cases">7.3.40.3.3. Unremovable cases</a></li> |
| 1320 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#removes-with-related-tables">7.3.40.3.4. Removes with related tables</a></li> |
| 1321 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#removes-broken-tables-as-much-as-possible">7.3.40.3.5. Removes broken tables as much as possible</a></li> |
| 1322 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#decreases-used-resources">7.3.40.3.6. Decreases used resources</a></li> |
| 1323 |
</ul> |
| 1324 |
</li> |
| 1325 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#parameters">7.3.40.4. Parameters</a><ul class="nav section-nav flex-column"> |
| 1326 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#required-parameters">7.3.40.4.1. Required parameters</a><ul class="nav section-nav flex-column"> |
| 1327 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#logical-table">7.3.40.4.1.1. <code class="docutils literal notranslate"><span class="pre">logical_table</span></code></a></li> |
| 1328 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#shard-key">7.3.40.4.1.2. <code class="docutils literal notranslate"><span class="pre">shard_key</span></code></a></li> |
| 1329 |
</ul> |
| 1330 |
</li> |
| 1331 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#optional-parameters">7.3.40.4.2. Optional parameters</a><ul class="nav section-nav flex-column"> |
| 1332 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#min">7.3.40.4.2.1. <code class="docutils literal notranslate"><span class="pre">min</span></code></a></li> |
| 1333 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#min-border">7.3.40.4.2.2. <code class="docutils literal notranslate"><span class="pre">min_border</span></code></a></li> |
| 1334 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#max">7.3.40.4.2.3. <code class="docutils literal notranslate"><span class="pre">max</span></code></a></li> |
| 1335 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#max-border">7.3.40.4.2.4. <code class="docutils literal notranslate"><span class="pre">max_border</span></code></a></li> |
| 1336 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#dependent">7.3.40.4.2.5. <code class="docutils literal notranslate"><span class="pre">dependent</span></code></a></li> |
| 1337 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#force">7.3.40.4.2.6. <code class="docutils literal notranslate"><span class="pre">force</span></code></a></li> |
| 1338 |
</ul> |
| 1339 |
</li> |
| 1340 |
</ul> |
| 1341 |
</li> |
| 1342 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#return-value">7.3.40.5. Return value</a></li> |
| 1343 |
</ul> |
| 1344 |
</nav></div> |
| 1345 |
|
| 1346 |
<div class="sidebar-secondary-item"> |
| 1347 |
|
| 1348 |
|
| 1349 |
<div class="tocsection editthispage"> |
| 1350 |
<a href="https://github.com/groonga/groonga/edit/main/doc/source/reference/commands/logical_table_remove.rst"> |
| 1351 |
<i class="fa-solid fa-pencil"></i> |
| 1352 |
|
| 1353 |
|
| 1354 |
|
| 1355 |
Edit on GitHub |
| 1356 |
|
| 1357 |
|
| 1358 |
</a> |
| 1359 |
</div> |
| 1360 |
</div> |
| 1361 |
|
| 1362 |
</div></div> |
| 1363 |
|
| 1364 |
|
| 1365 |
</div> |
| 1366 |
<footer class="bd-footer-content"> |
| 1367 |
|
| 1368 |
</footer> |
| 1369 |
|
| 1370 |
</main> |
| 1371 |
</div> |
| 1372 |
</div> |
| 1373 |
|
| 1374 |
|
| 1375 |
<script defer src="../../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9"></script> |
| 1376 |
<script defer src="../../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9"></script> |
| 1377 |
|
| 1378 |
<footer class="bd-footer"> |
| 1379 |
<div class="bd-footer__inner bd-page-width"> |
| 1380 |
|
| 1381 |
<div class="footer-items__start"> |
| 1382 |
|
| 1383 |
<div class="footer-item"> |
| 1384 |
|
| 1385 |
<p class="copyright"> |
| 1386 |
|
| 1387 |
© Copyright 2009-2026 Groonga Project. |
| 1388 |
<br/> |
| 1389 |
|
| 1390 |
</p> |
| 1391 |
</div> |
| 1392 |
|
| 1393 |
</div> |
| 1394 |
|
| 1395 |
|
| 1396 |
|
| 1397 |
<div class="footer-items__end"> |
| 1398 |
|
| 1399 |
<div class="footer-item"> |
| 1400 |
<p class="theme-version"> |
| 1401 |
|
| 1402 |
Built with the <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">PyData Sphinx Theme</a> 0.20.0. |
| 1403 |
</p></div> |
| 1404 |
|
| 1405 |
</div> |
| 1406 |
|
| 1407 |
</div> |
| 1408 |
|
| 1409 |
</footer> |
| 1410 |
</body> |
| 1411 |
</html> |