2221 lines
No EOL
367 KiB
HTML
2221 lines
No EOL
367 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="generator" content="pdoc 15.0.1"/>
|
|
<title>sqlglot.dialects.databricks API documentation</title>
|
|
|
|
<style>/*! * Bootstrap Reboot v5.0.0 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors * Copyright 2011-2021 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) */*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}</style>
|
|
<style>/*! syntax-highlighting.css */pre{line-height:125%;}span.linenos{color:inherit; background-color:transparent; padding-left:5px; padding-right:20px;}.pdoc-code .hll{background-color:#ffffcc}.pdoc-code{background:#f8f8f8;}.pdoc-code .c{color:#3D7B7B; font-style:italic}.pdoc-code .err{border:1px solid #FF0000}.pdoc-code .k{color:#008000; font-weight:bold}.pdoc-code .o{color:#666666}.pdoc-code .ch{color:#3D7B7B; font-style:italic}.pdoc-code .cm{color:#3D7B7B; font-style:italic}.pdoc-code .cp{color:#9C6500}.pdoc-code .cpf{color:#3D7B7B; font-style:italic}.pdoc-code .c1{color:#3D7B7B; font-style:italic}.pdoc-code .cs{color:#3D7B7B; font-style:italic}.pdoc-code .gd{color:#A00000}.pdoc-code .ge{font-style:italic}.pdoc-code .gr{color:#E40000}.pdoc-code .gh{color:#000080; font-weight:bold}.pdoc-code .gi{color:#008400}.pdoc-code .go{color:#717171}.pdoc-code .gp{color:#000080; font-weight:bold}.pdoc-code .gs{font-weight:bold}.pdoc-code .gu{color:#800080; font-weight:bold}.pdoc-code .gt{color:#0044DD}.pdoc-code .kc{color:#008000; font-weight:bold}.pdoc-code .kd{color:#008000; font-weight:bold}.pdoc-code .kn{color:#008000; font-weight:bold}.pdoc-code .kp{color:#008000}.pdoc-code .kr{color:#008000; font-weight:bold}.pdoc-code .kt{color:#B00040}.pdoc-code .m{color:#666666}.pdoc-code .s{color:#BA2121}.pdoc-code .na{color:#687822}.pdoc-code .nb{color:#008000}.pdoc-code .nc{color:#0000FF; font-weight:bold}.pdoc-code .no{color:#880000}.pdoc-code .nd{color:#AA22FF}.pdoc-code .ni{color:#717171; font-weight:bold}.pdoc-code .ne{color:#CB3F38; font-weight:bold}.pdoc-code .nf{color:#0000FF}.pdoc-code .nl{color:#767600}.pdoc-code .nn{color:#0000FF; font-weight:bold}.pdoc-code .nt{color:#008000; font-weight:bold}.pdoc-code .nv{color:#19177C}.pdoc-code .ow{color:#AA22FF; font-weight:bold}.pdoc-code .w{color:#bbbbbb}.pdoc-code .mb{color:#666666}.pdoc-code .mf{color:#666666}.pdoc-code .mh{color:#666666}.pdoc-code .mi{color:#666666}.pdoc-code .mo{color:#666666}.pdoc-code .sa{color:#BA2121}.pdoc-code .sb{color:#BA2121}.pdoc-code .sc{color:#BA2121}.pdoc-code .dl{color:#BA2121}.pdoc-code .sd{color:#BA2121; font-style:italic}.pdoc-code .s2{color:#BA2121}.pdoc-code .se{color:#AA5D1F; font-weight:bold}.pdoc-code .sh{color:#BA2121}.pdoc-code .si{color:#A45A77; font-weight:bold}.pdoc-code .sx{color:#008000}.pdoc-code .sr{color:#A45A77}.pdoc-code .s1{color:#BA2121}.pdoc-code .ss{color:#19177C}.pdoc-code .bp{color:#008000}.pdoc-code .fm{color:#0000FF}.pdoc-code .vc{color:#19177C}.pdoc-code .vg{color:#19177C}.pdoc-code .vi{color:#19177C}.pdoc-code .vm{color:#19177C}.pdoc-code .il{color:#666666}</style>
|
|
<style>/*! theme.css */:root{--pdoc-background:#fff;}.pdoc{--text:#212529;--muted:#6c757d;--link:#3660a5;--link-hover:#1659c5;--code:#f8f8f8;--active:#fff598;--accent:#eee;--accent2:#c1c1c1;--nav-hover:rgba(255, 255, 255, 0.5);--name:#0066BB;--def:#008800;--annotation:#007020;}</style>
|
|
<style>/*! layout.css */html, body{width:100%;height:100%;}html, main{scroll-behavior:smooth;}body{background-color:var(--pdoc-background);}@media (max-width:769px){#navtoggle{cursor:pointer;position:absolute;width:50px;height:40px;top:1rem;right:1rem;border-color:var(--text);color:var(--text);display:flex;opacity:0.8;z-index:999;}#navtoggle:hover{opacity:1;}#togglestate + div{display:none;}#togglestate:checked + div{display:inherit;}main, header{padding:2rem 3vw;}header + main{margin-top:-3rem;}.git-button{display:none !important;}nav input[type="search"]{max-width:77%;}nav input[type="search"]:first-child{margin-top:-6px;}nav input[type="search"]:valid ~ *{display:none !important;}}@media (min-width:770px){:root{--sidebar-width:clamp(12.5rem, 28vw, 22rem);}nav{position:fixed;overflow:auto;height:100vh;width:var(--sidebar-width);}main, header{padding:3rem 2rem 3rem calc(var(--sidebar-width) + 3rem);width:calc(54rem + var(--sidebar-width));max-width:100%;}header + main{margin-top:-4rem;}#navtoggle{display:none;}}#togglestate{position:absolute;height:0;opacity:0;}nav.pdoc{--pad:clamp(0.5rem, 2vw, 1.75rem);--indent:1.5rem;background-color:var(--accent);border-right:1px solid var(--accent2);box-shadow:0 0 20px rgba(50, 50, 50, .2) inset;padding:0 0 0 var(--pad);overflow-wrap:anywhere;scrollbar-width:thin; scrollbar-color:var(--accent2) transparent; z-index:1}nav.pdoc::-webkit-scrollbar{width:.4rem; }nav.pdoc::-webkit-scrollbar-thumb{background-color:var(--accent2); }nav.pdoc > div{padding:var(--pad) 0;}nav.pdoc .module-list-button{display:inline-flex;align-items:center;color:var(--text);border-color:var(--muted);margin-bottom:1rem;}nav.pdoc .module-list-button:hover{border-color:var(--text);}nav.pdoc input[type=search]{display:block;outline-offset:0;width:calc(100% - var(--pad));}nav.pdoc .logo{max-width:calc(100% - var(--pad));max-height:35vh;display:block;margin:0 auto 1rem;transform:translate(calc(-.5 * var(--pad)), 0);}nav.pdoc ul{list-style:none;padding-left:0;}nav.pdoc > div > ul{margin-left:calc(0px - var(--pad));}nav.pdoc li a{padding:.2rem 0 .2rem calc(var(--pad) + var(--indent));}nav.pdoc > div > ul > li > a{padding-left:var(--pad);}nav.pdoc li{transition:all 100ms;}nav.pdoc li:hover{background-color:var(--nav-hover);}nav.pdoc a, nav.pdoc a:hover{color:var(--text);}nav.pdoc a{display:block;}nav.pdoc > h2:first-of-type{margin-top:1.5rem;}nav.pdoc .class:before{content:"class ";color:var(--muted);}nav.pdoc .function:after{content:"()";color:var(--muted);}nav.pdoc footer:before{content:"";display:block;width:calc(100% - var(--pad));border-top:solid var(--accent2) 1px;margin-top:1.5rem;padding-top:.5rem;}nav.pdoc footer{font-size:small;}</style>
|
|
<style>/*! content.css */.pdoc{color:var(--text);box-sizing:border-box;line-height:1.5;background:none;}.pdoc .pdoc-button{cursor:pointer;display:inline-block;border:solid black 1px;border-radius:2px;font-size:.75rem;padding:calc(0.5em - 1px) 1em;transition:100ms all;}.pdoc .alert{padding:1rem 1rem 1rem calc(1.5rem + 24px);border:1px solid transparent;border-radius:.25rem;background-repeat:no-repeat;background-position:.75rem center;margin-bottom:1rem;}.pdoc .alert > em{display:none;}.pdoc .alert > *:last-child{margin-bottom:0;}.pdoc .alert.note {color:#084298;background-color:#cfe2ff;border-color:#b6d4fe;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23084298%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M8%2016A8%208%200%201%200%208%200a8%208%200%200%200%200%2016zm.93-9.412-1%204.705c-.07.34.029.533.304.533.194%200%20.487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703%200-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381%202.29-.287zM8%205.5a1%201%200%201%201%200-2%201%201%200%200%201%200%202z%22/%3E%3C/svg%3E");}.pdoc .alert.warning{color:#664d03;background-color:#fff3cd;border-color:#ffecb5;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23664d03%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M8.982%201.566a1.13%201.13%200%200%200-1.96%200L.165%2013.233c-.457.778.091%201.767.98%201.767h13.713c.889%200%201.438-.99.98-1.767L8.982%201.566zM8%205c.535%200%20.954.462.9.995l-.35%203.507a.552.552%200%200%201-1.1%200L7.1%205.995A.905.905%200%200%201%208%205zm.002%206a1%201%200%201%201%200%202%201%201%200%200%201%200-2z%22/%3E%3C/svg%3E");}.pdoc .alert.danger{color:#842029;background-color:#f8d7da;border-color:#f5c2c7;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23842029%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M5.52.359A.5.5%200%200%201%206%200h4a.5.5%200%200%201%20.474.658L8.694%206H12.5a.5.5%200%200%201%20.395.807l-7%209a.5.5%200%200%201-.873-.454L6.823%209.5H3.5a.5.5%200%200%201-.48-.641l2.5-8.5z%22/%3E%3C/svg%3E");}.pdoc .visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important;}.pdoc h1, .pdoc h2, .pdoc h3{font-weight:300;margin:.3em 0;padding:.2em 0;}.pdoc > section:not(.module-info) h1{font-size:1.5rem;font-weight:500;}.pdoc > section:not(.module-info) h2{font-size:1.4rem;font-weight:500;}.pdoc > section:not(.module-info) h3{font-size:1.3rem;font-weight:500;}.pdoc > section:not(.module-info) h4{font-size:1.2rem;}.pdoc > section:not(.module-info) h5{font-size:1.1rem;}.pdoc a{text-decoration:none;color:var(--link);}.pdoc a:hover{color:var(--link-hover);}.pdoc blockquote{margin-left:2rem;}.pdoc pre{border-top:1px solid var(--accent2);border-bottom:1px solid var(--accent2);margin-top:0;margin-bottom:1em;padding:.5rem 0 .5rem .5rem;overflow-x:auto;background-color:var(--code);}.pdoc code{color:var(--text);padding:.2em .4em;margin:0;font-size:85%;background-color:var(--accent);border-radius:6px;}.pdoc a > code{color:inherit;}.pdoc pre > code{display:inline-block;font-size:inherit;background:none;border:none;padding:0;}.pdoc > section:not(.module-info){margin-bottom:1.5rem;}.pdoc .modulename{margin-top:0;font-weight:bold;}.pdoc .modulename a{color:var(--link);transition:100ms all;}.pdoc .git-button{float:right;border:solid var(--link) 1px;}.pdoc .git-button:hover{background-color:var(--link);color:var(--pdoc-background);}.view-source-toggle-state,.view-source-toggle-state ~ .pdoc-code{display:none;}.view-source-toggle-state:checked ~ .pdoc-code{display:block;}.view-source-button{display:inline-block;float:right;font-size:.75rem;line-height:1.5rem;color:var(--muted);padding:0 .4rem 0 1.3rem;cursor:pointer;text-indent:-2px;}.view-source-button > span{visibility:hidden;}.module-info .view-source-button{float:none;display:flex;justify-content:flex-end;margin:-1.2rem .4rem -.2rem 0;}.view-source-button::before{position:absolute;content:"View Source";display:list-item;list-style-type:disclosure-closed;}.view-source-toggle-state:checked ~ .attr .view-source-button::before,.view-source-toggle-state:checked ~ .view-source-button::before{list-style-type:disclosure-open;}.pdoc .docstring{margin-bottom:1.5rem;}.pdoc section:not(.module-info) .docstring{margin-left:clamp(0rem, 5vw - 2rem, 1rem);}.pdoc .docstring .pdoc-code{margin-left:1em;margin-right:1em;}.pdoc h1:target,.pdoc h2:target,.pdoc h3:target,.pdoc h4:target,.pdoc h5:target,.pdoc h6:target,.pdoc .pdoc-code > pre > span:target{background-color:var(--active);box-shadow:-1rem 0 0 0 var(--active);}.pdoc .pdoc-code > pre > span:target{display:block;}.pdoc div:target > .attr,.pdoc section:target > .attr,.pdoc dd:target > a{background-color:var(--active);}.pdoc *{scroll-margin:2rem;}.pdoc .pdoc-code .linenos{user-select:none;}.pdoc .attr:hover{filter:contrast(0.95);}.pdoc section, .pdoc .classattr{position:relative;}.pdoc .headerlink{--width:clamp(1rem, 3vw, 2rem);position:absolute;top:0;left:calc(0rem - var(--width));transition:all 100ms ease-in-out;opacity:0;}.pdoc .headerlink::before{content:"#";display:block;text-align:center;width:var(--width);height:2.3rem;line-height:2.3rem;font-size:1.5rem;}.pdoc .attr:hover ~ .headerlink,.pdoc *:target > .headerlink,.pdoc .headerlink:hover{opacity:1;}.pdoc .attr{display:block;margin:.5rem 0 .5rem;padding:.4rem .4rem .4rem 1rem;background-color:var(--accent);overflow-x:auto;}.pdoc .classattr{margin-left:2rem;}.pdoc .decorator-deprecated{color:#842029;}.pdoc .decorator-deprecated ~ span{filter:grayscale(1) opacity(0.8);}.pdoc .name{color:var(--name);font-weight:bold;}.pdoc .def{color:var(--def);font-weight:bold;}.pdoc .signature{background-color:transparent;}.pdoc .param, .pdoc .return-annotation{white-space:pre;}.pdoc .signature.multiline .param{display:block;}.pdoc .signature.condensed .param{display:inline-block;}.pdoc .annotation{color:var(--annotation);}.pdoc .view-value-toggle-state,.pdoc .view-value-toggle-state ~ .default_value{display:none;}.pdoc .view-value-toggle-state:checked ~ .default_value{display:inherit;}.pdoc .view-value-button{font-size:.5rem;vertical-align:middle;border-style:dashed;margin-top:-0.1rem;}.pdoc .view-value-button:hover{background:white;}.pdoc .view-value-button::before{content:"show";text-align:center;width:2.2em;display:inline-block;}.pdoc .view-value-toggle-state:checked ~ .view-value-button::before{content:"hide";}.pdoc .inherited{margin-left:2rem;}.pdoc .inherited dt{font-weight:700;}.pdoc .inherited dt, .pdoc .inherited dd{display:inline;margin-left:0;margin-bottom:.5rem;}.pdoc .inherited dd:not(:last-child):after{content:", ";}.pdoc .inherited .class:before{content:"class ";}.pdoc .inherited .function a:after{content:"()";}.pdoc .search-result .docstring{overflow:auto;max-height:25vh;}.pdoc .search-result.focused > .attr{background-color:var(--active);}.pdoc .attribution{margin-top:2rem;display:block;opacity:0.5;transition:all 200ms;filter:grayscale(100%);}.pdoc .attribution:hover{opacity:1;filter:grayscale(0%);}.pdoc .attribution img{margin-left:5px;height:35px;vertical-align:middle;width:70px;transition:all 200ms;}.pdoc table{display:block;width:max-content;max-width:100%;overflow:auto;margin-bottom:1rem;}.pdoc table th{font-weight:600;}.pdoc table th, .pdoc table td{padding:6px 13px;border:1px solid var(--accent2);}</style>
|
|
<style>/*! custom.css */</style></head>
|
|
<body>
|
|
<nav class="pdoc">
|
|
<label id="navtoggle" for="togglestate" class="pdoc-button"><svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke-linecap='round' stroke="currentColor" stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg></label>
|
|
<input id="togglestate" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<div> <a class="pdoc-button module-list-button" href="../dialects.html">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-in-left" viewBox="0 0 16 16">
|
|
<path fill-rule="evenodd" d="M10 3.5a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 1 1 0v2A1.5 1.5 0 0 1 9.5 14h-8A1.5 1.5 0 0 1 0 12.5v-9A1.5 1.5 0 0 1 1.5 2h8A1.5 1.5 0 0 1 11 3.5v2a.5.5 0 0 1-1 0v-2z"/>
|
|
<path fill-rule="evenodd" d="M4.146 8.354a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H14.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3z"/>
|
|
</svg> sqlglot.dialects</a>
|
|
|
|
|
|
<input type="search" placeholder="Search..." role="searchbox" aria-label="search"
|
|
pattern=".+" required>
|
|
|
|
|
|
|
|
<h2>API Documentation</h2>
|
|
<ul class="memberlist">
|
|
<li>
|
|
<a class="class" href="#Databricks">Databricks</a>
|
|
<ul class="memberlist">
|
|
<li>
|
|
<a class="variable" href="#Databricks.SAFE_DIVISION">SAFE_DIVISION</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.COPY_PARAMS_ARE_CSV">COPY_PARAMS_ARE_CSV</a>
|
|
</li>
|
|
<li>
|
|
<a class="class" href="#Databricks.JSONPathTokenizer">Databricks.JSONPathTokenizer</a>
|
|
<ul class="memberlist">
|
|
<li>
|
|
<a class="variable" href="#Databricks.JSONPathTokenizer.IDENTIFIERS">IDENTIFIERS</a>
|
|
</li>
|
|
</ul>
|
|
|
|
</li>
|
|
<li>
|
|
<a class="class" href="#Databricks.Parser">Databricks.Parser</a>
|
|
<ul class="memberlist">
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.LOG_DEFAULTS_TO_LN">LOG_DEFAULTS_TO_LN</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.STRICT_CAST">STRICT_CAST</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.COLON_IS_VARIANT_EXTRACT">COLON_IS_VARIANT_EXTRACT</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.FUNCTIONS">FUNCTIONS</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.FACTOR">FACTOR</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.ID_VAR_TOKENS">ID_VAR_TOKENS</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.TABLE_ALIAS_TOKENS">TABLE_ALIAS_TOKENS</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.SHOW_TRIE">SHOW_TRIE</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Parser.SET_TRIE">SET_TRIE</a>
|
|
</li>
|
|
</ul>
|
|
|
|
</li>
|
|
<li>
|
|
<a class="class" href="#Databricks.Generator">Databricks.Generator</a>
|
|
<ul class="memberlist">
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.TABLESAMPLE_SEED_KEYWORD">TABLESAMPLE_SEED_KEYWORD</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.COPY_PARAMS_ARE_WRAPPED">COPY_PARAMS_ARE_WRAPPED</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.COPY_PARAMS_EQ_REQUIRED">COPY_PARAMS_EQ_REQUIRED</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.JSON_PATH_SINGLE_QUOTE_ESCAPE">JSON_PATH_SINGLE_QUOTE_ESCAPE</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.QUOTE_JSON_PATH">QUOTE_JSON_PATH</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.PARSE_JSON_NAME">PARSE_JSON_NAME</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.TRANSFORMS">TRANSFORMS</a>
|
|
</li>
|
|
<li>
|
|
<a class="function" href="#Databricks.Generator.columndef_sql">columndef_sql</a>
|
|
</li>
|
|
<li>
|
|
<a class="function" href="#Databricks.Generator.generatedasidentitycolumnconstraint_sql">generatedasidentitycolumnconstraint_sql</a>
|
|
</li>
|
|
<li>
|
|
<a class="function" href="#Databricks.Generator.jsonpath_sql">jsonpath_sql</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.SELECT_KINDS">SELECT_KINDS</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.TRY_SUPPORTED">TRY_SUPPORTED</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.Generator.SUPPORTS_UESCAPE">SUPPORTS_UESCAPE</a>
|
|
</li>
|
|
</ul>
|
|
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.SUPPORTS_COLUMN_JOIN_MARKS">SUPPORTS_COLUMN_JOIN_MARKS</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.UNESCAPED_SEQUENCES">UNESCAPED_SEQUENCES</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.tokenizer_class">tokenizer_class</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.jsonpath_tokenizer_class">jsonpath_tokenizer_class</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.parser_class">parser_class</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.generator_class">generator_class</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.TIME_TRIE">TIME_TRIE</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.FORMAT_TRIE">FORMAT_TRIE</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.INVERSE_TIME_MAPPING">INVERSE_TIME_MAPPING</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.INVERSE_TIME_TRIE">INVERSE_TIME_TRIE</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.INVERSE_FORMAT_MAPPING">INVERSE_FORMAT_MAPPING</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.INVERSE_FORMAT_TRIE">INVERSE_FORMAT_TRIE</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.INVERSE_CREATABLE_KIND_MAPPING">INVERSE_CREATABLE_KIND_MAPPING</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.ESCAPED_SEQUENCES">ESCAPED_SEQUENCES</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.QUOTE_START">QUOTE_START</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.QUOTE_END">QUOTE_END</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.IDENTIFIER_START">IDENTIFIER_START</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.IDENTIFIER_END">IDENTIFIER_END</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.BIT_START">BIT_START</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.BIT_END">BIT_END</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.HEX_START">HEX_START</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.HEX_END">HEX_END</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.BYTE_START">BYTE_START</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.BYTE_END">BYTE_END</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.UNICODE_START">UNICODE_START</a>
|
|
</li>
|
|
<li>
|
|
<a class="variable" href="#Databricks.UNICODE_END">UNICODE_END</a>
|
|
</li>
|
|
</ul>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<footer>Copyright (c) 2023 Toby Mao</footer>
|
|
|
|
<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
|
|
built with <span class="visually-hidden">pdoc</span><img
|
|
alt="pdoc logo"
|
|
src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20role%3D%22img%22%20aria-label%3D%22pdoc%20logo%22%20width%3D%22300%22%20height%3D%22150%22%20viewBox%3D%22-1%200%2060%2030%22%3E%3Ctitle%3Epdoc%3C/title%3E%3Cpath%20d%3D%22M29.621%2021.293c-.011-.273-.214-.475-.511-.481a.5.5%200%200%200-.489.503l-.044%201.393c-.097.551-.695%201.215-1.566%201.704-.577.428-1.306.486-2.193.182-1.426-.617-2.467-1.654-3.304-2.487l-.173-.172a3.43%203.43%200%200%200-.365-.306.49.49%200%200%200-.286-.196c-1.718-1.06-4.931-1.47-7.353.191l-.219.15c-1.707%201.187-3.413%202.131-4.328%201.03-.02-.027-.49-.685-.141-1.763.233-.721.546-2.408.772-4.076.042-.09.067-.187.046-.288.166-1.347.277-2.625.241-3.351%201.378-1.008%202.271-2.586%202.271-4.362%200-.976-.272-1.935-.788-2.774-.057-.094-.122-.18-.184-.268.033-.167.052-.339.052-.516%200-1.477-1.202-2.679-2.679-2.679-.791%200-1.496.352-1.987.9a6.3%206.3%200%200%200-1.001.029c-.492-.564-1.207-.929-2.012-.929-1.477%200-2.679%201.202-2.679%202.679A2.65%202.65%200%200%200%20.97%206.554c-.383.747-.595%201.572-.595%202.41%200%202.311%201.507%204.29%203.635%205.107-.037.699-.147%202.27-.423%203.294l-.137.461c-.622%202.042-2.515%208.257%201.727%2010.643%201.614.908%203.06%201.248%204.317%201.248%202.665%200%204.492-1.524%205.322-2.401%201.476-1.559%202.886-1.854%206.491.82%201.877%201.393%203.514%201.753%204.861%201.068%202.223-1.713%202.811-3.867%203.399-6.374.077-.846.056-1.469.054-1.537zm-4.835%204.313c-.054.305-.156.586-.242.629-.034-.007-.131-.022-.307-.157-.145-.111-.314-.478-.456-.908.221.121.432.25.675.355.115.039.219.051.33.081zm-2.251-1.238c-.05.33-.158.648-.252.694-.022.001-.125-.018-.307-.157-.217-.166-.488-.906-.639-1.573.358.344.754.693%201.198%201.036zm-3.887-2.337c-.006-.116-.018-.231-.041-.342.635.145%201.189.368%201.599.625.097.231.166.481.174.642-.03.049-.055.101-.067.158-.046.013-.128.026-.298.004-.278-.037-.901-.57-1.367-1.087zm-1.127-.497c.116.306.176.625.12.71-.019.014-.117.045-.345.016-.206-.027-.604-.332-.986-.695.41-.051.816-.056%201.211-.031zm-4.535%201.535c.209.22.379.47.358.598-.006.041-.088.138-.351.234-.144.055-.539-.063-.979-.259a11.66%2011.66%200%200%200%20.972-.573zm.983-.664c.359-.237.738-.418%201.126-.554.25.237.479.548.457.694-.006.042-.087.138-.351.235-.174.064-.694-.105-1.232-.375zm-3.381%201.794c-.022.145-.061.29-.149.401-.133.166-.358.248-.69.251h-.002c-.133%200-.306-.26-.45-.621.417.091.854.07%201.291-.031zm-2.066-8.077a4.78%204.78%200%200%201-.775-.584c.172-.115.505-.254.88-.378l-.105.962zm-.331%202.302a10.32%2010.32%200%200%201-.828-.502c.202-.143.576-.328.984-.49l-.156.992zm-.45%202.157l-.701-.403c.214-.115.536-.249.891-.376a11.57%2011.57%200%200%201-.19.779zm-.181%201.716c.064.398.194.702.298.893-.194-.051-.435-.162-.736-.398.061-.119.224-.3.438-.495zM8.87%204.141c0%20.152-.123.276-.276.276s-.275-.124-.275-.276.123-.276.276-.276.275.124.275.276zm-.735-.389a1.15%201.15%200%200%200-.314.783%201.16%201.16%200%200%200%201.162%201.162c.457%200%20.842-.27%201.032-.653.026.117.042.238.042.362a1.68%201.68%200%200%201-1.679%201.679%201.68%201.68%200%200%201-1.679-1.679c0-.843.626-1.535%201.436-1.654zM5.059%205.406A1.68%201.68%200%200%201%203.38%207.085a1.68%201.68%200%200%201-1.679-1.679c0-.037.009-.072.011-.109.21.3.541.508.935.508a1.16%201.16%200%200%200%201.162-1.162%201.14%201.14%200%200%200-.474-.912c.015%200%20.03-.005.045-.005.926.001%201.679.754%201.679%201.68zM3.198%204.141c0%20.152-.123.276-.276.276s-.275-.124-.275-.276.123-.276.276-.276.275.124.275.276zM1.375%208.964c0-.52.103-1.035.288-1.52.466.394%201.06.64%201.717.64%201.144%200%202.116-.725%202.499-1.738.383%201.012%201.355%201.738%202.499%201.738.867%200%201.631-.421%202.121-1.062.307.605.478%201.267.478%201.942%200%202.486-2.153%204.51-4.801%204.51s-4.801-2.023-4.801-4.51zm24.342%2019.349c-.985.498-2.267.168-3.813-.979-3.073-2.281-5.453-3.199-7.813-.705-1.315%201.391-4.163%203.365-8.423.97-3.174-1.786-2.239-6.266-1.261-9.479l.146-.492c.276-1.02.395-2.457.444-3.268a6.11%206.11%200%200%200%201.18.115%206.01%206.01%200%200%200%202.536-.562l-.006.175c-.802.215-1.848.612-2.021%201.25-.079.295.021.601.274.837.219.203.415.364.598.501-.667.304-1.243.698-1.311%201.179-.02.144-.022.507.393.787.213.144.395.26.564.365-1.285.521-1.361.96-1.381%201.126-.018.142-.011.496.427.746l.854.489c-.473.389-.971.914-.999%201.429-.018.278.095.532.316.713.675.556%201.231.721%201.653.721.059%200%20.104-.014.158-.02.207.707.641%201.64%201.513%201.64h.013c.8-.008%201.236-.345%201.462-.626.173-.216.268-.457.325-.692.424.195.93.374%201.372.374.151%200%20.294-.021.423-.068.732-.27.944-.704.993-1.021.009-.061.003-.119.002-.179.266.086.538.147.789.147.15%200%20.294-.021.423-.069.542-.2.797-.489.914-.754.237.147.478.258.704.288.106.014.205.021.296.021.356%200%20.595-.101.767-.229.438.435%201.094.992%201.656%201.067.106.014.205.021.296.021a1.56%201.56%200%200%200%20.323-.035c.17.575.453%201.289.866%201.605.358.273.665.362.914.362a.99.99%200%200%200%20.421-.093%201.03%201.03%200%200%200%20.245-.164c.168.428.39.846.68%201.068.358.273.665.362.913.362a.99.99%200%200%200%20.421-.093c.317-.148.512-.448.639-.762.251.157.495.257.726.257.127%200%20.25-.024.37-.071.427-.17.706-.617.841-1.314.022-.015.047-.022.068-.038.067-.051.133-.104.196-.159-.443%201.486-1.107%202.761-2.086%203.257zM8.66%209.925a.5.5%200%201%200-1%200c0%20.653-.818%201.205-1.787%201.205s-1.787-.552-1.787-1.205a.5.5%200%201%200-1%200c0%201.216%201.25%202.205%202.787%202.205s2.787-.989%202.787-2.205zm4.4%2015.965l-.208.097c-2.661%201.258-4.708%201.436-6.086.527-1.542-1.017-1.88-3.19-1.844-4.198a.4.4%200%200%200-.385-.414c-.242-.029-.406.164-.414.385-.046%201.249.367%203.686%202.202%204.896.708.467%201.547.7%202.51.7%201.248%200%202.706-.392%204.362-1.174l.185-.086a.4.4%200%200%200%20.205-.527c-.089-.204-.326-.291-.527-.206zM9.547%202.292c.093.077.205.114.317.114a.5.5%200%200%200%20.318-.886L8.817.397a.5.5%200%200%200-.703.068.5.5%200%200%200%20.069.703l1.364%201.124zm-7.661-.065c.086%200%20.173-.022.253-.068l1.523-.893a.5.5%200%200%200-.506-.863l-1.523.892a.5.5%200%200%200-.179.685c.094.158.261.247.432.247z%22%20transform%3D%22matrix%28-1%200%200%201%2058%200%29%22%20fill%3D%22%233bb300%22/%3E%3Cpath%20d%3D%22M.3%2021.86V10.18q0-.46.02-.68.04-.22.18-.5.28-.54%201.34-.54%201.06%200%201.42.28.38.26.44.78.76-1.04%202.38-1.04%201.64%200%203.1%201.54%201.46%201.54%201.46%203.58%200%202.04-1.46%203.58-1.44%201.54-3.08%201.54-1.64%200-2.38-.92v4.04q0%20.46-.04.68-.02.22-.18.5-.14.3-.5.42-.36.12-.98.12-.62%200-1-.12-.36-.12-.52-.4-.14-.28-.18-.5-.02-.22-.02-.68zm3.96-9.42q-.46.54-.46%201.18%200%20.64.46%201.18.48.52%201.2.52.74%200%201.24-.52.52-.52.52-1.18%200-.66-.48-1.18-.48-.54-1.26-.54-.76%200-1.22.54zm14.741-8.36q.16-.3.54-.42.38-.12%201-.12.64%200%201.02.12.38.12.52.42.16.3.18.54.04.22.04.68v11.94q0%20.46-.04.7-.02.22-.18.5-.3.54-1.7.54-1.38%200-1.54-.98-.84.96-2.34.96-1.8%200-3.28-1.56-1.48-1.58-1.48-3.66%200-2.1%201.48-3.68%201.5-1.58%203.28-1.58%201.48%200%202.3%201v-4.2q0-.46.02-.68.04-.24.18-.52zm-3.24%2010.86q.52.54%201.26.54.74%200%201.22-.54.5-.54.5-1.18%200-.66-.48-1.22-.46-.56-1.26-.56-.8%200-1.28.56-.48.54-.48%201.2%200%20.66.52%201.2zm7.833-1.2q0-2.4%201.68-3.96%201.68-1.56%203.84-1.56%202.16%200%203.82%201.56%201.66%201.54%201.66%203.94%200%201.66-.86%202.96-.86%201.28-2.1%201.9-1.22.6-2.54.6-1.32%200-2.56-.64-1.24-.66-2.1-1.92-.84-1.28-.84-2.88zm4.18%201.44q.64.48%201.3.48.66%200%201.32-.5.66-.5.66-1.48%200-.98-.62-1.46-.62-.48-1.34-.48-.72%200-1.34.5-.62.5-.62%201.48%200%20.96.64%201.46zm11.412-1.44q0%20.84.56%201.32.56.46%201.18.46.64%200%201.18-.36.56-.38.9-.38.6%200%201.46%201.06.46.58.46%201.04%200%20.76-1.1%201.42-1.14.8-2.8.8-1.86%200-3.58-1.34-.82-.64-1.34-1.7-.52-1.08-.52-2.36%200-1.3.52-2.34.52-1.06%201.34-1.7%201.66-1.32%203.54-1.32.76%200%201.48.22.72.2%201.06.4l.32.2q.36.24.56.38.52.4.52.92%200%20.5-.42%201.14-.72%201.1-1.38%201.1-.38%200-1.08-.44-.36-.34-1.04-.34-.66%200-1.24.48-.58.48-.58%201.34z%22%20fill%3D%22green%22/%3E%3C/svg%3E"/>
|
|
</a>
|
|
</div>
|
|
</nav>
|
|
<main class="pdoc">
|
|
<section class="module-info">
|
|
<a class="pdoc-button git-button" href="https://github.com/tobymao/sqlglot/tree/main/sqlglot/dialects/databricks.py">Edit on GitHub</a>
|
|
<h1 class="modulename">
|
|
<a href="./../../sqlglot.html">sqlglot</a><wbr>.<a href="./../dialects.html">dialects</a><wbr>.databricks </h1>
|
|
|
|
|
|
<input id="mod-databricks-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
|
|
<label class="view-source-button" for="mod-databricks-view-source"><span>View Source</span></label>
|
|
|
|
<div class="pdoc-code codehilite"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos"> 1</span></a><span class="kn">from</span><span class="w"> </span><span class="nn">__future__</span><span class="w"> </span><span class="kn">import</span> <span class="n">annotations</span>
|
|
</span><span id="L-2"><a href="#L-2"><span class="linenos"> 2</span></a>
|
|
</span><span id="L-3"><a href="#L-3"><span class="linenos"> 3</span></a><span class="kn">import</span><span class="w"> </span><span class="nn">typing</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">t</span>
|
|
</span><span id="L-4"><a href="#L-4"><span class="linenos"> 4</span></a>
|
|
</span><span id="L-5"><a href="#L-5"><span class="linenos"> 5</span></a><span class="kn">from</span><span class="w"> </span><span class="nn">sqlglot</span><span class="w"> </span><span class="kn">import</span> <span class="n">exp</span><span class="p">,</span> <span class="n">transforms</span><span class="p">,</span> <span class="n">jsonpath</span>
|
|
</span><span id="L-6"><a href="#L-6"><span class="linenos"> 6</span></a><span class="kn">from</span><span class="w"> </span><span class="nn">sqlglot.dialects.dialect</span><span class="w"> </span><span class="kn">import</span> <span class="p">(</span>
|
|
</span><span id="L-7"><a href="#L-7"><span class="linenos"> 7</span></a> <span class="n">date_delta_sql</span><span class="p">,</span>
|
|
</span><span id="L-8"><a href="#L-8"><span class="linenos"> 8</span></a> <span class="n">build_date_delta</span><span class="p">,</span>
|
|
</span><span id="L-9"><a href="#L-9"><span class="linenos"> 9</span></a> <span class="n">timestamptrunc_sql</span><span class="p">,</span>
|
|
</span><span id="L-10"><a href="#L-10"><span class="linenos"> 10</span></a> <span class="n">build_formatted_time</span><span class="p">,</span>
|
|
</span><span id="L-11"><a href="#L-11"><span class="linenos"> 11</span></a><span class="p">)</span>
|
|
</span><span id="L-12"><a href="#L-12"><span class="linenos"> 12</span></a><span class="kn">from</span><span class="w"> </span><span class="nn">sqlglot.dialects.spark</span><span class="w"> </span><span class="kn">import</span> <span class="n">Spark</span>
|
|
</span><span id="L-13"><a href="#L-13"><span class="linenos"> 13</span></a><span class="kn">from</span><span class="w"> </span><span class="nn">sqlglot.tokens</span><span class="w"> </span><span class="kn">import</span> <span class="n">TokenType</span>
|
|
</span><span id="L-14"><a href="#L-14"><span class="linenos"> 14</span></a>
|
|
</span><span id="L-15"><a href="#L-15"><span class="linenos"> 15</span></a>
|
|
</span><span id="L-16"><a href="#L-16"><span class="linenos"> 16</span></a><span class="k">def</span><span class="w"> </span><span class="nf">_build_json_extract</span><span class="p">(</span><span class="n">args</span><span class="p">:</span> <span class="n">t</span><span class="o">.</span><span class="n">List</span><span class="p">)</span> <span class="o">-></span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span><span class="p">:</span>
|
|
</span><span id="L-17"><a href="#L-17"><span class="linenos"> 17</span></a> <span class="c1"># Transform GET_JSON_OBJECT(expr, '$.<path>') -> expr:<path></span>
|
|
</span><span id="L-18"><a href="#L-18"><span class="linenos"> 18</span></a> <span class="n">this</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
|
|
</span><span id="L-19"><a href="#L-19"><span class="linenos"> 19</span></a> <span class="n">path</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">.</span><span class="n">name</span><span class="o">.</span><span class="n">lstrip</span><span class="p">(</span><span class="s2">"$."</span><span class="p">)</span>
|
|
</span><span id="L-20"><a href="#L-20"><span class="linenos"> 20</span></a> <span class="k">return</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span><span class="p">(</span><span class="n">this</span><span class="o">=</span><span class="n">this</span><span class="p">,</span> <span class="n">expression</span><span class="o">=</span><span class="n">path</span><span class="p">)</span>
|
|
</span><span id="L-21"><a href="#L-21"><span class="linenos"> 21</span></a>
|
|
</span><span id="L-22"><a href="#L-22"><span class="linenos"> 22</span></a>
|
|
</span><span id="L-23"><a href="#L-23"><span class="linenos"> 23</span></a><span class="k">def</span><span class="w"> </span><span class="nf">_jsonextract_sql</span><span class="p">(</span>
|
|
</span><span id="L-24"><a href="#L-24"><span class="linenos"> 24</span></a> <span class="bp">self</span><span class="p">:</span> <span class="n">Databricks</span><span class="o">.</span><span class="n">Generator</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span> <span class="o">|</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtractScalar</span>
|
|
</span><span id="L-25"><a href="#L-25"><span class="linenos"> 25</span></a><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="L-26"><a href="#L-26"><span class="linenos"> 26</span></a> <span class="n">this</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">sql</span><span class="p">(</span><span class="n">expression</span><span class="p">,</span> <span class="s2">"this"</span><span class="p">)</span>
|
|
</span><span id="L-27"><a href="#L-27"><span class="linenos"> 27</span></a> <span class="n">expr</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">sql</span><span class="p">(</span><span class="n">expression</span><span class="p">,</span> <span class="s2">"expression"</span><span class="p">)</span>
|
|
</span><span id="L-28"><a href="#L-28"><span class="linenos"> 28</span></a> <span class="k">return</span> <span class="sa">f</span><span class="s2">"</span><span class="si">{</span><span class="n">this</span><span class="si">}</span><span class="s2">:</span><span class="si">{</span><span class="n">expr</span><span class="si">}</span><span class="s2">"</span>
|
|
</span><span id="L-29"><a href="#L-29"><span class="linenos"> 29</span></a>
|
|
</span><span id="L-30"><a href="#L-30"><span class="linenos"> 30</span></a>
|
|
</span><span id="L-31"><a href="#L-31"><span class="linenos"> 31</span></a><span class="k">class</span><span class="w"> </span><span class="nc">Databricks</span><span class="p">(</span><span class="n">Spark</span><span class="p">):</span>
|
|
</span><span id="L-32"><a href="#L-32"><span class="linenos"> 32</span></a> <span class="n">SAFE_DIVISION</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="L-33"><a href="#L-33"><span class="linenos"> 33</span></a> <span class="n">COPY_PARAMS_ARE_CSV</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="L-34"><a href="#L-34"><span class="linenos"> 34</span></a>
|
|
</span><span id="L-35"><a href="#L-35"><span class="linenos"> 35</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">JSONPathTokenizer</span><span class="p">(</span><span class="n">jsonpath</span><span class="o">.</span><span class="n">JSONPathTokenizer</span><span class="p">):</span>
|
|
</span><span id="L-36"><a href="#L-36"><span class="linenos"> 36</span></a> <span class="n">IDENTIFIERS</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"`"</span><span class="p">,</span> <span class="s1">'"'</span><span class="p">]</span>
|
|
</span><span id="L-37"><a href="#L-37"><span class="linenos"> 37</span></a>
|
|
</span><span id="L-38"><a href="#L-38"><span class="linenos"> 38</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">Parser</span><span class="p">(</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="p">):</span>
|
|
</span><span id="L-39"><a href="#L-39"><span class="linenos"> 39</span></a> <span class="n">LOG_DEFAULTS_TO_LN</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="L-40"><a href="#L-40"><span class="linenos"> 40</span></a> <span class="n">STRICT_CAST</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="L-41"><a href="#L-41"><span class="linenos"> 41</span></a> <span class="n">COLON_IS_VARIANT_EXTRACT</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="L-42"><a href="#L-42"><span class="linenos"> 42</span></a>
|
|
</span><span id="L-43"><a href="#L-43"><span class="linenos"> 43</span></a> <span class="n">FUNCTIONS</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="L-44"><a href="#L-44"><span class="linenos"> 44</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="o">.</span><span class="n">FUNCTIONS</span><span class="p">,</span>
|
|
</span><span id="L-45"><a href="#L-45"><span class="linenos"> 45</span></a> <span class="s2">"DATEADD"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">),</span>
|
|
</span><span id="L-46"><a href="#L-46"><span class="linenos"> 46</span></a> <span class="s2">"DATE_ADD"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">),</span>
|
|
</span><span id="L-47"><a href="#L-47"><span class="linenos"> 47</span></a> <span class="s2">"DATEDIFF"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">),</span>
|
|
</span><span id="L-48"><a href="#L-48"><span class="linenos"> 48</span></a> <span class="s2">"DATE_DIFF"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">),</span>
|
|
</span><span id="L-49"><a href="#L-49"><span class="linenos"> 49</span></a> <span class="s2">"GET_JSON_OBJECT"</span><span class="p">:</span> <span class="n">_build_json_extract</span><span class="p">,</span>
|
|
</span><span id="L-50"><a href="#L-50"><span class="linenos"> 50</span></a> <span class="s2">"TO_DATE"</span><span class="p">:</span> <span class="n">build_formatted_time</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">TsOrDsToDate</span><span class="p">,</span> <span class="s2">"databricks"</span><span class="p">),</span>
|
|
</span><span id="L-51"><a href="#L-51"><span class="linenos"> 51</span></a> <span class="p">}</span>
|
|
</span><span id="L-52"><a href="#L-52"><span class="linenos"> 52</span></a>
|
|
</span><span id="L-53"><a href="#L-53"><span class="linenos"> 53</span></a> <span class="n">FACTOR</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="L-54"><a href="#L-54"><span class="linenos"> 54</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="o">.</span><span class="n">FACTOR</span><span class="p">,</span>
|
|
</span><span id="L-55"><a href="#L-55"><span class="linenos"> 55</span></a> <span class="n">TokenType</span><span class="o">.</span><span class="n">COLON</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span><span class="p">,</span>
|
|
</span><span id="L-56"><a href="#L-56"><span class="linenos"> 56</span></a> <span class="p">}</span>
|
|
</span><span id="L-57"><a href="#L-57"><span class="linenos"> 57</span></a>
|
|
</span><span id="L-58"><a href="#L-58"><span class="linenos"> 58</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">Generator</span><span class="p">(</span><span class="n">Spark</span><span class="o">.</span><span class="n">Generator</span><span class="p">):</span>
|
|
</span><span id="L-59"><a href="#L-59"><span class="linenos"> 59</span></a> <span class="n">TABLESAMPLE_SEED_KEYWORD</span> <span class="o">=</span> <span class="s2">"REPEATABLE"</span>
|
|
</span><span id="L-60"><a href="#L-60"><span class="linenos"> 60</span></a> <span class="n">COPY_PARAMS_ARE_WRAPPED</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="L-61"><a href="#L-61"><span class="linenos"> 61</span></a> <span class="n">COPY_PARAMS_EQ_REQUIRED</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="L-62"><a href="#L-62"><span class="linenos"> 62</span></a> <span class="n">JSON_PATH_SINGLE_QUOTE_ESCAPE</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="L-63"><a href="#L-63"><span class="linenos"> 63</span></a> <span class="n">QUOTE_JSON_PATH</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="L-64"><a href="#L-64"><span class="linenos"> 64</span></a> <span class="n">PARSE_JSON_NAME</span> <span class="o">=</span> <span class="s2">"PARSE_JSON"</span>
|
|
</span><span id="L-65"><a href="#L-65"><span class="linenos"> 65</span></a>
|
|
</span><span id="L-66"><a href="#L-66"><span class="linenos"> 66</span></a> <span class="n">TRANSFORMS</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="L-67"><a href="#L-67"><span class="linenos"> 67</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Generator</span><span class="o">.</span><span class="n">TRANSFORMS</span><span class="p">,</span>
|
|
</span><span id="L-68"><a href="#L-68"><span class="linenos"> 68</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">:</span> <span class="n">date_delta_sql</span><span class="p">(</span><span class="s2">"DATEADD"</span><span class="p">),</span>
|
|
</span><span id="L-69"><a href="#L-69"><span class="linenos"> 69</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">:</span> <span class="n">date_delta_sql</span><span class="p">(</span><span class="s2">"DATEDIFF"</span><span class="p">),</span>
|
|
</span><span id="L-70"><a href="#L-70"><span class="linenos"> 70</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeAdd</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span>
|
|
</span><span id="L-71"><a href="#L-71"><span class="linenos"> 71</span></a> <span class="s2">"TIMESTAMPADD"</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">unit</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">expression</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">this</span>
|
|
</span><span id="L-72"><a href="#L-72"><span class="linenos"> 72</span></a> <span class="p">),</span>
|
|
</span><span id="L-73"><a href="#L-73"><span class="linenos"> 73</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeSub</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span>
|
|
</span><span id="L-74"><a href="#L-74"><span class="linenos"> 74</span></a> <span class="s2">"TIMESTAMPADD"</span><span class="p">,</span>
|
|
</span><span id="L-75"><a href="#L-75"><span class="linenos"> 75</span></a> <span class="n">e</span><span class="o">.</span><span class="n">unit</span><span class="p">,</span>
|
|
</span><span id="L-76"><a href="#L-76"><span class="linenos"> 76</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">Mul</span><span class="p">(</span><span class="n">this</span><span class="o">=</span><span class="n">e</span><span class="o">.</span><span class="n">expression</span><span class="p">,</span> <span class="n">expression</span><span class="o">=</span><span class="n">exp</span><span class="o">.</span><span class="n">Literal</span><span class="o">.</span><span class="n">number</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">)),</span>
|
|
</span><span id="L-77"><a href="#L-77"><span class="linenos"> 77</span></a> <span class="n">e</span><span class="o">.</span><span class="n">this</span><span class="p">,</span>
|
|
</span><span id="L-78"><a href="#L-78"><span class="linenos"> 78</span></a> <span class="p">),</span>
|
|
</span><span id="L-79"><a href="#L-79"><span class="linenos"> 79</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeTrunc</span><span class="p">:</span> <span class="n">timestamptrunc_sql</span><span class="p">(),</span>
|
|
</span><span id="L-80"><a href="#L-80"><span class="linenos"> 80</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">Select</span><span class="p">:</span> <span class="n">transforms</span><span class="o">.</span><span class="n">preprocess</span><span class="p">(</span>
|
|
</span><span id="L-81"><a href="#L-81"><span class="linenos"> 81</span></a> <span class="p">[</span>
|
|
</span><span id="L-82"><a href="#L-82"><span class="linenos"> 82</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">eliminate_distinct_on</span><span class="p">,</span>
|
|
</span><span id="L-83"><a href="#L-83"><span class="linenos"> 83</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">unnest_to_explode</span><span class="p">,</span>
|
|
</span><span id="L-84"><a href="#L-84"><span class="linenos"> 84</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">any_to_exists</span><span class="p">,</span>
|
|
</span><span id="L-85"><a href="#L-85"><span class="linenos"> 85</span></a> <span class="p">]</span>
|
|
</span><span id="L-86"><a href="#L-86"><span class="linenos"> 86</span></a> <span class="p">),</span>
|
|
</span><span id="L-87"><a href="#L-87"><span class="linenos"> 87</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span><span class="p">:</span> <span class="n">_jsonextract_sql</span><span class="p">,</span>
|
|
</span><span id="L-88"><a href="#L-88"><span class="linenos"> 88</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtractScalar</span><span class="p">:</span> <span class="n">_jsonextract_sql</span><span class="p">,</span>
|
|
</span><span id="L-89"><a href="#L-89"><span class="linenos"> 89</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONPathRoot</span><span class="p">:</span> <span class="k">lambda</span> <span class="o">*</span><span class="n">_</span><span class="p">:</span> <span class="s2">""</span><span class="p">,</span>
|
|
</span><span id="L-90"><a href="#L-90"><span class="linenos"> 90</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">ToChar</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">function_fallback_sql</span><span class="p">(</span><span class="n">e</span><span class="p">),</span>
|
|
</span><span id="L-91"><a href="#L-91"><span class="linenos"> 91</span></a> <span class="p">}</span>
|
|
</span><span id="L-92"><a href="#L-92"><span class="linenos"> 92</span></a>
|
|
</span><span id="L-93"><a href="#L-93"><span class="linenos"> 93</span></a> <span class="n">TRANSFORMS</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">TryCast</span><span class="p">)</span>
|
|
</span><span id="L-94"><a href="#L-94"><span class="linenos"> 94</span></a>
|
|
</span><span id="L-95"><a href="#L-95"><span class="linenos"> 95</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">columndef_sql</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">ColumnDef</span><span class="p">,</span> <span class="n">sep</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">" "</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="L-96"><a href="#L-96"><span class="linenos"> 96</span></a> <span class="n">constraint</span> <span class="o">=</span> <span class="n">expression</span><span class="o">.</span><span class="n">find</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">GeneratedAsIdentityColumnConstraint</span><span class="p">)</span>
|
|
</span><span id="L-97"><a href="#L-97"><span class="linenos"> 97</span></a> <span class="n">kind</span> <span class="o">=</span> <span class="n">expression</span><span class="o">.</span><span class="n">kind</span>
|
|
</span><span id="L-98"><a href="#L-98"><span class="linenos"> 98</span></a> <span class="k">if</span> <span class="p">(</span>
|
|
</span><span id="L-99"><a href="#L-99"><span class="linenos"> 99</span></a> <span class="n">constraint</span>
|
|
</span><span id="L-100"><a href="#L-100"><span class="linenos">100</span></a> <span class="ow">and</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">kind</span><span class="p">,</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="p">)</span>
|
|
</span><span id="L-101"><a href="#L-101"><span class="linenos">101</span></a> <span class="ow">and</span> <span class="n">kind</span><span class="o">.</span><span class="n">this</span> <span class="ow">in</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="o">.</span><span class="n">INTEGER_TYPES</span>
|
|
</span><span id="L-102"><a href="#L-102"><span class="linenos">102</span></a> <span class="p">):</span>
|
|
</span><span id="L-103"><a href="#L-103"><span class="linenos">103</span></a> <span class="c1"># only BIGINT generated identity constraints are supported</span>
|
|
</span><span id="L-104"><a href="#L-104"><span class="linenos">104</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"kind"</span><span class="p">,</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="o">.</span><span class="n">build</span><span class="p">(</span><span class="s2">"bigint"</span><span class="p">))</span>
|
|
</span><span id="L-105"><a href="#L-105"><span class="linenos">105</span></a>
|
|
</span><span id="L-106"><a href="#L-106"><span class="linenos">106</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">columndef_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">,</span> <span class="n">sep</span><span class="p">)</span>
|
|
</span><span id="L-107"><a href="#L-107"><span class="linenos">107</span></a>
|
|
</span><span id="L-108"><a href="#L-108"><span class="linenos">108</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">generatedasidentitycolumnconstraint_sql</span><span class="p">(</span>
|
|
</span><span id="L-109"><a href="#L-109"><span class="linenos">109</span></a> <span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">GeneratedAsIdentityColumnConstraint</span>
|
|
</span><span id="L-110"><a href="#L-110"><span class="linenos">110</span></a> <span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="L-111"><a href="#L-111"><span class="linenos">111</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"this"</span><span class="p">,</span> <span class="kc">True</span><span class="p">)</span> <span class="c1"># trigger ALWAYS in super class</span>
|
|
</span><span id="L-112"><a href="#L-112"><span class="linenos">112</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">generatedasidentitycolumnconstraint_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span>
|
|
</span><span id="L-113"><a href="#L-113"><span class="linenos">113</span></a>
|
|
</span><span id="L-114"><a href="#L-114"><span class="linenos">114</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">jsonpath_sql</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONPath</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="L-115"><a href="#L-115"><span class="linenos">115</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"escape"</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
|
|
</span><span id="L-116"><a href="#L-116"><span class="linenos">116</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">jsonpath_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span>
|
|
</span></pre></div>
|
|
|
|
|
|
</section>
|
|
<section id="Databricks">
|
|
<input id="Databricks-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<div class="attr class">
|
|
|
|
<span class="def">class</span>
|
|
<span class="name">Databricks</span><wbr>(<span class="base"><a href="spark.html#Spark">sqlglot.dialects.spark.Spark</a></span>):
|
|
|
|
<label class="view-source-button" for="Databricks-view-source"><span>View Source</span></label>
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks"></a>
|
|
<div class="pdoc-code codehilite"><pre><span></span><span id="Databricks-32"><a href="#Databricks-32"><span class="linenos"> 32</span></a><span class="k">class</span><span class="w"> </span><span class="nc">Databricks</span><span class="p">(</span><span class="n">Spark</span><span class="p">):</span>
|
|
</span><span id="Databricks-33"><a href="#Databricks-33"><span class="linenos"> 33</span></a> <span class="n">SAFE_DIVISION</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="Databricks-34"><a href="#Databricks-34"><span class="linenos"> 34</span></a> <span class="n">COPY_PARAMS_ARE_CSV</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="Databricks-35"><a href="#Databricks-35"><span class="linenos"> 35</span></a>
|
|
</span><span id="Databricks-36"><a href="#Databricks-36"><span class="linenos"> 36</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">JSONPathTokenizer</span><span class="p">(</span><span class="n">jsonpath</span><span class="o">.</span><span class="n">JSONPathTokenizer</span><span class="p">):</span>
|
|
</span><span id="Databricks-37"><a href="#Databricks-37"><span class="linenos"> 37</span></a> <span class="n">IDENTIFIERS</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"`"</span><span class="p">,</span> <span class="s1">'"'</span><span class="p">]</span>
|
|
</span><span id="Databricks-38"><a href="#Databricks-38"><span class="linenos"> 38</span></a>
|
|
</span><span id="Databricks-39"><a href="#Databricks-39"><span class="linenos"> 39</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">Parser</span><span class="p">(</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="p">):</span>
|
|
</span><span id="Databricks-40"><a href="#Databricks-40"><span class="linenos"> 40</span></a> <span class="n">LOG_DEFAULTS_TO_LN</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="Databricks-41"><a href="#Databricks-41"><span class="linenos"> 41</span></a> <span class="n">STRICT_CAST</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="Databricks-42"><a href="#Databricks-42"><span class="linenos"> 42</span></a> <span class="n">COLON_IS_VARIANT_EXTRACT</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="Databricks-43"><a href="#Databricks-43"><span class="linenos"> 43</span></a>
|
|
</span><span id="Databricks-44"><a href="#Databricks-44"><span class="linenos"> 44</span></a> <span class="n">FUNCTIONS</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="Databricks-45"><a href="#Databricks-45"><span class="linenos"> 45</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="o">.</span><span class="n">FUNCTIONS</span><span class="p">,</span>
|
|
</span><span id="Databricks-46"><a href="#Databricks-46"><span class="linenos"> 46</span></a> <span class="s2">"DATEADD"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">),</span>
|
|
</span><span id="Databricks-47"><a href="#Databricks-47"><span class="linenos"> 47</span></a> <span class="s2">"DATE_ADD"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">),</span>
|
|
</span><span id="Databricks-48"><a href="#Databricks-48"><span class="linenos"> 48</span></a> <span class="s2">"DATEDIFF"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">),</span>
|
|
</span><span id="Databricks-49"><a href="#Databricks-49"><span class="linenos"> 49</span></a> <span class="s2">"DATE_DIFF"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">),</span>
|
|
</span><span id="Databricks-50"><a href="#Databricks-50"><span class="linenos"> 50</span></a> <span class="s2">"GET_JSON_OBJECT"</span><span class="p">:</span> <span class="n">_build_json_extract</span><span class="p">,</span>
|
|
</span><span id="Databricks-51"><a href="#Databricks-51"><span class="linenos"> 51</span></a> <span class="s2">"TO_DATE"</span><span class="p">:</span> <span class="n">build_formatted_time</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">TsOrDsToDate</span><span class="p">,</span> <span class="s2">"databricks"</span><span class="p">),</span>
|
|
</span><span id="Databricks-52"><a href="#Databricks-52"><span class="linenos"> 52</span></a> <span class="p">}</span>
|
|
</span><span id="Databricks-53"><a href="#Databricks-53"><span class="linenos"> 53</span></a>
|
|
</span><span id="Databricks-54"><a href="#Databricks-54"><span class="linenos"> 54</span></a> <span class="n">FACTOR</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="Databricks-55"><a href="#Databricks-55"><span class="linenos"> 55</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="o">.</span><span class="n">FACTOR</span><span class="p">,</span>
|
|
</span><span id="Databricks-56"><a href="#Databricks-56"><span class="linenos"> 56</span></a> <span class="n">TokenType</span><span class="o">.</span><span class="n">COLON</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span><span class="p">,</span>
|
|
</span><span id="Databricks-57"><a href="#Databricks-57"><span class="linenos"> 57</span></a> <span class="p">}</span>
|
|
</span><span id="Databricks-58"><a href="#Databricks-58"><span class="linenos"> 58</span></a>
|
|
</span><span id="Databricks-59"><a href="#Databricks-59"><span class="linenos"> 59</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">Generator</span><span class="p">(</span><span class="n">Spark</span><span class="o">.</span><span class="n">Generator</span><span class="p">):</span>
|
|
</span><span id="Databricks-60"><a href="#Databricks-60"><span class="linenos"> 60</span></a> <span class="n">TABLESAMPLE_SEED_KEYWORD</span> <span class="o">=</span> <span class="s2">"REPEATABLE"</span>
|
|
</span><span id="Databricks-61"><a href="#Databricks-61"><span class="linenos"> 61</span></a> <span class="n">COPY_PARAMS_ARE_WRAPPED</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="Databricks-62"><a href="#Databricks-62"><span class="linenos"> 62</span></a> <span class="n">COPY_PARAMS_EQ_REQUIRED</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="Databricks-63"><a href="#Databricks-63"><span class="linenos"> 63</span></a> <span class="n">JSON_PATH_SINGLE_QUOTE_ESCAPE</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="Databricks-64"><a href="#Databricks-64"><span class="linenos"> 64</span></a> <span class="n">QUOTE_JSON_PATH</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="Databricks-65"><a href="#Databricks-65"><span class="linenos"> 65</span></a> <span class="n">PARSE_JSON_NAME</span> <span class="o">=</span> <span class="s2">"PARSE_JSON"</span>
|
|
</span><span id="Databricks-66"><a href="#Databricks-66"><span class="linenos"> 66</span></a>
|
|
</span><span id="Databricks-67"><a href="#Databricks-67"><span class="linenos"> 67</span></a> <span class="n">TRANSFORMS</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="Databricks-68"><a href="#Databricks-68"><span class="linenos"> 68</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Generator</span><span class="o">.</span><span class="n">TRANSFORMS</span><span class="p">,</span>
|
|
</span><span id="Databricks-69"><a href="#Databricks-69"><span class="linenos"> 69</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">:</span> <span class="n">date_delta_sql</span><span class="p">(</span><span class="s2">"DATEADD"</span><span class="p">),</span>
|
|
</span><span id="Databricks-70"><a href="#Databricks-70"><span class="linenos"> 70</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">:</span> <span class="n">date_delta_sql</span><span class="p">(</span><span class="s2">"DATEDIFF"</span><span class="p">),</span>
|
|
</span><span id="Databricks-71"><a href="#Databricks-71"><span class="linenos"> 71</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeAdd</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span>
|
|
</span><span id="Databricks-72"><a href="#Databricks-72"><span class="linenos"> 72</span></a> <span class="s2">"TIMESTAMPADD"</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">unit</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">expression</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">this</span>
|
|
</span><span id="Databricks-73"><a href="#Databricks-73"><span class="linenos"> 73</span></a> <span class="p">),</span>
|
|
</span><span id="Databricks-74"><a href="#Databricks-74"><span class="linenos"> 74</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeSub</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span>
|
|
</span><span id="Databricks-75"><a href="#Databricks-75"><span class="linenos"> 75</span></a> <span class="s2">"TIMESTAMPADD"</span><span class="p">,</span>
|
|
</span><span id="Databricks-76"><a href="#Databricks-76"><span class="linenos"> 76</span></a> <span class="n">e</span><span class="o">.</span><span class="n">unit</span><span class="p">,</span>
|
|
</span><span id="Databricks-77"><a href="#Databricks-77"><span class="linenos"> 77</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">Mul</span><span class="p">(</span><span class="n">this</span><span class="o">=</span><span class="n">e</span><span class="o">.</span><span class="n">expression</span><span class="p">,</span> <span class="n">expression</span><span class="o">=</span><span class="n">exp</span><span class="o">.</span><span class="n">Literal</span><span class="o">.</span><span class="n">number</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">)),</span>
|
|
</span><span id="Databricks-78"><a href="#Databricks-78"><span class="linenos"> 78</span></a> <span class="n">e</span><span class="o">.</span><span class="n">this</span><span class="p">,</span>
|
|
</span><span id="Databricks-79"><a href="#Databricks-79"><span class="linenos"> 79</span></a> <span class="p">),</span>
|
|
</span><span id="Databricks-80"><a href="#Databricks-80"><span class="linenos"> 80</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeTrunc</span><span class="p">:</span> <span class="n">timestamptrunc_sql</span><span class="p">(),</span>
|
|
</span><span id="Databricks-81"><a href="#Databricks-81"><span class="linenos"> 81</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">Select</span><span class="p">:</span> <span class="n">transforms</span><span class="o">.</span><span class="n">preprocess</span><span class="p">(</span>
|
|
</span><span id="Databricks-82"><a href="#Databricks-82"><span class="linenos"> 82</span></a> <span class="p">[</span>
|
|
</span><span id="Databricks-83"><a href="#Databricks-83"><span class="linenos"> 83</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">eliminate_distinct_on</span><span class="p">,</span>
|
|
</span><span id="Databricks-84"><a href="#Databricks-84"><span class="linenos"> 84</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">unnest_to_explode</span><span class="p">,</span>
|
|
</span><span id="Databricks-85"><a href="#Databricks-85"><span class="linenos"> 85</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">any_to_exists</span><span class="p">,</span>
|
|
</span><span id="Databricks-86"><a href="#Databricks-86"><span class="linenos"> 86</span></a> <span class="p">]</span>
|
|
</span><span id="Databricks-87"><a href="#Databricks-87"><span class="linenos"> 87</span></a> <span class="p">),</span>
|
|
</span><span id="Databricks-88"><a href="#Databricks-88"><span class="linenos"> 88</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span><span class="p">:</span> <span class="n">_jsonextract_sql</span><span class="p">,</span>
|
|
</span><span id="Databricks-89"><a href="#Databricks-89"><span class="linenos"> 89</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtractScalar</span><span class="p">:</span> <span class="n">_jsonextract_sql</span><span class="p">,</span>
|
|
</span><span id="Databricks-90"><a href="#Databricks-90"><span class="linenos"> 90</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONPathRoot</span><span class="p">:</span> <span class="k">lambda</span> <span class="o">*</span><span class="n">_</span><span class="p">:</span> <span class="s2">""</span><span class="p">,</span>
|
|
</span><span id="Databricks-91"><a href="#Databricks-91"><span class="linenos"> 91</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">ToChar</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">function_fallback_sql</span><span class="p">(</span><span class="n">e</span><span class="p">),</span>
|
|
</span><span id="Databricks-92"><a href="#Databricks-92"><span class="linenos"> 92</span></a> <span class="p">}</span>
|
|
</span><span id="Databricks-93"><a href="#Databricks-93"><span class="linenos"> 93</span></a>
|
|
</span><span id="Databricks-94"><a href="#Databricks-94"><span class="linenos"> 94</span></a> <span class="n">TRANSFORMS</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">TryCast</span><span class="p">)</span>
|
|
</span><span id="Databricks-95"><a href="#Databricks-95"><span class="linenos"> 95</span></a>
|
|
</span><span id="Databricks-96"><a href="#Databricks-96"><span class="linenos"> 96</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">columndef_sql</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">ColumnDef</span><span class="p">,</span> <span class="n">sep</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">" "</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks-97"><a href="#Databricks-97"><span class="linenos"> 97</span></a> <span class="n">constraint</span> <span class="o">=</span> <span class="n">expression</span><span class="o">.</span><span class="n">find</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">GeneratedAsIdentityColumnConstraint</span><span class="p">)</span>
|
|
</span><span id="Databricks-98"><a href="#Databricks-98"><span class="linenos"> 98</span></a> <span class="n">kind</span> <span class="o">=</span> <span class="n">expression</span><span class="o">.</span><span class="n">kind</span>
|
|
</span><span id="Databricks-99"><a href="#Databricks-99"><span class="linenos"> 99</span></a> <span class="k">if</span> <span class="p">(</span>
|
|
</span><span id="Databricks-100"><a href="#Databricks-100"><span class="linenos">100</span></a> <span class="n">constraint</span>
|
|
</span><span id="Databricks-101"><a href="#Databricks-101"><span class="linenos">101</span></a> <span class="ow">and</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">kind</span><span class="p">,</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="p">)</span>
|
|
</span><span id="Databricks-102"><a href="#Databricks-102"><span class="linenos">102</span></a> <span class="ow">and</span> <span class="n">kind</span><span class="o">.</span><span class="n">this</span> <span class="ow">in</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="o">.</span><span class="n">INTEGER_TYPES</span>
|
|
</span><span id="Databricks-103"><a href="#Databricks-103"><span class="linenos">103</span></a> <span class="p">):</span>
|
|
</span><span id="Databricks-104"><a href="#Databricks-104"><span class="linenos">104</span></a> <span class="c1"># only BIGINT generated identity constraints are supported</span>
|
|
</span><span id="Databricks-105"><a href="#Databricks-105"><span class="linenos">105</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"kind"</span><span class="p">,</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="o">.</span><span class="n">build</span><span class="p">(</span><span class="s2">"bigint"</span><span class="p">))</span>
|
|
</span><span id="Databricks-106"><a href="#Databricks-106"><span class="linenos">106</span></a>
|
|
</span><span id="Databricks-107"><a href="#Databricks-107"><span class="linenos">107</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">columndef_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">,</span> <span class="n">sep</span><span class="p">)</span>
|
|
</span><span id="Databricks-108"><a href="#Databricks-108"><span class="linenos">108</span></a>
|
|
</span><span id="Databricks-109"><a href="#Databricks-109"><span class="linenos">109</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">generatedasidentitycolumnconstraint_sql</span><span class="p">(</span>
|
|
</span><span id="Databricks-110"><a href="#Databricks-110"><span class="linenos">110</span></a> <span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">GeneratedAsIdentityColumnConstraint</span>
|
|
</span><span id="Databricks-111"><a href="#Databricks-111"><span class="linenos">111</span></a> <span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks-112"><a href="#Databricks-112"><span class="linenos">112</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"this"</span><span class="p">,</span> <span class="kc">True</span><span class="p">)</span> <span class="c1"># trigger ALWAYS in super class</span>
|
|
</span><span id="Databricks-113"><a href="#Databricks-113"><span class="linenos">113</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">generatedasidentitycolumnconstraint_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span>
|
|
</span><span id="Databricks-114"><a href="#Databricks-114"><span class="linenos">114</span></a>
|
|
</span><span id="Databricks-115"><a href="#Databricks-115"><span class="linenos">115</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">jsonpath_sql</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONPath</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks-116"><a href="#Databricks-116"><span class="linenos">116</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"escape"</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
|
|
</span><span id="Databricks-117"><a href="#Databricks-117"><span class="linenos">117</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">jsonpath_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span>
|
|
</span></pre></div>
|
|
|
|
|
|
|
|
|
|
<div id="Databricks.SAFE_DIVISION" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">SAFE_DIVISION</span> =
|
|
<span class="default_value">False</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.SAFE_DIVISION"></a>
|
|
|
|
<div class="docstring"><p>Whether division by zero throws an error (<code>False</code>) or returns NULL (<code>True</code>).</p>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.COPY_PARAMS_ARE_CSV" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">COPY_PARAMS_ARE_CSV</span> =
|
|
<span class="default_value">False</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.COPY_PARAMS_ARE_CSV"></a>
|
|
|
|
<div class="docstring"><p>Whether COPY statement parameters are separated by comma or whitespace</p>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.SUPPORTS_COLUMN_JOIN_MARKS" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">SUPPORTS_COLUMN_JOIN_MARKS</span> =
|
|
<span class="default_value">False</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.SUPPORTS_COLUMN_JOIN_MARKS"></a>
|
|
|
|
<div class="docstring"><p>Whether the old-style outer join (+) syntax is supported.</p>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.UNESCAPED_SEQUENCES" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">UNESCAPED_SEQUENCES</span><span class="annotation">: Dict[str, str]</span> =
|
|
<input id="Databricks.UNESCAPED_SEQUENCES-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.UNESCAPED_SEQUENCES-view-value"></label><span class="default_value">{'\\a': '\x07', '\\b': '\x08', '\\f': '\x0c', '\\n': '\n', '\\r': '\r', '\\t': '\t', '\\v': '\x0b', '\\\\': '\\'}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.UNESCAPED_SEQUENCES"></a>
|
|
|
|
<div class="docstring"><p>Mapping of an escaped sequence (<code>\n</code>) to its unescaped version (<code>
|
|
</code>).</p>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.tokenizer_class" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">tokenizer_class</span> =
|
|
<span class="default_value"><class '<a href="../tokens.html#Tokenizer">sqlglot.tokens.Tokenizer</a>'></span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.tokenizer_class"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.jsonpath_tokenizer_class" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">jsonpath_tokenizer_class</span> =
|
|
<span class="default_value"><class '<a href="#Databricks.JSONPathTokenizer">Databricks.JSONPathTokenizer</a>'></span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.jsonpath_tokenizer_class"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.parser_class" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">parser_class</span> =
|
|
<span class="default_value"><class '<a href="#Databricks.Parser">Databricks.Parser</a>'></span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.parser_class"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.generator_class" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">generator_class</span> =
|
|
<span class="default_value"><class '<a href="#Databricks.Generator">Databricks.Generator</a>'></span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.generator_class"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.TIME_TRIE" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">TIME_TRIE</span><span class="annotation">: Dict</span> =
|
|
<input id="Databricks.TIME_TRIE-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.TIME_TRIE-view-value"></label><span class="default_value">{'y': {0: True, 'y': {'y': {'y': {0: True}}, 0: True}}, 'Y': {0: True, 'Y': {'Y': {'Y': {0: True}}, 0: True}}, 'M': {'M': {'M': {'M': {0: True}, 0: True}, 0: True}, 0: True}, 'd': {'d': {0: True}, 0: True}, 'H': {'H': {0: True}, 0: True}, 'h': {'h': {0: True}, 0: True}, 'm': {'m': {0: True}, 0: True}, 's': {'s': {0: True}, 0: True}, 'S': {'S': {'S': {'S': {'S': {'S': {0: True}}}}}}, 'a': {0: True}, 'D': {'D': {0: True}, 0: True}, 'E': {0: True, 'E': {0: True, 'E': {0: True, 'E': {0: True}}}}, 'z': {0: True}, 'Z': {0: True}}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.TIME_TRIE"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.FORMAT_TRIE" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">FORMAT_TRIE</span><span class="annotation">: Dict</span> =
|
|
<input id="Databricks.FORMAT_TRIE-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.FORMAT_TRIE-view-value"></label><span class="default_value">{'y': {0: True, 'y': {'y': {'y': {0: True}}, 0: True}}, 'Y': {0: True, 'Y': {'Y': {'Y': {0: True}}, 0: True}}, 'M': {'M': {'M': {'M': {0: True}, 0: True}, 0: True}, 0: True}, 'd': {'d': {0: True}, 0: True}, 'H': {'H': {0: True}, 0: True}, 'h': {'h': {0: True}, 0: True}, 'm': {'m': {0: True}, 0: True}, 's': {'s': {0: True}, 0: True}, 'S': {'S': {'S': {'S': {'S': {'S': {0: True}}}}}}, 'a': {0: True}, 'D': {'D': {0: True}, 0: True}, 'E': {0: True, 'E': {0: True, 'E': {0: True, 'E': {0: True}}}}, 'z': {0: True}, 'Z': {0: True}}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.FORMAT_TRIE"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.INVERSE_TIME_MAPPING" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">INVERSE_TIME_MAPPING</span><span class="annotation">: Dict[str, str]</span> =
|
|
<input id="Databricks.INVERSE_TIME_MAPPING-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.INVERSE_TIME_MAPPING-view-value"></label><span class="default_value">{'%Y': 'yyyy', '%y': 'yy', '%B': 'MMMM', '%b': 'MMM', '%m': 'MM', '%-m': 'M', '%d': 'dd', '%-d': 'd', '%H': 'HH', '%-H': 'H', '%I': 'hh', '%-I': 'h', '%M': 'mm', '%-M': 'm', '%S': 'ss', '%-S': 's', '%f': 'SSSSSS', '%p': 'a', '%j': 'DD', '%-j': 'D', '%a': 'EEE', '%A': 'EEEE', '%Z': 'z', '%z': 'Z'}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.INVERSE_TIME_MAPPING"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.INVERSE_TIME_TRIE" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">INVERSE_TIME_TRIE</span><span class="annotation">: Dict</span> =
|
|
<input id="Databricks.INVERSE_TIME_TRIE-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.INVERSE_TIME_TRIE-view-value"></label><span class="default_value">{'%': {'Y': {0: True}, 'y': {0: True}, 'B': {0: True}, 'b': {0: True}, 'm': {0: True}, '-': {'m': {0: True}, 'd': {0: True}, 'H': {0: True}, 'I': {0: True}, 'M': {0: True}, 'S': {0: True}, 'j': {0: True}}, 'd': {0: True}, 'H': {0: True}, 'I': {0: True}, 'M': {0: True}, 'S': {0: True}, 'f': {0: True}, 'p': {0: True}, 'j': {0: True}, 'a': {0: True}, 'A': {0: True}, 'Z': {0: True}, 'z': {0: True}}}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.INVERSE_TIME_TRIE"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.INVERSE_FORMAT_MAPPING" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">INVERSE_FORMAT_MAPPING</span><span class="annotation">: Dict[str, str]</span> =
|
|
<span class="default_value">{}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.INVERSE_FORMAT_MAPPING"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.INVERSE_FORMAT_TRIE" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">INVERSE_FORMAT_TRIE</span><span class="annotation">: Dict</span> =
|
|
<span class="default_value">{}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.INVERSE_FORMAT_TRIE"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.INVERSE_CREATABLE_KIND_MAPPING" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">INVERSE_CREATABLE_KIND_MAPPING</span><span class="annotation">: dict[str, str]</span> =
|
|
<span class="default_value">{}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.INVERSE_CREATABLE_KIND_MAPPING"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.ESCAPED_SEQUENCES" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">ESCAPED_SEQUENCES</span><span class="annotation">: Dict[str, str]</span> =
|
|
<input id="Databricks.ESCAPED_SEQUENCES-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.ESCAPED_SEQUENCES-view-value"></label><span class="default_value">{'\x07': '\\a', '\x08': '\\b', '\x0c': '\\f', '\n': '\\n', '\r': '\\r', '\t': '\\t', '\x0b': '\\v', '\\': '\\\\'}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.ESCAPED_SEQUENCES"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.QUOTE_START" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">QUOTE_START</span> =
|
|
<span class="default_value">"'"</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.QUOTE_START"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.QUOTE_END" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">QUOTE_END</span> =
|
|
<span class="default_value">"'"</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.QUOTE_END"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.IDENTIFIER_START" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">IDENTIFIER_START</span> =
|
|
<span class="default_value">'`'</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.IDENTIFIER_START"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.IDENTIFIER_END" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">IDENTIFIER_END</span> =
|
|
<span class="default_value">'`'</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.IDENTIFIER_END"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.BIT_START" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">BIT_START</span><span class="annotation">: Optional[str]</span> =
|
|
<span class="default_value">None</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.BIT_START"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.BIT_END" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">BIT_END</span><span class="annotation">: Optional[str]</span> =
|
|
<span class="default_value">None</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.BIT_END"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.HEX_START" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">HEX_START</span><span class="annotation">: Optional[str]</span> =
|
|
<span class="default_value">"X'"</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.HEX_START"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.HEX_END" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">HEX_END</span><span class="annotation">: Optional[str]</span> =
|
|
<span class="default_value">"'"</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.HEX_END"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.BYTE_START" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">BYTE_START</span><span class="annotation">: Optional[str]</span> =
|
|
<span class="default_value">None</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.BYTE_START"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.BYTE_END" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">BYTE_END</span><span class="annotation">: Optional[str]</span> =
|
|
<span class="default_value">None</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.BYTE_END"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.UNICODE_START" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">UNICODE_START</span><span class="annotation">: Optional[str]</span> =
|
|
<span class="default_value">None</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.UNICODE_START"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.UNICODE_END" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">UNICODE_END</span><span class="annotation">: Optional[str]</span> =
|
|
<span class="default_value">None</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.UNICODE_END"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="inherited">
|
|
<h5>Inherited Members</h5>
|
|
<dl>
|
|
<div><dt><a href="spark.html#Spark">sqlglot.dialects.spark.Spark</a></dt>
|
|
<dd id="Databricks.SUPPORTS_ORDER_BY_ALL" class="variable"><a href="spark.html#Spark.SUPPORTS_ORDER_BY_ALL">SUPPORTS_ORDER_BY_ALL</a></dd>
|
|
<dd id="Databricks.Tokenizer" class="class"><a href="spark.html#Spark.Tokenizer">Tokenizer</a></dd>
|
|
|
|
</div>
|
|
<div><dt><a href="spark2.html#Spark2">sqlglot.dialects.spark2.Spark2</a></dt>
|
|
<dd id="Databricks.ANNOTATORS" class="variable"><a href="spark2.html#Spark2.ANNOTATORS">ANNOTATORS</a></dd>
|
|
|
|
</div>
|
|
<div><dt><a href="hive.html#Hive">sqlglot.dialects.hive.Hive</a></dt>
|
|
<dd id="Databricks.ALIAS_POST_TABLESAMPLE" class="variable"><a href="hive.html#Hive.ALIAS_POST_TABLESAMPLE">ALIAS_POST_TABLESAMPLE</a></dd>
|
|
<dd id="Databricks.IDENTIFIERS_CAN_START_WITH_DIGIT" class="variable"><a href="hive.html#Hive.IDENTIFIERS_CAN_START_WITH_DIGIT">IDENTIFIERS_CAN_START_WITH_DIGIT</a></dd>
|
|
<dd id="Databricks.SUPPORTS_USER_DEFINED_TYPES" class="variable"><a href="hive.html#Hive.SUPPORTS_USER_DEFINED_TYPES">SUPPORTS_USER_DEFINED_TYPES</a></dd>
|
|
<dd id="Databricks.ARRAY_AGG_INCLUDES_NULLS" class="variable"><a href="hive.html#Hive.ARRAY_AGG_INCLUDES_NULLS">ARRAY_AGG_INCLUDES_NULLS</a></dd>
|
|
<dd id="Databricks.REGEXP_EXTRACT_DEFAULT_GROUP" class="variable"><a href="hive.html#Hive.REGEXP_EXTRACT_DEFAULT_GROUP">REGEXP_EXTRACT_DEFAULT_GROUP</a></dd>
|
|
<dd id="Databricks.NORMALIZATION_STRATEGY" class="variable"><a href="hive.html#Hive.NORMALIZATION_STRATEGY">NORMALIZATION_STRATEGY</a></dd>
|
|
<dd id="Databricks.TIME_MAPPING" class="variable"><a href="hive.html#Hive.TIME_MAPPING">TIME_MAPPING</a></dd>
|
|
<dd id="Databricks.DATE_FORMAT" class="variable"><a href="hive.html#Hive.DATE_FORMAT">DATE_FORMAT</a></dd>
|
|
<dd id="Databricks.DATEINT_FORMAT" class="variable"><a href="hive.html#Hive.DATEINT_FORMAT">DATEINT_FORMAT</a></dd>
|
|
<dd id="Databricks.TIME_FORMAT" class="variable"><a href="hive.html#Hive.TIME_FORMAT">TIME_FORMAT</a></dd>
|
|
|
|
</div>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
<section id="Databricks.JSONPathTokenizer">
|
|
<input id="Databricks.JSONPathTokenizer-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<div class="attr class">
|
|
|
|
<span class="def">class</span>
|
|
<span class="name">Databricks.JSONPathTokenizer</span><wbr>(<span class="base"><a href="../jsonpath.html#JSONPathTokenizer">sqlglot.jsonpath.JSONPathTokenizer</a></span>):
|
|
|
|
<label class="view-source-button" for="Databricks.JSONPathTokenizer-view-source"><span>View Source</span></label>
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.JSONPathTokenizer"></a>
|
|
<div class="pdoc-code codehilite"><pre><span></span><span id="Databricks.JSONPathTokenizer-36"><a href="#Databricks.JSONPathTokenizer-36"><span class="linenos">36</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">JSONPathTokenizer</span><span class="p">(</span><span class="n">jsonpath</span><span class="o">.</span><span class="n">JSONPathTokenizer</span><span class="p">):</span>
|
|
</span><span id="Databricks.JSONPathTokenizer-37"><a href="#Databricks.JSONPathTokenizer-37"><span class="linenos">37</span></a> <span class="n">IDENTIFIERS</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"`"</span><span class="p">,</span> <span class="s1">'"'</span><span class="p">]</span>
|
|
</span></pre></div>
|
|
|
|
|
|
|
|
|
|
<div id="Databricks.JSONPathTokenizer.IDENTIFIERS" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">IDENTIFIERS</span> =
|
|
<span class="default_value">['`', '"']</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.JSONPathTokenizer.IDENTIFIERS"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="inherited">
|
|
<h5>Inherited Members</h5>
|
|
<dl>
|
|
<div><dt><a href="../tokens.html#Tokenizer">sqlglot.tokens.Tokenizer</a></dt>
|
|
<dd id="Databricks.JSONPathTokenizer.__init__" class="function"><a href="../tokens.html#Tokenizer.__init__">Tokenizer</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.BIT_STRINGS" class="variable"><a href="../tokens.html#Tokenizer.BIT_STRINGS">BIT_STRINGS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.BYTE_STRINGS" class="variable"><a href="../tokens.html#Tokenizer.BYTE_STRINGS">BYTE_STRINGS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.HEX_STRINGS" class="variable"><a href="../tokens.html#Tokenizer.HEX_STRINGS">HEX_STRINGS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.RAW_STRINGS" class="variable"><a href="../tokens.html#Tokenizer.RAW_STRINGS">RAW_STRINGS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.HEREDOC_STRINGS" class="variable"><a href="../tokens.html#Tokenizer.HEREDOC_STRINGS">HEREDOC_STRINGS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.UNICODE_STRINGS" class="variable"><a href="../tokens.html#Tokenizer.UNICODE_STRINGS">UNICODE_STRINGS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.QUOTES" class="variable"><a href="../tokens.html#Tokenizer.QUOTES">QUOTES</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.VAR_SINGLE_TOKENS" class="variable"><a href="../tokens.html#Tokenizer.VAR_SINGLE_TOKENS">VAR_SINGLE_TOKENS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.HEREDOC_TAG_IS_IDENTIFIER" class="variable"><a href="../tokens.html#Tokenizer.HEREDOC_TAG_IS_IDENTIFIER">HEREDOC_TAG_IS_IDENTIFIER</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.HEREDOC_STRING_ALTERNATIVE" class="variable"><a href="../tokens.html#Tokenizer.HEREDOC_STRING_ALTERNATIVE">HEREDOC_STRING_ALTERNATIVE</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.STRING_ESCAPES_ALLOWED_IN_RAW_STRINGS" class="variable"><a href="../tokens.html#Tokenizer.STRING_ESCAPES_ALLOWED_IN_RAW_STRINGS">STRING_ESCAPES_ALLOWED_IN_RAW_STRINGS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.NESTED_COMMENTS" class="variable"><a href="../tokens.html#Tokenizer.NESTED_COMMENTS">NESTED_COMMENTS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.HINT_START" class="variable"><a href="../tokens.html#Tokenizer.HINT_START">HINT_START</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.TOKENS_PRECEDING_HINT" class="variable"><a href="../tokens.html#Tokenizer.TOKENS_PRECEDING_HINT">TOKENS_PRECEDING_HINT</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.WHITE_SPACE" class="variable"><a href="../tokens.html#Tokenizer.WHITE_SPACE">WHITE_SPACE</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.COMMANDS" class="variable"><a href="../tokens.html#Tokenizer.COMMANDS">COMMANDS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.COMMAND_PREFIX_TOKENS" class="variable"><a href="../tokens.html#Tokenizer.COMMAND_PREFIX_TOKENS">COMMAND_PREFIX_TOKENS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.NUMERIC_LITERALS" class="variable"><a href="../tokens.html#Tokenizer.NUMERIC_LITERALS">NUMERIC_LITERALS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.COMMENTS" class="variable"><a href="../tokens.html#Tokenizer.COMMENTS">COMMENTS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.dialect" class="variable"><a href="../tokens.html#Tokenizer.dialect">dialect</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.use_rs_tokenizer" class="variable"><a href="../tokens.html#Tokenizer.use_rs_tokenizer">use_rs_tokenizer</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.reset" class="function"><a href="../tokens.html#Tokenizer.reset">reset</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.tokenize" class="function"><a href="../tokens.html#Tokenizer.tokenize">tokenize</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.tokenize_rs" class="function"><a href="../tokens.html#Tokenizer.tokenize_rs">tokenize_rs</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.size" class="variable"><a href="../tokens.html#Tokenizer.size">size</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.sql" class="variable"><a href="../tokens.html#Tokenizer.sql">sql</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.tokens" class="variable"><a href="../tokens.html#Tokenizer.tokens">tokens</a></dd>
|
|
|
|
</div>
|
|
<div><dt><a href="../jsonpath.html#JSONPathTokenizer">sqlglot.jsonpath.JSONPathTokenizer</a></dt>
|
|
<dd id="Databricks.JSONPathTokenizer.SINGLE_TOKENS" class="variable"><a href="../jsonpath.html#JSONPathTokenizer.SINGLE_TOKENS">SINGLE_TOKENS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.KEYWORDS" class="variable"><a href="../jsonpath.html#JSONPathTokenizer.KEYWORDS">KEYWORDS</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.IDENTIFIER_ESCAPES" class="variable"><a href="../jsonpath.html#JSONPathTokenizer.IDENTIFIER_ESCAPES">IDENTIFIER_ESCAPES</a></dd>
|
|
<dd id="Databricks.JSONPathTokenizer.STRING_ESCAPES" class="variable"><a href="../jsonpath.html#JSONPathTokenizer.STRING_ESCAPES">STRING_ESCAPES</a></dd>
|
|
|
|
</div>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
<section id="Databricks.Parser">
|
|
<input id="Databricks.Parser-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<div class="attr class">
|
|
|
|
<span class="def">class</span>
|
|
<span class="name">Databricks.Parser</span><wbr>(<span class="base"><a href="spark.html#Spark.Parser">sqlglot.dialects.spark.Spark.Parser</a></span>):
|
|
|
|
<label class="view-source-button" for="Databricks.Parser-view-source"><span>View Source</span></label>
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser"></a>
|
|
<div class="pdoc-code codehilite"><pre><span></span><span id="Databricks.Parser-39"><a href="#Databricks.Parser-39"><span class="linenos">39</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">Parser</span><span class="p">(</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="p">):</span>
|
|
</span><span id="Databricks.Parser-40"><a href="#Databricks.Parser-40"><span class="linenos">40</span></a> <span class="n">LOG_DEFAULTS_TO_LN</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="Databricks.Parser-41"><a href="#Databricks.Parser-41"><span class="linenos">41</span></a> <span class="n">STRICT_CAST</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="Databricks.Parser-42"><a href="#Databricks.Parser-42"><span class="linenos">42</span></a> <span class="n">COLON_IS_VARIANT_EXTRACT</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="Databricks.Parser-43"><a href="#Databricks.Parser-43"><span class="linenos">43</span></a>
|
|
</span><span id="Databricks.Parser-44"><a href="#Databricks.Parser-44"><span class="linenos">44</span></a> <span class="n">FUNCTIONS</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="Databricks.Parser-45"><a href="#Databricks.Parser-45"><span class="linenos">45</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="o">.</span><span class="n">FUNCTIONS</span><span class="p">,</span>
|
|
</span><span id="Databricks.Parser-46"><a href="#Databricks.Parser-46"><span class="linenos">46</span></a> <span class="s2">"DATEADD"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">),</span>
|
|
</span><span id="Databricks.Parser-47"><a href="#Databricks.Parser-47"><span class="linenos">47</span></a> <span class="s2">"DATE_ADD"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">),</span>
|
|
</span><span id="Databricks.Parser-48"><a href="#Databricks.Parser-48"><span class="linenos">48</span></a> <span class="s2">"DATEDIFF"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">),</span>
|
|
</span><span id="Databricks.Parser-49"><a href="#Databricks.Parser-49"><span class="linenos">49</span></a> <span class="s2">"DATE_DIFF"</span><span class="p">:</span> <span class="n">build_date_delta</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">),</span>
|
|
</span><span id="Databricks.Parser-50"><a href="#Databricks.Parser-50"><span class="linenos">50</span></a> <span class="s2">"GET_JSON_OBJECT"</span><span class="p">:</span> <span class="n">_build_json_extract</span><span class="p">,</span>
|
|
</span><span id="Databricks.Parser-51"><a href="#Databricks.Parser-51"><span class="linenos">51</span></a> <span class="s2">"TO_DATE"</span><span class="p">:</span> <span class="n">build_formatted_time</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">TsOrDsToDate</span><span class="p">,</span> <span class="s2">"databricks"</span><span class="p">),</span>
|
|
</span><span id="Databricks.Parser-52"><a href="#Databricks.Parser-52"><span class="linenos">52</span></a> <span class="p">}</span>
|
|
</span><span id="Databricks.Parser-53"><a href="#Databricks.Parser-53"><span class="linenos">53</span></a>
|
|
</span><span id="Databricks.Parser-54"><a href="#Databricks.Parser-54"><span class="linenos">54</span></a> <span class="n">FACTOR</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="Databricks.Parser-55"><a href="#Databricks.Parser-55"><span class="linenos">55</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Parser</span><span class="o">.</span><span class="n">FACTOR</span><span class="p">,</span>
|
|
</span><span id="Databricks.Parser-56"><a href="#Databricks.Parser-56"><span class="linenos">56</span></a> <span class="n">TokenType</span><span class="o">.</span><span class="n">COLON</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span><span class="p">,</span>
|
|
</span><span id="Databricks.Parser-57"><a href="#Databricks.Parser-57"><span class="linenos">57</span></a> <span class="p">}</span>
|
|
</span></pre></div>
|
|
|
|
|
|
<div class="docstring"><p>Parser consumes a list of tokens produced by the Tokenizer and produces a parsed syntax tree.</p>
|
|
|
|
<h6 id="arguments">Arguments:</h6>
|
|
|
|
<ul>
|
|
<li><strong>error_level:</strong> The desired error level.
|
|
Default: ErrorLevel.IMMEDIATE</li>
|
|
<li><strong>error_message_context:</strong> The amount of context to capture from a query string when displaying
|
|
the error message (in number of characters).
|
|
Default: 100</li>
|
|
<li><strong>max_errors:</strong> Maximum number of error messages to include in a raised ParseError.
|
|
This is only relevant if error_level is ErrorLevel.RAISE.
|
|
Default: 3</li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<div id="Databricks.Parser.LOG_DEFAULTS_TO_LN" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">LOG_DEFAULTS_TO_LN</span> =
|
|
<span class="default_value">True</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.LOG_DEFAULTS_TO_LN"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Parser.STRICT_CAST" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">STRICT_CAST</span> =
|
|
<span class="default_value">True</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.STRICT_CAST"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Parser.COLON_IS_VARIANT_EXTRACT" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">COLON_IS_VARIANT_EXTRACT</span> =
|
|
<span class="default_value">True</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.COLON_IS_VARIANT_EXTRACT"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Parser.FUNCTIONS" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">FUNCTIONS</span> =
|
|
<input id="Databricks.Parser.FUNCTIONS-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.Parser.FUNCTIONS-view-value"></label><span class="default_value">{'ABS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Abs">sqlglot.expressions.Abs</a>'>>, 'ADD_MONTHS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#AddMonths">sqlglot.expressions.AddMonths</a>'>>, 'AND': <bound method Func.from_arg_list of <class '<a href="../expressions.html#And">sqlglot.expressions.And</a>'>>, 'ANONYMOUS_AGG_FUNC': <bound method Func.from_arg_list of <class '<a href="../expressions.html#AnonymousAggFunc">sqlglot.expressions.AnonymousAggFunc</a>'>>, 'ANY_VALUE': <function _build_with_ignore_nulls.<locals>._parse>, 'APPLY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Apply">sqlglot.expressions.Apply</a>'>>, 'APPROX_DISTINCT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ApproxDistinct">sqlglot.expressions.ApproxDistinct</a>'>>, 'APPROX_COUNT_DISTINCT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ApproxDistinct">sqlglot.expressions.ApproxDistinct</a>'>>, 'APPROX_QUANTILE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ApproxQuantile">sqlglot.expressions.ApproxQuantile</a>'>>, 'APPROX_TOP_K': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ApproxTopK">sqlglot.expressions.ApproxTopK</a>'>>, 'ARG_MAX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArgMax">sqlglot.expressions.ArgMax</a>'>>, 'ARGMAX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArgMax">sqlglot.expressions.ArgMax</a>'>>, 'MAX_BY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArgMax">sqlglot.expressions.ArgMax</a>'>>, 'ARG_MIN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArgMin">sqlglot.expressions.ArgMin</a>'>>, 'ARGMIN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArgMin">sqlglot.expressions.ArgMin</a>'>>, 'MIN_BY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArgMin">sqlglot.expressions.ArgMin</a>'>>, 'ARRAY': <function Parser.<lambda>>, 'ARRAY_AGG': <function Parser.<lambda>>, 'ARRAY_ALL': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayAll">sqlglot.expressions.ArrayAll</a>'>>, 'ARRAY_ANY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayAny">sqlglot.expressions.ArrayAny</a>'>>, 'ARRAY_CONCAT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayConcat">sqlglot.expressions.ArrayConcat</a>'>>, 'ARRAY_CAT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayConcat">sqlglot.expressions.ArrayConcat</a>'>>, 'ARRAY_CONSTRUCT_COMPACT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayConstructCompact">sqlglot.expressions.ArrayConstructCompact</a>'>>, 'ARRAY_CONTAINS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayContains">sqlglot.expressions.ArrayContains</a>'>>, 'ARRAY_HAS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayContains">sqlglot.expressions.ArrayContains</a>'>>, 'ARRAY_CONTAINS_ALL': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayContainsAll">sqlglot.expressions.ArrayContainsAll</a>'>>, 'ARRAY_HAS_ALL': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayContainsAll">sqlglot.expressions.ArrayContainsAll</a>'>>, 'FILTER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayFilter">sqlglot.expressions.ArrayFilter</a>'>>, 'ARRAY_FILTER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayFilter">sqlglot.expressions.ArrayFilter</a>'>>, 'ARRAY_OVERLAPS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayOverlaps">sqlglot.expressions.ArrayOverlaps</a>'>>, 'ARRAY_SIZE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArraySize">sqlglot.expressions.ArraySize</a>'>>, 'ARRAY_LENGTH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArraySize">sqlglot.expressions.ArraySize</a>'>>, 'ARRAY_SORT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArraySort">sqlglot.expressions.ArraySort</a>'>>, 'ARRAY_SUM': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArraySum">sqlglot.expressions.ArraySum</a>'>>, 'ARRAY_TO_STRING': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayToString">sqlglot.expressions.ArrayToString</a>'>>, 'ARRAY_JOIN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayToString">sqlglot.expressions.ArrayToString</a>'>>, 'ARRAY_UNION_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayUnionAgg">sqlglot.expressions.ArrayUnionAgg</a>'>>, 'ARRAY_UNIQUE_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayUniqueAgg">sqlglot.expressions.ArrayUniqueAgg</a>'>>, 'AVG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Avg">sqlglot.expressions.Avg</a>'>>, 'CASE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Case">sqlglot.expressions.Case</a>'>>, 'CAST': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Cast">sqlglot.expressions.Cast</a>'>>, 'CAST_TO_STR_TYPE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CastToStrType">sqlglot.expressions.CastToStrType</a>'>>, 'CBRT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Cbrt">sqlglot.expressions.Cbrt</a>'>>, 'CEIL': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Ceil">sqlglot.expressions.Ceil</a>'>>, 'CEILING': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Ceil">sqlglot.expressions.Ceil</a>'>>, 'CHR': <function Parser.<lambda>>, 'CHAR': <function Parser.<lambda>>, 'COALESCE': <function build_coalesce>, 'IFNULL': <function build_coalesce>, 'NVL': <function build_coalesce>, 'COLLATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Collate">sqlglot.expressions.Collate</a>'>>, 'COLUMNS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Columns">sqlglot.expressions.Columns</a>'>>, 'COMBINED_AGG_FUNC': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CombinedAggFunc">sqlglot.expressions.CombinedAggFunc</a>'>>, 'COMBINED_PARAMETERIZED_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CombinedParameterizedAgg">sqlglot.expressions.CombinedParameterizedAgg</a>'>>, 'CONCAT': <function Parser.<lambda>>, 'CONCAT_WS': <function Parser.<lambda>>, 'CONNECT_BY_ROOT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ConnectByRoot">sqlglot.expressions.ConnectByRoot</a>'>>, 'CONTAINS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Contains">sqlglot.expressions.Contains</a>'>>, 'CONVERT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Convert">sqlglot.expressions.Convert</a>'>>, 'CONVERT_TIMEZONE': <function build_convert_timezone>, 'CORR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Corr">sqlglot.expressions.Corr</a>'>>, 'COUNT': <function Parser.<lambda>>, 'COUNT_IF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CountIf">sqlglot.expressions.CountIf</a>'>>, 'COUNTIF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CountIf">sqlglot.expressions.CountIf</a>'>>, 'COVAR_POP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CovarPop">sqlglot.expressions.CovarPop</a>'>>, 'COVAR_SAMP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CovarSamp">sqlglot.expressions.CovarSamp</a>'>>, 'CURRENT_DATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CurrentDate">sqlglot.expressions.CurrentDate</a>'>>, 'CURRENT_DATETIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CurrentDatetime">sqlglot.expressions.CurrentDatetime</a>'>>, 'CURRENT_SCHEMA': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CurrentSchema">sqlglot.expressions.CurrentSchema</a>'>>, 'CURRENT_TIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CurrentTime">sqlglot.expressions.CurrentTime</a>'>>, 'CURRENT_TIMESTAMP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CurrentTimestamp">sqlglot.expressions.CurrentTimestamp</a>'>>, 'CURRENT_USER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#CurrentUser">sqlglot.expressions.CurrentUser</a>'>>, 'DATE': <function _build_as_cast.<locals>.<lambda>>, 'DATE_ADD': <function build_date_delta.<locals>._builder>, 'DATE_BIN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DateBin">sqlglot.expressions.DateBin</a>'>>, 'DATEDIFF': <function build_date_delta.<locals>._builder>, 'DATE_DIFF': <function build_date_delta.<locals>._builder>, 'DATE_FROM_PARTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DateFromParts">sqlglot.expressions.DateFromParts</a>'>>, 'DATEFROMPARTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DateFromParts">sqlglot.expressions.DateFromParts</a>'>>, 'DATE_STR_TO_DATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DateStrToDate">sqlglot.expressions.DateStrToDate</a>'>>, 'DATE_SUB': <function Hive.Parser.<lambda>>, 'DATE_TO_DATE_STR': <function Parser.<lambda>>, 'DATE_TO_DI': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DateToDi">sqlglot.expressions.DateToDi</a>'>>, 'DATE_TRUNC': <function Spark2.Parser.<lambda>>, 'DATETIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Datetime">sqlglot.expressions.Datetime</a>'>>, 'DATETIME_ADD': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DatetimeAdd">sqlglot.expressions.DatetimeAdd</a>'>>, 'DATETIME_DIFF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DatetimeDiff">sqlglot.expressions.DatetimeDiff</a>'>>, 'DATETIME_SUB': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DatetimeSub">sqlglot.expressions.DatetimeSub</a>'>>, 'DATETIME_TRUNC': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DatetimeTrunc">sqlglot.expressions.DatetimeTrunc</a>'>>, 'DAY': <function Hive.Parser.<lambda>>, 'DAY_OF_MONTH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DayOfMonth">sqlglot.expressions.DayOfMonth</a>'>>, 'DAYOFMONTH': <function Spark2.Parser.<lambda>>, 'DAY_OF_WEEK': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DayOfWeek">sqlglot.expressions.DayOfWeek</a>'>>, 'DAYOFWEEK': <function Spark2.Parser.<lambda>>, 'DAYOFWEEK_ISO': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DayOfWeekIso">sqlglot.expressions.DayOfWeekIso</a>'>>, 'ISODOW': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DayOfWeekIso">sqlglot.expressions.DayOfWeekIso</a>'>>, 'DAY_OF_YEAR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DayOfYear">sqlglot.expressions.DayOfYear</a>'>>, 'DAYOFYEAR': <function Spark2.Parser.<lambda>>, 'DECODE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Decode">sqlglot.expressions.Decode</a>'>>, 'DI_TO_DATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#DiToDate">sqlglot.expressions.DiToDate</a>'>>, 'ENCODE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Encode">sqlglot.expressions.Encode</a>'>>, 'EXISTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Exists">sqlglot.expressions.Exists</a>'>>, 'EXP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Exp">sqlglot.expressions.Exp</a>'>>, 'EXPLODE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Explode">sqlglot.expressions.Explode</a>'>>, 'EXPLODE_OUTER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ExplodeOuter">sqlglot.expressions.ExplodeOuter</a>'>>, 'EXPLODING_GENERATE_SERIES': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ExplodingGenerateSeries">sqlglot.expressions.ExplodingGenerateSeries</a>'>>, 'EXTRACT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Extract">sqlglot.expressions.Extract</a>'>>, 'FEATURES_AT_TIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#FeaturesAtTime">sqlglot.expressions.FeaturesAtTime</a>'>>, 'FIRST': <function _build_with_ignore_nulls.<locals>._parse>, 'FIRST_VALUE': <function _build_with_ignore_nulls.<locals>._parse>, 'FLATTEN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Flatten">sqlglot.expressions.Flatten</a>'>>, 'FLOOR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Floor">sqlglot.expressions.Floor</a>'>>, 'FROM_BASE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#FromBase">sqlglot.expressions.FromBase</a>'>>, 'FROM_BASE64': <bound method Func.from_arg_list of <class '<a href="../expressions.html#FromBase64">sqlglot.expressions.FromBase64</a>'>>, 'FROM_ISO8601_TIMESTAMP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#FromISO8601Timestamp">sqlglot.expressions.FromISO8601Timestamp</a>'>>, 'GAP_FILL': <bound method Func.from_arg_list of <class '<a href="../expressions.html#GapFill">sqlglot.expressions.GapFill</a>'>>, 'GENERATE_DATE_ARRAY': <function Parser.<lambda>>, 'GENERATE_SERIES': <bound method Func.from_arg_list of <class '<a href="../expressions.html#GenerateSeries">sqlglot.expressions.GenerateSeries</a>'>>, 'GENERATE_TIMESTAMP_ARRAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#GenerateTimestampArray">sqlglot.expressions.GenerateTimestampArray</a>'>>, 'GREATEST': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Greatest">sqlglot.expressions.Greatest</a>'>>, 'GROUP_CONCAT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#GroupConcat">sqlglot.expressions.GroupConcat</a>'>>, 'HEX': <function build_hex>, 'HLL': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Hll">sqlglot.expressions.Hll</a>'>>, 'IF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#If">sqlglot.expressions.If</a>'>>, 'IIF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#If">sqlglot.expressions.If</a>'>>, 'INITCAP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Initcap">sqlglot.expressions.Initcap</a>'>>, 'INLINE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Inline">sqlglot.expressions.Inline</a>'>>, 'INT64': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Int64">sqlglot.expressions.Int64</a>'>>, 'IS_ASCII': <bound method Func.from_arg_list of <class '<a href="../expressions.html#IsAscii">sqlglot.expressions.IsAscii</a>'>>, 'IS_INF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#IsInf">sqlglot.expressions.IsInf</a>'>>, 'ISINF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#IsInf">sqlglot.expressions.IsInf</a>'>>, 'IS_NAN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#IsNan">sqlglot.expressions.IsNan</a>'>>, 'ISNAN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#IsNan">sqlglot.expressions.IsNan</a>'>>, 'J_S_O_N_ARRAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONArray">sqlglot.expressions.JSONArray</a>'>>, 'J_S_O_N_ARRAY_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONArrayAgg">sqlglot.expressions.JSONArrayAgg</a>'>>, 'JSON_ARRAY_CONTAINS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONArrayContains">sqlglot.expressions.JSONArrayContains</a>'>>, 'JSONB_CONTAINS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONBContains">sqlglot.expressions.JSONBContains</a>'>>, 'JSONB_EXISTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONBExists">sqlglot.expressions.JSONBExists</a>'>>, 'JSONB_EXTRACT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONBExtract">sqlglot.expressions.JSONBExtract</a>'>>, 'JSONB_EXTRACT_SCALAR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONBExtractScalar">sqlglot.expressions.JSONBExtractScalar</a>'>>, 'J_S_O_N_B_OBJECT_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONBObjectAgg">sqlglot.expressions.JSONBObjectAgg</a>'>>, 'J_S_O_N_CAST': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONCast">sqlglot.expressions.JSONCast</a>'>>, 'J_S_O_N_EXISTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONExists">sqlglot.expressions.JSONExists</a>'>>, 'JSON_EXTRACT': <function build_extract_json_with_path.<locals>._builder>, 'JSON_EXTRACT_ARRAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONExtractArray">sqlglot.expressions.JSONExtractArray</a>'>>, 'JSON_EXTRACT_SCALAR': <function build_extract_json_with_path.<locals>._builder>, 'JSON_FORMAT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONFormat">sqlglot.expressions.JSONFormat</a>'>>, 'J_S_O_N_OBJECT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONObject">sqlglot.expressions.JSONObject</a>'>>, 'J_S_O_N_OBJECT_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONObjectAgg">sqlglot.expressions.JSONObjectAgg</a>'>>, 'J_S_O_N_TABLE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONTable">sqlglot.expressions.JSONTable</a>'>>, 'J_S_O_N_VALUE_ARRAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONValueArray">sqlglot.expressions.JSONValueArray</a>'>>, 'LAG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Lag">sqlglot.expressions.Lag</a>'>>, 'LAST': <function _build_with_ignore_nulls.<locals>._parse>, 'LAST_DAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LastDay">sqlglot.expressions.LastDay</a>'>>, 'LAST_DAY_OF_MONTH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LastDay">sqlglot.expressions.LastDay</a>'>>, 'LAST_VALUE': <function _build_with_ignore_nulls.<locals>._parse>, 'LEAD': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Lead">sqlglot.expressions.Lead</a>'>>, 'LEAST': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Least">sqlglot.expressions.Least</a>'>>, 'LEFT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Left">sqlglot.expressions.Left</a>'>>, 'LENGTH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Length">sqlglot.expressions.Length</a>'>>, 'LEN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Length">sqlglot.expressions.Length</a>'>>, 'CHAR_LENGTH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Length">sqlglot.expressions.Length</a>'>>, 'CHARACTER_LENGTH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Length">sqlglot.expressions.Length</a>'>>, 'LEVENSHTEIN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Levenshtein">sqlglot.expressions.Levenshtein</a>'>>, 'LIST': <bound method Func.from_arg_list of <class '<a href="../expressions.html#List">sqlglot.expressions.List</a>'>>, 'LN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Ln">sqlglot.expressions.Ln</a>'>>, 'LOG': <function build_logarithm>, 'LOGICAL_AND': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LogicalAnd">sqlglot.expressions.LogicalAnd</a>'>>, 'BOOL_AND': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LogicalAnd">sqlglot.expressions.LogicalAnd</a>'>>, 'BOOLAND_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LogicalAnd">sqlglot.expressions.LogicalAnd</a>'>>, 'LOGICAL_OR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LogicalOr">sqlglot.expressions.LogicalOr</a>'>>, 'BOOL_OR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LogicalOr">sqlglot.expressions.LogicalOr</a>'>>, 'BOOLOR_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LogicalOr">sqlglot.expressions.LogicalOr</a>'>>, 'LOWER': <function build_lower>, 'LCASE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Lower">sqlglot.expressions.Lower</a>'>>, 'LOWER_HEX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#LowerHex">sqlglot.expressions.LowerHex</a>'>>, 'MD5': <bound method Func.from_arg_list of <class '<a href="../expressions.html#MD5">sqlglot.expressions.MD5</a>'>>, 'MD5_DIGEST': <bound method Func.from_arg_list of <class '<a href="../expressions.html#MD5Digest">sqlglot.expressions.MD5Digest</a>'>>, 'MAKE_INTERVAL': <bound method Func.from_arg_list of <class '<a href="../expressions.html#MakeInterval">sqlglot.expressions.MakeInterval</a>'>>, 'MAP': <function build_var_map>, 'MAP_FROM_ENTRIES': <bound method Func.from_arg_list of <class '<a href="../expressions.html#MapFromEntries">sqlglot.expressions.MapFromEntries</a>'>>, 'MATCH_AGAINST': <bound method Func.from_arg_list of <class '<a href="../expressions.html#MatchAgainst">sqlglot.expressions.MatchAgainst</a>'>>, 'MAX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Max">sqlglot.expressions.Max</a>'>>, 'MEDIAN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Median">sqlglot.expressions.Median</a>'>>, 'MIN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Min">sqlglot.expressions.Min</a>'>>, 'MONTH': <function Hive.Parser.<lambda>>, 'MONTHS_BETWEEN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#MonthsBetween">sqlglot.expressions.MonthsBetween</a>'>>, 'NEXT_VALUE_FOR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#NextValueFor">sqlglot.expressions.NextValueFor</a>'>>, 'NORMALIZE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Normalize">sqlglot.expressions.Normalize</a>'>>, 'NTH_VALUE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#NthValue">sqlglot.expressions.NthValue</a>'>>, 'NULLIF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Nullif">sqlglot.expressions.Nullif</a>'>>, 'NUMBER_TO_STR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#NumberToStr">sqlglot.expressions.NumberToStr</a>'>>, 'NVL2': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Nvl2">sqlglot.expressions.Nvl2</a>'>>, 'OBJECT_INSERT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ObjectInsert">sqlglot.expressions.ObjectInsert</a>'>>, 'OPEN_J_S_O_N': <bound method Func.from_arg_list of <class '<a href="../expressions.html#OpenJSON">sqlglot.expressions.OpenJSON</a>'>>, 'OR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Or">sqlglot.expressions.Or</a>'>>, 'OVERLAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Overlay">sqlglot.expressions.Overlay</a>'>>, 'PAD': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Pad">sqlglot.expressions.Pad</a>'>>, 'PARAMETERIZED_AGG': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ParameterizedAgg">sqlglot.expressions.ParameterizedAgg</a>'>>, 'PARSE_JSON': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ParseJSON">sqlglot.expressions.ParseJSON</a>'>>, 'JSON_PARSE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ParseJSON">sqlglot.expressions.ParseJSON</a>'>>, 'PERCENTILE_CONT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#PercentileCont">sqlglot.expressions.PercentileCont</a>'>>, 'PERCENTILE_DISC': <bound method Func.from_arg_list of <class '<a href="../expressions.html#PercentileDisc">sqlglot.expressions.PercentileDisc</a>'>>, 'POSEXPLODE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Posexplode">sqlglot.expressions.Posexplode</a>'>>, 'POSEXPLODE_OUTER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#PosexplodeOuter">sqlglot.expressions.PosexplodeOuter</a>'>>, 'POWER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Pow">sqlglot.expressions.Pow</a>'>>, 'POW': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Pow">sqlglot.expressions.Pow</a>'>>, 'PREDICT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Predict">sqlglot.expressions.Predict</a>'>>, 'QUANTILE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Quantile">sqlglot.expressions.Quantile</a>'>>, 'QUARTER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Quarter">sqlglot.expressions.Quarter</a>'>>, 'RAND': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Rand">sqlglot.expressions.Rand</a>'>>, 'RANDOM': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Rand">sqlglot.expressions.Rand</a>'>>, 'RANDN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Randn">sqlglot.expressions.Randn</a>'>>, 'RANGE_N': <bound method Func.from_arg_list of <class '<a href="../expressions.html#RangeN">sqlglot.expressions.RangeN</a>'>>, 'READ_CSV': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ReadCSV">sqlglot.expressions.ReadCSV</a>'>>, 'REDUCE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Reduce">sqlglot.expressions.Reduce</a>'>>, 'REGEXP_EXTRACT': <function build_regexp_extract.<locals>._builder>, 'REGEXP_EXTRACT_ALL': <function build_regexp_extract.<locals>._builder>, 'REGEXP_I_LIKE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#RegexpILike">sqlglot.expressions.RegexpILike</a>'>>, 'REGEXP_LIKE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#RegexpLike">sqlglot.expressions.RegexpLike</a>'>>, 'REGEXP_REPLACE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#RegexpReplace">sqlglot.expressions.RegexpReplace</a>'>>, 'REGEXP_SPLIT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#RegexpSplit">sqlglot.expressions.RegexpSplit</a>'>>, 'REPEAT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Repeat">sqlglot.expressions.Repeat</a>'>>, 'RIGHT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Right">sqlglot.expressions.Right</a>'>>, 'ROUND': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Round">sqlglot.expressions.Round</a>'>>, 'ROW_NUMBER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#RowNumber">sqlglot.expressions.RowNumber</a>'>>, 'SHA': <bound method Func.from_arg_list of <class '<a href="../expressions.html#SHA">sqlglot.expressions.SHA</a>'>>, 'SHA1': <bound method Func.from_arg_list of <class '<a href="../expressions.html#SHA">sqlglot.expressions.SHA</a>'>>, 'SHA2': <bound method Func.from_arg_list of <class '<a href="../expressions.html#SHA2">sqlglot.expressions.SHA2</a>'>>, 'SAFE_DIVIDE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#SafeDivide">sqlglot.expressions.SafeDivide</a>'>>, 'SIGN': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Sign">sqlglot.expressions.Sign</a>'>>, 'SIGNUM': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Sign">sqlglot.expressions.Sign</a>'>>, 'SORT_ARRAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#SortArray">sqlglot.expressions.SortArray</a>'>>, 'SPLIT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#RegexpSplit">sqlglot.expressions.RegexpSplit</a>'>>, 'SPLIT_PART': <bound method Func.from_arg_list of <class '<a href="../expressions.html#SplitPart">sqlglot.expressions.SplitPart</a>'>>, 'SQRT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Sqrt">sqlglot.expressions.Sqrt</a>'>>, 'STANDARD_HASH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StandardHash">sqlglot.expressions.StandardHash</a>'>>, 'STAR_MAP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StarMap">sqlglot.expressions.StarMap</a>'>>, 'STARTS_WITH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StartsWith">sqlglot.expressions.StartsWith</a>'>>, 'STARTSWITH': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StartsWith">sqlglot.expressions.StartsWith</a>'>>, 'STDDEV': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Stddev">sqlglot.expressions.Stddev</a>'>>, 'STDEV': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Stddev">sqlglot.expressions.Stddev</a>'>>, 'STDDEV_POP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StddevPop">sqlglot.expressions.StddevPop</a>'>>, 'STDDEV_SAMP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StddevSamp">sqlglot.expressions.StddevSamp</a>'>>, 'STR_POSITION': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StrPosition">sqlglot.expressions.StrPosition</a>'>>, 'STR_TO_DATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StrToDate">sqlglot.expressions.StrToDate</a>'>>, 'STR_TO_MAP': <function Hive.Parser.<lambda>>, 'STR_TO_TIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StrToTime">sqlglot.expressions.StrToTime</a>'>>, 'STR_TO_UNIX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StrToUnix">sqlglot.expressions.StrToUnix</a>'>>, 'STRING': <function _build_as_cast.<locals>.<lambda>>, 'STRING_TO_ARRAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StringToArray">sqlglot.expressions.StringToArray</a>'>>, 'SPLIT_BY_STRING': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StringToArray">sqlglot.expressions.StringToArray</a>'>>, 'STRUCT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Struct">sqlglot.expressions.Struct</a>'>>, 'STRUCT_EXTRACT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StructExtract">sqlglot.expressions.StructExtract</a>'>>, 'STUFF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Stuff">sqlglot.expressions.Stuff</a>'>>, 'INSERT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Stuff">sqlglot.expressions.Stuff</a>'>>, 'SUBSTRING': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Substring">sqlglot.expressions.Substring</a>'>>, 'SUBSTR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Substring">sqlglot.expressions.Substring</a>'>>, 'SUM': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Sum">sqlglot.expressions.Sum</a>'>>, 'TIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Time">sqlglot.expressions.Time</a>'>>, 'TIME_ADD': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeAdd">sqlglot.expressions.TimeAdd</a>'>>, 'TIME_DIFF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeDiff">sqlglot.expressions.TimeDiff</a>'>>, 'TIME_FROM_PARTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeFromParts">sqlglot.expressions.TimeFromParts</a>'>>, 'TIMEFROMPARTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeFromParts">sqlglot.expressions.TimeFromParts</a>'>>, 'TIME_STR_TO_DATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeStrToDate">sqlglot.expressions.TimeStrToDate</a>'>>, 'TIME_STR_TO_TIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeStrToTime">sqlglot.expressions.TimeStrToTime</a>'>>, 'TIME_STR_TO_UNIX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeStrToUnix">sqlglot.expressions.TimeStrToUnix</a>'>>, 'TIME_SUB': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeSub">sqlglot.expressions.TimeSub</a>'>>, 'TIME_TO_STR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeToStr">sqlglot.expressions.TimeToStr</a>'>>, 'TIME_TO_TIME_STR': <function Parser.<lambda>>, 'TIME_TO_UNIX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeToUnix">sqlglot.expressions.TimeToUnix</a>'>>, 'TIME_TRUNC': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimeTrunc">sqlglot.expressions.TimeTrunc</a>'>>, 'TIMESTAMP': <function _build_as_cast.<locals>.<lambda>>, 'TIMESTAMP_ADD': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimestampAdd">sqlglot.expressions.TimestampAdd</a>'>>, 'TIMESTAMPDIFF': <function build_date_delta.<locals>._builder>, 'TIMESTAMP_DIFF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimestampDiff">sqlglot.expressions.TimestampDiff</a>'>>, 'TIMESTAMP_FROM_PARTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimestampFromParts">sqlglot.expressions.TimestampFromParts</a>'>>, 'TIMESTAMPFROMPARTS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimestampFromParts">sqlglot.expressions.TimestampFromParts</a>'>>, 'TIMESTAMP_SUB': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimestampSub">sqlglot.expressions.TimestampSub</a>'>>, 'TIMESTAMP_TRUNC': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TimestampTrunc">sqlglot.expressions.TimestampTrunc</a>'>>, 'TO_ARRAY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ToArray">sqlglot.expressions.ToArray</a>'>>, 'TO_BASE64': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ToBase64">sqlglot.expressions.ToBase64</a>'>>, 'TO_CHAR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ToChar">sqlglot.expressions.ToChar</a>'>>, 'TO_DAYS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ToDays">sqlglot.expressions.ToDays</a>'>>, 'TO_DOUBLE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ToDouble">sqlglot.expressions.ToDouble</a>'>>, 'TO_MAP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ToMap">sqlglot.expressions.ToMap</a>'>>, 'TO_NUMBER': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ToNumber">sqlglot.expressions.ToNumber</a>'>>, 'TRANSFORM': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Transform">sqlglot.expressions.Transform</a>'>>, 'TRIM': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Trim">sqlglot.expressions.Trim</a>'>>, 'TRY': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Try">sqlglot.expressions.Try</a>'>>, 'TRY_CAST': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TryCast">sqlglot.expressions.TryCast</a>'>>, 'TS_OR_DI_TO_DI': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TsOrDiToDi">sqlglot.expressions.TsOrDiToDi</a>'>>, 'TS_OR_DS_ADD': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TsOrDsAdd">sqlglot.expressions.TsOrDsAdd</a>'>>, 'TS_OR_DS_DIFF': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TsOrDsDiff">sqlglot.expressions.TsOrDsDiff</a>'>>, 'TS_OR_DS_TO_DATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TsOrDsToDate">sqlglot.expressions.TsOrDsToDate</a>'>>, 'TS_OR_DS_TO_DATE_STR': <function Parser.<lambda>>, 'TS_OR_DS_TO_DATETIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TsOrDsToDatetime">sqlglot.expressions.TsOrDsToDatetime</a>'>>, 'TS_OR_DS_TO_TIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TsOrDsToTime">sqlglot.expressions.TsOrDsToTime</a>'>>, 'TS_OR_DS_TO_TIMESTAMP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#TsOrDsToTimestamp">sqlglot.expressions.TsOrDsToTimestamp</a>'>>, 'UNHEX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Unhex">sqlglot.expressions.Unhex</a>'>>, 'UNICODE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Unicode">sqlglot.expressions.Unicode</a>'>>, 'UNIX_DATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#UnixDate">sqlglot.expressions.UnixDate</a>'>>, 'UNIX_SECONDS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#UnixSeconds">sqlglot.expressions.UnixSeconds</a>'>>, 'UNIX_TO_STR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#UnixToStr">sqlglot.expressions.UnixToStr</a>'>>, 'UNIX_TO_TIME': <bound method Func.from_arg_list of <class '<a href="../expressions.html#UnixToTime">sqlglot.expressions.UnixToTime</a>'>>, 'UNIX_TO_TIME_STR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#UnixToTimeStr">sqlglot.expressions.UnixToTimeStr</a>'>>, 'UNNEST': <function Parser.<lambda>>, 'UPPER': <function build_upper>, 'UCASE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Upper">sqlglot.expressions.Upper</a>'>>, 'UUID': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Uuid">sqlglot.expressions.Uuid</a>'>>, 'GEN_RANDOM_UUID': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Uuid">sqlglot.expressions.Uuid</a>'>>, 'GENERATE_UUID': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Uuid">sqlglot.expressions.Uuid</a>'>>, 'UUID_STRING': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Uuid">sqlglot.expressions.Uuid</a>'>>, 'VAR_MAP': <function build_var_map>, 'VARIANCE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Variance">sqlglot.expressions.Variance</a>'>>, 'VARIANCE_SAMP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Variance">sqlglot.expressions.Variance</a>'>>, 'VAR_SAMP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Variance">sqlglot.expressions.Variance</a>'>>, 'VARIANCE_POP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#VariancePop">sqlglot.expressions.VariancePop</a>'>>, 'VAR_POP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#VariancePop">sqlglot.expressions.VariancePop</a>'>>, 'WEEK': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Week">sqlglot.expressions.Week</a>'>>, 'WEEK_OF_YEAR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#WeekOfYear">sqlglot.expressions.WeekOfYear</a>'>>, 'WEEKOFYEAR': <function Spark2.Parser.<lambda>>, 'XMLELEMENT': <bound method Func.from_arg_list of <class '<a href="../expressions.html#XMLElement">sqlglot.expressions.XMLElement</a>'>>, 'X_M_L_TABLE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#XMLTable">sqlglot.expressions.XMLTable</a>'>>, 'XOR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Xor">sqlglot.expressions.Xor</a>'>>, 'YEAR': <function Hive.Parser.<lambda>>, 'ARRAYAGG': <function Parser.<lambda>>, 'GLOB': <function Parser.<lambda>>, 'JSON_EXTRACT_PATH_TEXT': <function build_extract_json_with_path.<locals>._builder>, 'LIKE': <function build_like>, 'LOG2': <function Parser.<lambda>>, 'LOG10': <function Parser.<lambda>>, 'LPAD': <function Parser.<lambda>>, 'LEFTPAD': <function Parser.<lambda>>, 'LTRIM': <function Parser.<lambda>>, 'MOD': <function build_mod>, 'RIGHTPAD': <function Parser.<lambda>>, 'RPAD': <function Parser.<lambda>>, 'RTRIM': <function Parser.<lambda>>, 'SCOPE_RESOLUTION': <function Parser.<lambda>>, 'STRPOS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StrPosition">sqlglot.expressions.StrPosition</a>'>>, 'CHARINDEX': <function Parser.<lambda>>, 'INSTR': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StrPosition">sqlglot.expressions.StrPosition</a>'>>, 'LOCATE': <function Parser.<lambda>>, 'TO_HEX': <function build_hex>, 'ASCII': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Unicode">sqlglot.expressions.Unicode</a>'>>, 'BASE64': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ToBase64">sqlglot.expressions.ToBase64</a>'>>, 'COLLECT_LIST': <function Hive.Parser.<lambda>>, 'COLLECT_SET': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArrayUniqueAgg">sqlglot.expressions.ArrayUniqueAgg</a>'>>, 'DATE_FORMAT': <function Hive.Parser.<lambda>>, 'FROM_UNIXTIME': <function build_formatted_time.<locals>._builder>, 'GET_JSON_OBJECT': <function _build_json_extract>, 'PERCENTILE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Quantile">sqlglot.expressions.Quantile</a>'>>, 'PERCENTILE_APPROX': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ApproxQuantile">sqlglot.expressions.ApproxQuantile</a>'>>, 'SEQUENCE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#GenerateSeries">sqlglot.expressions.GenerateSeries</a>'>>, 'SIZE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ArraySize">sqlglot.expressions.ArraySize</a>'>>, 'TO_DATE': <function build_formatted_time.<locals>._builder>, 'TO_JSON': <bound method Func.from_arg_list of <class '<a href="../expressions.html#JSONFormat">sqlglot.expressions.JSONFormat</a>'>>, 'TRUNC': <function Spark2.Parser.<lambda>>, 'UNBASE64': <bound method Func.from_arg_list of <class '<a href="../expressions.html#FromBase64">sqlglot.expressions.FromBase64</a>'>>, 'UNIX_TIMESTAMP': <function Hive.Parser.<lambda>>, 'AGGREGATE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Reduce">sqlglot.expressions.Reduce</a>'>>, 'APPROX_PERCENTILE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#ApproxQuantile">sqlglot.expressions.ApproxQuantile</a>'>>, 'BOOLEAN': <function _build_as_cast.<locals>.<lambda>>, 'DOUBLE': <function _build_as_cast.<locals>.<lambda>>, 'FLOAT': <function _build_as_cast.<locals>.<lambda>>, 'FROM_UTC_TIMESTAMP': <function Spark2.Parser.<lambda>>, 'INT': <function _build_as_cast.<locals>.<lambda>>, 'MAP_FROM_ARRAYS': <bound method Func.from_arg_list of <class '<a href="../expressions.html#Map">sqlglot.expressions.Map</a>'>>, 'RLIKE': <bound method Func.from_arg_list of <class '<a href="../expressions.html#RegexpLike">sqlglot.expressions.RegexpLike</a>'>>, 'SHIFTLEFT': <function binary_from_function.<locals>.<lambda>>, 'SHIFTRIGHT': <function binary_from_function.<locals>.<lambda>>, 'TO_TIMESTAMP': <function Spark2.Parser.<lambda>>, 'TO_UNIX_TIMESTAMP': <bound method Func.from_arg_list of <class '<a href="../expressions.html#StrToUnix">sqlglot.expressions.StrToUnix</a>'>>, 'TO_UTC_TIMESTAMP': <function Spark2.Parser.<lambda>>, 'DATEADD': <function build_date_delta.<locals>._builder>, 'TIMESTAMPADD': <function _build_dateadd>, 'TIMESTAMP_LTZ': <function _build_as_cast.<locals>.<lambda>>, 'TIMESTAMP_NTZ': <function _build_as_cast.<locals>.<lambda>>, 'TRY_ELEMENT_AT': <function Spark.Parser.<lambda>>}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.FUNCTIONS"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Parser.FACTOR" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">FACTOR</span> =
|
|
<input id="Databricks.Parser.FACTOR-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.Parser.FACTOR-view-value"></label><span class="default_value">{<TokenType.DIV: 'DIV'>: <class '<a href="../expressions.html#IntDiv">sqlglot.expressions.IntDiv</a>'>, <TokenType.LR_ARROW: 'LR_ARROW'>: <class '<a href="../expressions.html#Distance">sqlglot.expressions.Distance</a>'>, <TokenType.SLASH: 'SLASH'>: <class '<a href="../expressions.html#Div">sqlglot.expressions.Div</a>'>, <TokenType.STAR: 'STAR'>: <class '<a href="../expressions.html#Mul">sqlglot.expressions.Mul</a>'>, <TokenType.COLON: 'COLON'>: <class '<a href="../expressions.html#JSONExtract">sqlglot.expressions.JSONExtract</a>'>}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.FACTOR"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Parser.ID_VAR_TOKENS" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">ID_VAR_TOKENS</span> =
|
|
<input id="Databricks.Parser.ID_VAR_TOKENS-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.Parser.ID_VAR_TOKENS-view-value"></label><span class="default_value">{<TokenType.PROCEDURE: 'PROCEDURE'>, <TokenType.IS: 'IS'>, <TokenType.LOAD: 'LOAD'>, <TokenType.TINYINT: 'TINYINT'>, <TokenType.KILL: 'KILL'>, <TokenType.RECURSIVE: 'RECURSIVE'>, <TokenType.NULL: 'NULL'>, <TokenType.SEMI: 'SEMI'>, <TokenType.WINDOW: 'WINDOW'>, <TokenType.SOURCE: 'SOURCE'>, <TokenType.NULLABLE: 'NULLABLE'>, <TokenType.PSEUDO_TYPE: 'PSEUDO_TYPE'>, <TokenType.TIMESTAMP_MS: 'TIMESTAMP_MS'>, <TokenType.MULTILINESTRING: 'MULTILINESTRING'>, <TokenType.ENUM: 'ENUM'>, <TokenType.TEMPORARY: 'TEMPORARY'>, <TokenType.VECTOR: 'VECTOR'>, <TokenType.ANY: 'ANY'>, <TokenType.UINT256: 'UINT256'>, <TokenType.TEXT: 'TEXT'>, <TokenType.UNPIVOT: 'UNPIVOT'>, <TokenType.UDOUBLE: 'UDOUBLE'>, <TokenType.NAMESPACE: 'NAMESPACE'>, <TokenType.UUID: 'UUID'>, <TokenType.CACHE: 'CACHE'>, <TokenType.TINYBLOB: 'TINYBLOB'>, <TokenType.DESCRIBE: 'DESCRIBE'>, <TokenType.RING: 'RING'>, <TokenType.NCHAR: 'NCHAR'>, <TokenType.SEQUENCE: 'SEQUENCE'>, <TokenType.BIGSERIAL: 'BIGSERIAL'>, <TokenType.POINT: 'POINT'>, <TokenType.COMMAND: 'COMMAND'>, <TokenType.MODEL: 'MODEL'>, <TokenType.SIMPLEAGGREGATEFUNCTION: 'SIMPLEAGGREGATEFUNCTION'>, <TokenType.PUT: 'PUT'>, <TokenType.SINK: 'SINK'>, <TokenType.COMMENT: 'COMMENT'>, <TokenType.TIMESTAMPLTZ: 'TIMESTAMPLTZ'>, <TokenType.OPERATOR: 'OPERATOR'>, <TokenType.UBIGINT: 'UBIGINT'>, <TokenType.CURRENT_DATE: 'CURRENT_DATE'>, <TokenType.NATURAL: 'NATURAL'>, <TokenType.TIME: 'TIME'>, <TokenType.NVARCHAR: 'NVARCHAR'>, <TokenType.INET: 'INET'>, <TokenType.TIMESTAMP: 'TIMESTAMP'>, <TokenType.UTINYINT: 'UTINYINT'>, <TokenType.UNKNOWN: 'UNKNOWN'>, <TokenType.AGGREGATEFUNCTION: 'AGGREGATEFUNCTION'>, <TokenType.SETTINGS: 'SETTINGS'>, <TokenType.FILTER: 'FILTER'>, <TokenType.NUMMULTIRANGE: 'NUMMULTIRANGE'>, <TokenType.CUBE: 'CUBE'>, <TokenType.IPV6: 'IPV6'>, <TokenType.BIT: 'BIT'>, <TokenType.INT8RANGE: 'INT8RANGE'>, <TokenType.NUMRANGE: 'NUMRANGE'>, <TokenType.OVERLAPS: 'OVERLAPS'>, <TokenType.LOWCARDINALITY: 'LOWCARDINALITY'>, <TokenType.REFERENCES: 'REFERENCES'>, <TokenType.TINYTEXT: 'TINYTEXT'>, <TokenType.ENUM8: 'ENUM8'>, <TokenType.UNIQUE: 'UNIQUE'>, <TokenType.INT128: 'INT128'>, <TokenType.DATETIME: 'DATETIME'>, <TokenType.ATTACH: 'ATTACH'>, <TokenType.JSONB: 'JSONB'>, <TokenType.FUNCTION: 'FUNCTION'>, <TokenType.INT4RANGE: 'INT4RANGE'>, <TokenType.ENUM16: 'ENUM16'>, <TokenType.COMMIT: 'COMMIT'>, <TokenType.DICTIONARY: 'DICTIONARY'>, <TokenType.SHOW: 'SHOW'>, <TokenType.IPV4: 'IPV4'>, <TokenType.INT: 'INT'>, <TokenType.GEOGRAPHY: 'GEOGRAPHY'>, <TokenType.CURRENT_SCHEMA: 'CURRENT_SCHEMA'>, <TokenType.APPLY: 'APPLY'>, <TokenType.TIMETZ: 'TIMETZ'>, <TokenType.DETACH: 'DETACH'>, <TokenType.WAREHOUSE: 'WAREHOUSE'>, <TokenType.UNNEST: 'UNNEST'>, <TokenType.VARIANT: 'VARIANT'>, <TokenType.MAP: 'MAP'>, <TokenType.NEXT: 'NEXT'>, <TokenType.INTERVAL: 'INTERVAL'>, <TokenType.ROWS: 'ROWS'>, <TokenType.END: 'END'>, <TokenType.RIGHT: 'RIGHT'>, <TokenType.ROLLUP: 'ROLLUP'>, <TokenType.TSTZRANGE: 'TSTZRANGE'>, <TokenType.TRUNCATE: 'TRUNCATE'>, <TokenType.DESC: 'DESC'>, <TokenType.REFRESH: 'REFRESH'>, <TokenType.ARRAY: 'ARRAY'>, <TokenType.UPDATE: 'UPDATE'>, <TokenType.ORDINALITY: 'ORDINALITY'>, <TokenType.RANGE: 'RANGE'>, <TokenType.AUTO_INCREMENT: 'AUTO_INCREMENT'>, <TokenType.PIVOT: 'PIVOT'>, <TokenType.XML: 'XML'>, <TokenType.USE: 'USE'>, <TokenType.EXISTS: 'EXISTS'>, <TokenType.LONGBLOB: 'LONGBLOB'>, <TokenType.EXPORT: 'EXPORT'>, <TokenType.IMAGE: 'IMAGE'>, <TokenType.GEOMETRY: 'GEOMETRY'>, <TokenType.TRUE: 'TRUE'>, <TokenType.TSMULTIRANGE: 'TSMULTIRANGE'>, <TokenType.CURRENT_TIME: 'CURRENT_TIME'>, <TokenType.ROW: 'ROW'>, <TokenType.CURRENT_DATETIME: 'CURRENT_DATETIME'>, <TokenType.INT256: 'INT256'>, <TokenType.MEDIUMINT: 'MEDIUMINT'>, <TokenType.SMALLINT: 'SMALLINT'>, <TokenType.VAR: 'VAR'>, <TokenType.LEFT: 'LEFT'>, <TokenType.OFFSET: 'OFFSET'>, <TokenType.UDECIMAL: 'UDECIMAL'>, <TokenType.SET: 'SET'>, <TokenType.BOOLEAN: 'BOOLEAN'>, <TokenType.BEGIN: 'BEGIN'>, <TokenType.DIV: 'DIV'>, <TokenType.BIGDECIMAL: 'BIGDECIMAL'>, <TokenType.ROWVERSION: 'ROWVERSION'>, <TokenType.MULTIPOLYGON: 'MULTIPOLYGON'>, <TokenType.DECIMAL64: 'DECIMAL64'>, <TokenType.FORMAT: 'FORMAT'>, <TokenType.VIEW: 'VIEW'>, <TokenType.ANTI: 'ANTI'>, <TokenType.BINARY: 'BINARY'>, <TokenType.EXECUTE: 'EXECUTE'>, <TokenType.FINAL: 'FINAL'>, <TokenType.POLYGON: 'POLYGON'>, <TokenType.RENAME: 'RENAME'>, <TokenType.OBJECT: 'OBJECT'>, <TokenType.TIMESTAMPTZ: 'TIMESTAMPTZ'>, <TokenType.TIMESTAMPNTZ: 'TIMESTAMPNTZ'>, <TokenType.VOLATILE: 'VOLATILE'>, <TokenType.DATE32: 'DATE32'>, <TokenType.LIMIT: 'LIMIT'>, <TokenType.TAG: 'TAG'>, <TokenType.DECIMAL256: 'DECIMAL256'>, <TokenType.HSTORE: 'HSTORE'>, <TokenType.DATABASE: 'DATABASE'>, <TokenType.LONGTEXT: 'LONGTEXT'>, <TokenType.YEAR: 'YEAR'>, <TokenType.COLLATE: 'COLLATE'>, <TokenType.MONEY: 'MONEY'>, <TokenType.DECIMAL: 'DECIMAL'>, <TokenType.SMALLDATETIME: 'SMALLDATETIME'>, <TokenType.FALSE: 'FALSE'>, <TokenType.STREAMLIT: 'STREAMLIT'>, <TokenType.COLUMN: 'COLUMN'>, <TokenType.DYNAMIC: 'DYNAMIC'>, <TokenType.SMALLMONEY: 'SMALLMONEY'>, <TokenType.NESTED: 'NESTED'>, <TokenType.FIRST: 'FIRST'>, <TokenType.CHAR: 'CHAR'>, <TokenType.FIXEDSTRING: 'FIXEDSTRING'>, <TokenType.BLOB: 'BLOB'>, <TokenType.INDEX: 'INDEX'>, <TokenType.LIST: 'LIST'>, <TokenType.NAME: 'NAME'>, <TokenType.CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP'>, <TokenType.DEFAULT: 'DEFAULT'>, <TokenType.USMALLINT: 'USMALLINT'>, <TokenType.INT8MULTIRANGE: 'INT8MULTIRANGE'>, <TokenType.DELETE: 'DELETE'>, <TokenType.TSRANGE: 'TSRANGE'>, <TokenType.VARBINARY: 'VARBINARY'>, <TokenType.CONSTRAINT: 'CONSTRAINT'>, <TokenType.ASC: 'ASC'>, <TokenType.UMEDIUMINT: 'UMEDIUMINT'>, <TokenType.JSON: 'JSON'>, <TokenType.DECIMAL32: 'DECIMAL32'>, <TokenType.MERGE: 'MERGE'>, <TokenType.IPADDRESS: 'IPADDRESS'>, <TokenType.DECIMAL128: 'DECIMAL128'>, <TokenType.STRUCT: 'STRUCT'>, <TokenType.OBJECT_IDENTIFIER: 'OBJECT_IDENTIFIER'>, <TokenType.FULL: 'FULL'>, <TokenType.PARTITION: 'PARTITION'>, <TokenType.SMALLSERIAL: 'SMALLSERIAL'>, <TokenType.TOP: 'TOP'>, <TokenType.IPPREFIX: 'IPPREFIX'>, <TokenType.MEDIUMTEXT: 'MEDIUMTEXT'>, <TokenType.CASE: 'CASE'>, <TokenType.INT4MULTIRANGE: 'INT4MULTIRANGE'>, <TokenType.TSTZMULTIRANGE: 'TSTZMULTIRANGE'>, <TokenType.LINESTRING: 'LINESTRING'>, <TokenType.SERIAL: 'SERIAL'>, <TokenType.SOME: 'SOME'>, <TokenType.PRAGMA: 'PRAGMA'>, <TokenType.ALL: 'ALL'>, <TokenType.DATE: 'DATE'>, <TokenType.DATEMULTIRANGE: 'DATEMULTIRANGE'>, <TokenType.BIGINT: 'BIGINT'>, <TokenType.PERCENT: 'PERCENT'>, <TokenType.SCHEMA: 'SCHEMA'>, <TokenType.TABLE: 'TABLE'>, <TokenType.DATETIME64: 'DATETIME64'>, <TokenType.VARCHAR: 'VARCHAR'>, <TokenType.TDIGEST: 'TDIGEST'>, <TokenType.FLOAT: 'FLOAT'>, <TokenType.STRAIGHT_JOIN: 'STRAIGHT_JOIN'>, <TokenType.COPY: 'COPY'>, <TokenType.ASOF: 'ASOF'>, <TokenType.MEDIUMBLOB: 'MEDIUMBLOB'>, <TokenType.CURRENT_USER: 'CURRENT_USER'>, <TokenType.DOUBLE: 'DOUBLE'>, <TokenType.UINT128: 'UINT128'>, <TokenType.KEEP: 'KEEP'>, <TokenType.BPCHAR: 'BPCHAR'>, <TokenType.USERDEFINED: 'USERDEFINED'>, <TokenType.OVERWRITE: 'OVERWRITE'>, <TokenType.STORAGE_INTEGRATION: 'STORAGE_INTEGRATION'>, <TokenType.ESCAPE: 'ESCAPE'>, <TokenType.TIMESTAMP_S: 'TIMESTAMP_S'>, <TokenType.HLLSKETCH: 'HLLSKETCH'>, <TokenType.DATETIME2: 'DATETIME2'>, <TokenType.REPLACE: 'REPLACE'>, <TokenType.TIMESTAMP_NS: 'TIMESTAMP_NS'>, <TokenType.UINT: 'UINT'>, <TokenType.ISNULL: 'ISNULL'>, <TokenType.SUPER: 'SUPER'>, <TokenType.FOREIGN_KEY: 'FOREIGN_KEY'>, <TokenType.DATERANGE: 'DATERANGE'>, <TokenType.IDENTIFIER: 'IDENTIFIER'>}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.ID_VAR_TOKENS"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Parser.TABLE_ALIAS_TOKENS" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">TABLE_ALIAS_TOKENS</span> =
|
|
<input id="Databricks.Parser.TABLE_ALIAS_TOKENS-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.Parser.TABLE_ALIAS_TOKENS-view-value"></label><span class="default_value">{<TokenType.PROCEDURE: 'PROCEDURE'>, <TokenType.IS: 'IS'>, <TokenType.LOAD: 'LOAD'>, <TokenType.TINYINT: 'TINYINT'>, <TokenType.KILL: 'KILL'>, <TokenType.RECURSIVE: 'RECURSIVE'>, <TokenType.NULL: 'NULL'>, <TokenType.SOURCE: 'SOURCE'>, <TokenType.NULLABLE: 'NULLABLE'>, <TokenType.PSEUDO_TYPE: 'PSEUDO_TYPE'>, <TokenType.TIMESTAMP_MS: 'TIMESTAMP_MS'>, <TokenType.MULTILINESTRING: 'MULTILINESTRING'>, <TokenType.ENUM: 'ENUM'>, <TokenType.TEMPORARY: 'TEMPORARY'>, <TokenType.VECTOR: 'VECTOR'>, <TokenType.ANY: 'ANY'>, <TokenType.UINT256: 'UINT256'>, <TokenType.TEXT: 'TEXT'>, <TokenType.UNPIVOT: 'UNPIVOT'>, <TokenType.UDOUBLE: 'UDOUBLE'>, <TokenType.NAMESPACE: 'NAMESPACE'>, <TokenType.UUID: 'UUID'>, <TokenType.CACHE: 'CACHE'>, <TokenType.TINYBLOB: 'TINYBLOB'>, <TokenType.DESCRIBE: 'DESCRIBE'>, <TokenType.RING: 'RING'>, <TokenType.NCHAR: 'NCHAR'>, <TokenType.SEQUENCE: 'SEQUENCE'>, <TokenType.BIGSERIAL: 'BIGSERIAL'>, <TokenType.POINT: 'POINT'>, <TokenType.COMMAND: 'COMMAND'>, <TokenType.MODEL: 'MODEL'>, <TokenType.SIMPLEAGGREGATEFUNCTION: 'SIMPLEAGGREGATEFUNCTION'>, <TokenType.PUT: 'PUT'>, <TokenType.SINK: 'SINK'>, <TokenType.COMMENT: 'COMMENT'>, <TokenType.TIMESTAMPLTZ: 'TIMESTAMPLTZ'>, <TokenType.OPERATOR: 'OPERATOR'>, <TokenType.UBIGINT: 'UBIGINT'>, <TokenType.CURRENT_DATE: 'CURRENT_DATE'>, <TokenType.TIME: 'TIME'>, <TokenType.NVARCHAR: 'NVARCHAR'>, <TokenType.INET: 'INET'>, <TokenType.TIMESTAMP: 'TIMESTAMP'>, <TokenType.UTINYINT: 'UTINYINT'>, <TokenType.UNKNOWN: 'UNKNOWN'>, <TokenType.AGGREGATEFUNCTION: 'AGGREGATEFUNCTION'>, <TokenType.SETTINGS: 'SETTINGS'>, <TokenType.FILTER: 'FILTER'>, <TokenType.NUMMULTIRANGE: 'NUMMULTIRANGE'>, <TokenType.CUBE: 'CUBE'>, <TokenType.IPV6: 'IPV6'>, <TokenType.BIT: 'BIT'>, <TokenType.INT8RANGE: 'INT8RANGE'>, <TokenType.NUMRANGE: 'NUMRANGE'>, <TokenType.OVERLAPS: 'OVERLAPS'>, <TokenType.LOWCARDINALITY: 'LOWCARDINALITY'>, <TokenType.REFERENCES: 'REFERENCES'>, <TokenType.TINYTEXT: 'TINYTEXT'>, <TokenType.ENUM8: 'ENUM8'>, <TokenType.UNIQUE: 'UNIQUE'>, <TokenType.INT128: 'INT128'>, <TokenType.DATETIME: 'DATETIME'>, <TokenType.ATTACH: 'ATTACH'>, <TokenType.JSONB: 'JSONB'>, <TokenType.FUNCTION: 'FUNCTION'>, <TokenType.INT4RANGE: 'INT4RANGE'>, <TokenType.ENUM16: 'ENUM16'>, <TokenType.COMMIT: 'COMMIT'>, <TokenType.DICTIONARY: 'DICTIONARY'>, <TokenType.SHOW: 'SHOW'>, <TokenType.IPV4: 'IPV4'>, <TokenType.INT: 'INT'>, <TokenType.GEOGRAPHY: 'GEOGRAPHY'>, <TokenType.CURRENT_SCHEMA: 'CURRENT_SCHEMA'>, <TokenType.TIMETZ: 'TIMETZ'>, <TokenType.DETACH: 'DETACH'>, <TokenType.WAREHOUSE: 'WAREHOUSE'>, <TokenType.UNNEST: 'UNNEST'>, <TokenType.VARIANT: 'VARIANT'>, <TokenType.MAP: 'MAP'>, <TokenType.NEXT: 'NEXT'>, <TokenType.INTERVAL: 'INTERVAL'>, <TokenType.ROWS: 'ROWS'>, <TokenType.END: 'END'>, <TokenType.ROLLUP: 'ROLLUP'>, <TokenType.TSTZRANGE: 'TSTZRANGE'>, <TokenType.TRUNCATE: 'TRUNCATE'>, <TokenType.DESC: 'DESC'>, <TokenType.REFRESH: 'REFRESH'>, <TokenType.ARRAY: 'ARRAY'>, <TokenType.UPDATE: 'UPDATE'>, <TokenType.ORDINALITY: 'ORDINALITY'>, <TokenType.RANGE: 'RANGE'>, <TokenType.AUTO_INCREMENT: 'AUTO_INCREMENT'>, <TokenType.PIVOT: 'PIVOT'>, <TokenType.XML: 'XML'>, <TokenType.USE: 'USE'>, <TokenType.EXISTS: 'EXISTS'>, <TokenType.LONGBLOB: 'LONGBLOB'>, <TokenType.EXPORT: 'EXPORT'>, <TokenType.IMAGE: 'IMAGE'>, <TokenType.GEOMETRY: 'GEOMETRY'>, <TokenType.TRUE: 'TRUE'>, <TokenType.TSMULTIRANGE: 'TSMULTIRANGE'>, <TokenType.CURRENT_TIME: 'CURRENT_TIME'>, <TokenType.ROW: 'ROW'>, <TokenType.CURRENT_DATETIME: 'CURRENT_DATETIME'>, <TokenType.INT256: 'INT256'>, <TokenType.MEDIUMINT: 'MEDIUMINT'>, <TokenType.SMALLINT: 'SMALLINT'>, <TokenType.VAR: 'VAR'>, <TokenType.OFFSET: 'OFFSET'>, <TokenType.UDECIMAL: 'UDECIMAL'>, <TokenType.SET: 'SET'>, <TokenType.BOOLEAN: 'BOOLEAN'>, <TokenType.BEGIN: 'BEGIN'>, <TokenType.DIV: 'DIV'>, <TokenType.BIGDECIMAL: 'BIGDECIMAL'>, <TokenType.ROWVERSION: 'ROWVERSION'>, <TokenType.MULTIPOLYGON: 'MULTIPOLYGON'>, <TokenType.DECIMAL64: 'DECIMAL64'>, <TokenType.FORMAT: 'FORMAT'>, <TokenType.VIEW: 'VIEW'>, <TokenType.BINARY: 'BINARY'>, <TokenType.EXECUTE: 'EXECUTE'>, <TokenType.FINAL: 'FINAL'>, <TokenType.POLYGON: 'POLYGON'>, <TokenType.RENAME: 'RENAME'>, <TokenType.OBJECT: 'OBJECT'>, <TokenType.TIMESTAMPTZ: 'TIMESTAMPTZ'>, <TokenType.TIMESTAMPNTZ: 'TIMESTAMPNTZ'>, <TokenType.VOLATILE: 'VOLATILE'>, <TokenType.DATE32: 'DATE32'>, <TokenType.LIMIT: 'LIMIT'>, <TokenType.TAG: 'TAG'>, <TokenType.DECIMAL256: 'DECIMAL256'>, <TokenType.HSTORE: 'HSTORE'>, <TokenType.DATABASE: 'DATABASE'>, <TokenType.LONGTEXT: 'LONGTEXT'>, <TokenType.YEAR: 'YEAR'>, <TokenType.COLLATE: 'COLLATE'>, <TokenType.MONEY: 'MONEY'>, <TokenType.DECIMAL: 'DECIMAL'>, <TokenType.SMALLDATETIME: 'SMALLDATETIME'>, <TokenType.FALSE: 'FALSE'>, <TokenType.STREAMLIT: 'STREAMLIT'>, <TokenType.COLUMN: 'COLUMN'>, <TokenType.DYNAMIC: 'DYNAMIC'>, <TokenType.SMALLMONEY: 'SMALLMONEY'>, <TokenType.NESTED: 'NESTED'>, <TokenType.FIRST: 'FIRST'>, <TokenType.CHAR: 'CHAR'>, <TokenType.FIXEDSTRING: 'FIXEDSTRING'>, <TokenType.BLOB: 'BLOB'>, <TokenType.INDEX: 'INDEX'>, <TokenType.LIST: 'LIST'>, <TokenType.NAME: 'NAME'>, <TokenType.CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP'>, <TokenType.DEFAULT: 'DEFAULT'>, <TokenType.USMALLINT: 'USMALLINT'>, <TokenType.INT8MULTIRANGE: 'INT8MULTIRANGE'>, <TokenType.DELETE: 'DELETE'>, <TokenType.TSRANGE: 'TSRANGE'>, <TokenType.VARBINARY: 'VARBINARY'>, <TokenType.CONSTRAINT: 'CONSTRAINT'>, <TokenType.ASC: 'ASC'>, <TokenType.UMEDIUMINT: 'UMEDIUMINT'>, <TokenType.JSON: 'JSON'>, <TokenType.DECIMAL32: 'DECIMAL32'>, <TokenType.MERGE: 'MERGE'>, <TokenType.IPADDRESS: 'IPADDRESS'>, <TokenType.DECIMAL128: 'DECIMAL128'>, <TokenType.STRUCT: 'STRUCT'>, <TokenType.OBJECT_IDENTIFIER: 'OBJECT_IDENTIFIER'>, <TokenType.PARTITION: 'PARTITION'>, <TokenType.SMALLSERIAL: 'SMALLSERIAL'>, <TokenType.TOP: 'TOP'>, <TokenType.IPPREFIX: 'IPPREFIX'>, <TokenType.MEDIUMTEXT: 'MEDIUMTEXT'>, <TokenType.CASE: 'CASE'>, <TokenType.INT4MULTIRANGE: 'INT4MULTIRANGE'>, <TokenType.TSTZMULTIRANGE: 'TSTZMULTIRANGE'>, <TokenType.LINESTRING: 'LINESTRING'>, <TokenType.SERIAL: 'SERIAL'>, <TokenType.SOME: 'SOME'>, <TokenType.PRAGMA: 'PRAGMA'>, <TokenType.ALL: 'ALL'>, <TokenType.DATE: 'DATE'>, <TokenType.DATEMULTIRANGE: 'DATEMULTIRANGE'>, <TokenType.BIGINT: 'BIGINT'>, <TokenType.PERCENT: 'PERCENT'>, <TokenType.SCHEMA: 'SCHEMA'>, <TokenType.TABLE: 'TABLE'>, <TokenType.DATETIME64: 'DATETIME64'>, <TokenType.VARCHAR: 'VARCHAR'>, <TokenType.TDIGEST: 'TDIGEST'>, <TokenType.FLOAT: 'FLOAT'>, <TokenType.STRAIGHT_JOIN: 'STRAIGHT_JOIN'>, <TokenType.COPY: 'COPY'>, <TokenType.MEDIUMBLOB: 'MEDIUMBLOB'>, <TokenType.CURRENT_USER: 'CURRENT_USER'>, <TokenType.DOUBLE: 'DOUBLE'>, <TokenType.UINT128: 'UINT128'>, <TokenType.KEEP: 'KEEP'>, <TokenType.BPCHAR: 'BPCHAR'>, <TokenType.USERDEFINED: 'USERDEFINED'>, <TokenType.OVERWRITE: 'OVERWRITE'>, <TokenType.STORAGE_INTEGRATION: 'STORAGE_INTEGRATION'>, <TokenType.ESCAPE: 'ESCAPE'>, <TokenType.TIMESTAMP_S: 'TIMESTAMP_S'>, <TokenType.HLLSKETCH: 'HLLSKETCH'>, <TokenType.DATETIME2: 'DATETIME2'>, <TokenType.REPLACE: 'REPLACE'>, <TokenType.TIMESTAMP_NS: 'TIMESTAMP_NS'>, <TokenType.UINT: 'UINT'>, <TokenType.ISNULL: 'ISNULL'>, <TokenType.SUPER: 'SUPER'>, <TokenType.FOREIGN_KEY: 'FOREIGN_KEY'>, <TokenType.DATERANGE: 'DATERANGE'>, <TokenType.IDENTIFIER: 'IDENTIFIER'>}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.TABLE_ALIAS_TOKENS"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Parser.SHOW_TRIE" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">SHOW_TRIE</span><span class="annotation">: Dict</span> =
|
|
<span class="default_value">{}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.SHOW_TRIE"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Parser.SET_TRIE" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">SET_TRIE</span><span class="annotation">: Dict</span> =
|
|
<span class="default_value">{'GLOBAL': {0: True}, 'LOCAL': {0: True}, 'SESSION': {0: True}, 'TRANSACTION': {0: True}}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Parser.SET_TRIE"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="inherited">
|
|
<h5>Inherited Members</h5>
|
|
<dl>
|
|
<div><dt><a href="../parser.html#Parser">sqlglot.parser.Parser</a></dt>
|
|
<dd id="Databricks.Parser.__init__" class="function"><a href="../parser.html#Parser.__init__">Parser</a></dd>
|
|
<dd id="Databricks.Parser.STRUCT_TYPE_TOKENS" class="variable"><a href="../parser.html#Parser.STRUCT_TYPE_TOKENS">STRUCT_TYPE_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.NESTED_TYPE_TOKENS" class="variable"><a href="../parser.html#Parser.NESTED_TYPE_TOKENS">NESTED_TYPE_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.ENUM_TYPE_TOKENS" class="variable"><a href="../parser.html#Parser.ENUM_TYPE_TOKENS">ENUM_TYPE_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.AGGREGATE_TYPE_TOKENS" class="variable"><a href="../parser.html#Parser.AGGREGATE_TYPE_TOKENS">AGGREGATE_TYPE_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.TYPE_TOKENS" class="variable"><a href="../parser.html#Parser.TYPE_TOKENS">TYPE_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.SIGNED_TO_UNSIGNED_TYPE_TOKEN" class="variable"><a href="../parser.html#Parser.SIGNED_TO_UNSIGNED_TYPE_TOKEN">SIGNED_TO_UNSIGNED_TYPE_TOKEN</a></dd>
|
|
<dd id="Databricks.Parser.SUBQUERY_PREDICATES" class="variable"><a href="../parser.html#Parser.SUBQUERY_PREDICATES">SUBQUERY_PREDICATES</a></dd>
|
|
<dd id="Databricks.Parser.RESERVED_TOKENS" class="variable"><a href="../parser.html#Parser.RESERVED_TOKENS">RESERVED_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.DB_CREATABLES" class="variable"><a href="../parser.html#Parser.DB_CREATABLES">DB_CREATABLES</a></dd>
|
|
<dd id="Databricks.Parser.CREATABLES" class="variable"><a href="../parser.html#Parser.CREATABLES">CREATABLES</a></dd>
|
|
<dd id="Databricks.Parser.ALTERABLES" class="variable"><a href="../parser.html#Parser.ALTERABLES">ALTERABLES</a></dd>
|
|
<dd id="Databricks.Parser.ALIAS_TOKENS" class="variable"><a href="../parser.html#Parser.ALIAS_TOKENS">ALIAS_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.ARRAY_CONSTRUCTORS" class="variable"><a href="../parser.html#Parser.ARRAY_CONSTRUCTORS">ARRAY_CONSTRUCTORS</a></dd>
|
|
<dd id="Databricks.Parser.COMMENT_TABLE_ALIAS_TOKENS" class="variable"><a href="../parser.html#Parser.COMMENT_TABLE_ALIAS_TOKENS">COMMENT_TABLE_ALIAS_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.UPDATE_ALIAS_TOKENS" class="variable"><a href="../parser.html#Parser.UPDATE_ALIAS_TOKENS">UPDATE_ALIAS_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.TRIM_TYPES" class="variable"><a href="../parser.html#Parser.TRIM_TYPES">TRIM_TYPES</a></dd>
|
|
<dd id="Databricks.Parser.FUNC_TOKENS" class="variable"><a href="../parser.html#Parser.FUNC_TOKENS">FUNC_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.CONJUNCTION" class="variable"><a href="../parser.html#Parser.CONJUNCTION">CONJUNCTION</a></dd>
|
|
<dd id="Databricks.Parser.ASSIGNMENT" class="variable"><a href="../parser.html#Parser.ASSIGNMENT">ASSIGNMENT</a></dd>
|
|
<dd id="Databricks.Parser.DISJUNCTION" class="variable"><a href="../parser.html#Parser.DISJUNCTION">DISJUNCTION</a></dd>
|
|
<dd id="Databricks.Parser.EQUALITY" class="variable"><a href="../parser.html#Parser.EQUALITY">EQUALITY</a></dd>
|
|
<dd id="Databricks.Parser.COMPARISON" class="variable"><a href="../parser.html#Parser.COMPARISON">COMPARISON</a></dd>
|
|
<dd id="Databricks.Parser.BITWISE" class="variable"><a href="../parser.html#Parser.BITWISE">BITWISE</a></dd>
|
|
<dd id="Databricks.Parser.TERM" class="variable"><a href="../parser.html#Parser.TERM">TERM</a></dd>
|
|
<dd id="Databricks.Parser.EXPONENT" class="variable"><a href="../parser.html#Parser.EXPONENT">EXPONENT</a></dd>
|
|
<dd id="Databricks.Parser.TIMES" class="variable"><a href="../parser.html#Parser.TIMES">TIMES</a></dd>
|
|
<dd id="Databricks.Parser.TIMESTAMPS" class="variable"><a href="../parser.html#Parser.TIMESTAMPS">TIMESTAMPS</a></dd>
|
|
<dd id="Databricks.Parser.SET_OPERATIONS" class="variable"><a href="../parser.html#Parser.SET_OPERATIONS">SET_OPERATIONS</a></dd>
|
|
<dd id="Databricks.Parser.JOIN_METHODS" class="variable"><a href="../parser.html#Parser.JOIN_METHODS">JOIN_METHODS</a></dd>
|
|
<dd id="Databricks.Parser.JOIN_SIDES" class="variable"><a href="../parser.html#Parser.JOIN_SIDES">JOIN_SIDES</a></dd>
|
|
<dd id="Databricks.Parser.JOIN_KINDS" class="variable"><a href="../parser.html#Parser.JOIN_KINDS">JOIN_KINDS</a></dd>
|
|
<dd id="Databricks.Parser.JOIN_HINTS" class="variable"><a href="../parser.html#Parser.JOIN_HINTS">JOIN_HINTS</a></dd>
|
|
<dd id="Databricks.Parser.LAMBDAS" class="variable"><a href="../parser.html#Parser.LAMBDAS">LAMBDAS</a></dd>
|
|
<dd id="Databricks.Parser.COLUMN_OPERATORS" class="variable"><a href="../parser.html#Parser.COLUMN_OPERATORS">COLUMN_OPERATORS</a></dd>
|
|
<dd id="Databricks.Parser.EXPRESSION_PARSERS" class="variable"><a href="../parser.html#Parser.EXPRESSION_PARSERS">EXPRESSION_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.STATEMENT_PARSERS" class="variable"><a href="../parser.html#Parser.STATEMENT_PARSERS">STATEMENT_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.UNARY_PARSERS" class="variable"><a href="../parser.html#Parser.UNARY_PARSERS">UNARY_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.STRING_PARSERS" class="variable"><a href="../parser.html#Parser.STRING_PARSERS">STRING_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.NUMERIC_PARSERS" class="variable"><a href="../parser.html#Parser.NUMERIC_PARSERS">NUMERIC_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.PRIMARY_PARSERS" class="variable"><a href="../parser.html#Parser.PRIMARY_PARSERS">PRIMARY_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.PLACEHOLDER_PARSERS" class="variable"><a href="../parser.html#Parser.PLACEHOLDER_PARSERS">PLACEHOLDER_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.RANGE_PARSERS" class="variable"><a href="../parser.html#Parser.RANGE_PARSERS">RANGE_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.CONSTRAINT_PARSERS" class="variable"><a href="../parser.html#Parser.CONSTRAINT_PARSERS">CONSTRAINT_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.ALTER_PARSERS" class="variable"><a href="../parser.html#Parser.ALTER_PARSERS">ALTER_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.ALTER_ALTER_PARSERS" class="variable"><a href="../parser.html#Parser.ALTER_ALTER_PARSERS">ALTER_ALTER_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.SCHEMA_UNNAMED_CONSTRAINTS" class="variable"><a href="../parser.html#Parser.SCHEMA_UNNAMED_CONSTRAINTS">SCHEMA_UNNAMED_CONSTRAINTS</a></dd>
|
|
<dd id="Databricks.Parser.INVALID_FUNC_NAME_TOKENS" class="variable"><a href="../parser.html#Parser.INVALID_FUNC_NAME_TOKENS">INVALID_FUNC_NAME_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.FUNCTIONS_WITH_ALIASED_ARGS" class="variable"><a href="../parser.html#Parser.FUNCTIONS_WITH_ALIASED_ARGS">FUNCTIONS_WITH_ALIASED_ARGS</a></dd>
|
|
<dd id="Databricks.Parser.KEY_VALUE_DEFINITIONS" class="variable"><a href="../parser.html#Parser.KEY_VALUE_DEFINITIONS">KEY_VALUE_DEFINITIONS</a></dd>
|
|
<dd id="Databricks.Parser.QUERY_MODIFIER_PARSERS" class="variable"><a href="../parser.html#Parser.QUERY_MODIFIER_PARSERS">QUERY_MODIFIER_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.SET_PARSERS" class="variable"><a href="../parser.html#Parser.SET_PARSERS">SET_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.SHOW_PARSERS" class="variable"><a href="../parser.html#Parser.SHOW_PARSERS">SHOW_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.TYPE_LITERAL_PARSERS" class="variable"><a href="../parser.html#Parser.TYPE_LITERAL_PARSERS">TYPE_LITERAL_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.TYPE_CONVERTERS" class="variable"><a href="../parser.html#Parser.TYPE_CONVERTERS">TYPE_CONVERTERS</a></dd>
|
|
<dd id="Databricks.Parser.DDL_SELECT_TOKENS" class="variable"><a href="../parser.html#Parser.DDL_SELECT_TOKENS">DDL_SELECT_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.PRE_VOLATILE_TOKENS" class="variable"><a href="../parser.html#Parser.PRE_VOLATILE_TOKENS">PRE_VOLATILE_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.TRANSACTION_KIND" class="variable"><a href="../parser.html#Parser.TRANSACTION_KIND">TRANSACTION_KIND</a></dd>
|
|
<dd id="Databricks.Parser.TRANSACTION_CHARACTERISTICS" class="variable"><a href="../parser.html#Parser.TRANSACTION_CHARACTERISTICS">TRANSACTION_CHARACTERISTICS</a></dd>
|
|
<dd id="Databricks.Parser.CONFLICT_ACTIONS" class="variable"><a href="../parser.html#Parser.CONFLICT_ACTIONS">CONFLICT_ACTIONS</a></dd>
|
|
<dd id="Databricks.Parser.CREATE_SEQUENCE" class="variable"><a href="../parser.html#Parser.CREATE_SEQUENCE">CREATE_SEQUENCE</a></dd>
|
|
<dd id="Databricks.Parser.ISOLATED_LOADING_OPTIONS" class="variable"><a href="../parser.html#Parser.ISOLATED_LOADING_OPTIONS">ISOLATED_LOADING_OPTIONS</a></dd>
|
|
<dd id="Databricks.Parser.USABLES" class="variable"><a href="../parser.html#Parser.USABLES">USABLES</a></dd>
|
|
<dd id="Databricks.Parser.CAST_ACTIONS" class="variable"><a href="../parser.html#Parser.CAST_ACTIONS">CAST_ACTIONS</a></dd>
|
|
<dd id="Databricks.Parser.SCHEMA_BINDING_OPTIONS" class="variable"><a href="../parser.html#Parser.SCHEMA_BINDING_OPTIONS">SCHEMA_BINDING_OPTIONS</a></dd>
|
|
<dd id="Databricks.Parser.PROCEDURE_OPTIONS" class="variable"><a href="../parser.html#Parser.PROCEDURE_OPTIONS">PROCEDURE_OPTIONS</a></dd>
|
|
<dd id="Databricks.Parser.EXECUTE_AS_OPTIONS" class="variable"><a href="../parser.html#Parser.EXECUTE_AS_OPTIONS">EXECUTE_AS_OPTIONS</a></dd>
|
|
<dd id="Databricks.Parser.KEY_CONSTRAINT_OPTIONS" class="variable"><a href="../parser.html#Parser.KEY_CONSTRAINT_OPTIONS">KEY_CONSTRAINT_OPTIONS</a></dd>
|
|
<dd id="Databricks.Parser.INSERT_ALTERNATIVES" class="variable"><a href="../parser.html#Parser.INSERT_ALTERNATIVES">INSERT_ALTERNATIVES</a></dd>
|
|
<dd id="Databricks.Parser.CLONE_KEYWORDS" class="variable"><a href="../parser.html#Parser.CLONE_KEYWORDS">CLONE_KEYWORDS</a></dd>
|
|
<dd id="Databricks.Parser.HISTORICAL_DATA_PREFIX" class="variable"><a href="../parser.html#Parser.HISTORICAL_DATA_PREFIX">HISTORICAL_DATA_PREFIX</a></dd>
|
|
<dd id="Databricks.Parser.HISTORICAL_DATA_KIND" class="variable"><a href="../parser.html#Parser.HISTORICAL_DATA_KIND">HISTORICAL_DATA_KIND</a></dd>
|
|
<dd id="Databricks.Parser.OPCLASS_FOLLOW_KEYWORDS" class="variable"><a href="../parser.html#Parser.OPCLASS_FOLLOW_KEYWORDS">OPCLASS_FOLLOW_KEYWORDS</a></dd>
|
|
<dd id="Databricks.Parser.OPTYPE_FOLLOW_TOKENS" class="variable"><a href="../parser.html#Parser.OPTYPE_FOLLOW_TOKENS">OPTYPE_FOLLOW_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.TABLE_INDEX_HINT_TOKENS" class="variable"><a href="../parser.html#Parser.TABLE_INDEX_HINT_TOKENS">TABLE_INDEX_HINT_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.VIEW_ATTRIBUTES" class="variable"><a href="../parser.html#Parser.VIEW_ATTRIBUTES">VIEW_ATTRIBUTES</a></dd>
|
|
<dd id="Databricks.Parser.WINDOW_ALIAS_TOKENS" class="variable"><a href="../parser.html#Parser.WINDOW_ALIAS_TOKENS">WINDOW_ALIAS_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.WINDOW_BEFORE_PAREN_TOKENS" class="variable"><a href="../parser.html#Parser.WINDOW_BEFORE_PAREN_TOKENS">WINDOW_BEFORE_PAREN_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.WINDOW_SIDES" class="variable"><a href="../parser.html#Parser.WINDOW_SIDES">WINDOW_SIDES</a></dd>
|
|
<dd id="Databricks.Parser.JSON_KEY_VALUE_SEPARATOR_TOKENS" class="variable"><a href="../parser.html#Parser.JSON_KEY_VALUE_SEPARATOR_TOKENS">JSON_KEY_VALUE_SEPARATOR_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.FETCH_TOKENS" class="variable"><a href="../parser.html#Parser.FETCH_TOKENS">FETCH_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.ADD_CONSTRAINT_TOKENS" class="variable"><a href="../parser.html#Parser.ADD_CONSTRAINT_TOKENS">ADD_CONSTRAINT_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.DISTINCT_TOKENS" class="variable"><a href="../parser.html#Parser.DISTINCT_TOKENS">DISTINCT_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.NULL_TOKENS" class="variable"><a href="../parser.html#Parser.NULL_TOKENS">NULL_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.UNNEST_OFFSET_ALIAS_TOKENS" class="variable"><a href="../parser.html#Parser.UNNEST_OFFSET_ALIAS_TOKENS">UNNEST_OFFSET_ALIAS_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.SELECT_START_TOKENS" class="variable"><a href="../parser.html#Parser.SELECT_START_TOKENS">SELECT_START_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.COPY_INTO_VARLEN_OPTIONS" class="variable"><a href="../parser.html#Parser.COPY_INTO_VARLEN_OPTIONS">COPY_INTO_VARLEN_OPTIONS</a></dd>
|
|
<dd id="Databricks.Parser.IS_JSON_PREDICATE_KIND" class="variable"><a href="../parser.html#Parser.IS_JSON_PREDICATE_KIND">IS_JSON_PREDICATE_KIND</a></dd>
|
|
<dd id="Databricks.Parser.ODBC_DATETIME_LITERALS" class="variable"><a href="../parser.html#Parser.ODBC_DATETIME_LITERALS">ODBC_DATETIME_LITERALS</a></dd>
|
|
<dd id="Databricks.Parser.ON_CONDITION_TOKENS" class="variable"><a href="../parser.html#Parser.ON_CONDITION_TOKENS">ON_CONDITION_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.PRIVILEGE_FOLLOW_TOKENS" class="variable"><a href="../parser.html#Parser.PRIVILEGE_FOLLOW_TOKENS">PRIVILEGE_FOLLOW_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.DESCRIBE_STYLES" class="variable"><a href="../parser.html#Parser.DESCRIBE_STYLES">DESCRIBE_STYLES</a></dd>
|
|
<dd id="Databricks.Parser.ANALYZE_STYLES" class="variable"><a href="../parser.html#Parser.ANALYZE_STYLES">ANALYZE_STYLES</a></dd>
|
|
<dd id="Databricks.Parser.ANALYZE_EXPRESSION_PARSERS" class="variable"><a href="../parser.html#Parser.ANALYZE_EXPRESSION_PARSERS">ANALYZE_EXPRESSION_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.PARTITION_KEYWORDS" class="variable"><a href="../parser.html#Parser.PARTITION_KEYWORDS">PARTITION_KEYWORDS</a></dd>
|
|
<dd id="Databricks.Parser.AMBIGUOUS_ALIAS_TOKENS" class="variable"><a href="../parser.html#Parser.AMBIGUOUS_ALIAS_TOKENS">AMBIGUOUS_ALIAS_TOKENS</a></dd>
|
|
<dd id="Databricks.Parser.OPERATION_MODIFIERS" class="variable"><a href="../parser.html#Parser.OPERATION_MODIFIERS">OPERATION_MODIFIERS</a></dd>
|
|
<dd id="Databricks.Parser.RECURSIVE_CTE_SEARCH_KIND" class="variable"><a href="../parser.html#Parser.RECURSIVE_CTE_SEARCH_KIND">RECURSIVE_CTE_SEARCH_KIND</a></dd>
|
|
<dd id="Databricks.Parser.MODIFIABLES" class="variable"><a href="../parser.html#Parser.MODIFIABLES">MODIFIABLES</a></dd>
|
|
<dd id="Databricks.Parser.PREFIXED_PIVOT_COLUMNS" class="variable"><a href="../parser.html#Parser.PREFIXED_PIVOT_COLUMNS">PREFIXED_PIVOT_COLUMNS</a></dd>
|
|
<dd id="Databricks.Parser.IDENTIFY_PIVOT_STRINGS" class="variable"><a href="../parser.html#Parser.IDENTIFY_PIVOT_STRINGS">IDENTIFY_PIVOT_STRINGS</a></dd>
|
|
<dd id="Databricks.Parser.ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN" class="variable"><a href="../parser.html#Parser.ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN">ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN</a></dd>
|
|
<dd id="Databricks.Parser.TABLESAMPLE_CSV" class="variable"><a href="../parser.html#Parser.TABLESAMPLE_CSV">TABLESAMPLE_CSV</a></dd>
|
|
<dd id="Databricks.Parser.DEFAULT_SAMPLING_METHOD" class="variable"><a href="../parser.html#Parser.DEFAULT_SAMPLING_METHOD">DEFAULT_SAMPLING_METHOD</a></dd>
|
|
<dd id="Databricks.Parser.SET_REQUIRES_ASSIGNMENT_DELIMITER" class="variable"><a href="../parser.html#Parser.SET_REQUIRES_ASSIGNMENT_DELIMITER">SET_REQUIRES_ASSIGNMENT_DELIMITER</a></dd>
|
|
<dd id="Databricks.Parser.STRING_ALIASES" class="variable"><a href="../parser.html#Parser.STRING_ALIASES">STRING_ALIASES</a></dd>
|
|
<dd id="Databricks.Parser.MODIFIERS_ATTACHED_TO_SET_OP" class="variable"><a href="../parser.html#Parser.MODIFIERS_ATTACHED_TO_SET_OP">MODIFIERS_ATTACHED_TO_SET_OP</a></dd>
|
|
<dd id="Databricks.Parser.SET_OP_MODIFIERS" class="variable"><a href="../parser.html#Parser.SET_OP_MODIFIERS">SET_OP_MODIFIERS</a></dd>
|
|
<dd id="Databricks.Parser.NO_PAREN_IF_COMMANDS" class="variable"><a href="../parser.html#Parser.NO_PAREN_IF_COMMANDS">NO_PAREN_IF_COMMANDS</a></dd>
|
|
<dd id="Databricks.Parser.JSON_ARROWS_REQUIRE_JSON_TYPE" class="variable"><a href="../parser.html#Parser.JSON_ARROWS_REQUIRE_JSON_TYPE">JSON_ARROWS_REQUIRE_JSON_TYPE</a></dd>
|
|
<dd id="Databricks.Parser.SUPPORTS_IMPLICIT_UNNEST" class="variable"><a href="../parser.html#Parser.SUPPORTS_IMPLICIT_UNNEST">SUPPORTS_IMPLICIT_UNNEST</a></dd>
|
|
<dd id="Databricks.Parser.INTERVAL_SPANS" class="variable"><a href="../parser.html#Parser.INTERVAL_SPANS">INTERVAL_SPANS</a></dd>
|
|
<dd id="Databricks.Parser.SUPPORTS_PARTITION_SELECTION" class="variable"><a href="../parser.html#Parser.SUPPORTS_PARTITION_SELECTION">SUPPORTS_PARTITION_SELECTION</a></dd>
|
|
<dd id="Databricks.Parser.WRAPPED_TRANSFORM_COLUMN_CONSTRAINT" class="variable"><a href="../parser.html#Parser.WRAPPED_TRANSFORM_COLUMN_CONSTRAINT">WRAPPED_TRANSFORM_COLUMN_CONSTRAINT</a></dd>
|
|
<dd id="Databricks.Parser.OPTIONAL_ALIAS_TOKEN_CTE" class="variable"><a href="../parser.html#Parser.OPTIONAL_ALIAS_TOKEN_CTE">OPTIONAL_ALIAS_TOKEN_CTE</a></dd>
|
|
<dd id="Databricks.Parser.error_level" class="variable"><a href="../parser.html#Parser.error_level">error_level</a></dd>
|
|
<dd id="Databricks.Parser.error_message_context" class="variable"><a href="../parser.html#Parser.error_message_context">error_message_context</a></dd>
|
|
<dd id="Databricks.Parser.max_errors" class="variable"><a href="../parser.html#Parser.max_errors">max_errors</a></dd>
|
|
<dd id="Databricks.Parser.dialect" class="variable"><a href="../parser.html#Parser.dialect">dialect</a></dd>
|
|
<dd id="Databricks.Parser.reset" class="function"><a href="../parser.html#Parser.reset">reset</a></dd>
|
|
<dd id="Databricks.Parser.parse" class="function"><a href="../parser.html#Parser.parse">parse</a></dd>
|
|
<dd id="Databricks.Parser.parse_into" class="function"><a href="../parser.html#Parser.parse_into">parse_into</a></dd>
|
|
<dd id="Databricks.Parser.check_errors" class="function"><a href="../parser.html#Parser.check_errors">check_errors</a></dd>
|
|
<dd id="Databricks.Parser.raise_error" class="function"><a href="../parser.html#Parser.raise_error">raise_error</a></dd>
|
|
<dd id="Databricks.Parser.expression" class="function"><a href="../parser.html#Parser.expression">expression</a></dd>
|
|
<dd id="Databricks.Parser.validate_expression" class="function"><a href="../parser.html#Parser.validate_expression">validate_expression</a></dd>
|
|
<dd id="Databricks.Parser.errors" class="variable"><a href="../parser.html#Parser.errors">errors</a></dd>
|
|
<dd id="Databricks.Parser.sql" class="variable"><a href="../parser.html#Parser.sql">sql</a></dd>
|
|
|
|
</div>
|
|
<div><dt><a href="spark2.html#Spark2.Parser">sqlglot.dialects.spark2.Spark2.Parser</a></dt>
|
|
<dd id="Databricks.Parser.TRIM_PATTERN_FIRST" class="variable"><a href="spark2.html#Spark2.Parser.TRIM_PATTERN_FIRST">TRIM_PATTERN_FIRST</a></dd>
|
|
<dd id="Databricks.Parser.FUNCTION_PARSERS" class="variable"><a href="spark2.html#Spark2.Parser.FUNCTION_PARSERS">FUNCTION_PARSERS</a></dd>
|
|
|
|
</div>
|
|
<div><dt><a href="hive.html#Hive.Parser">sqlglot.dialects.hive.Hive.Parser</a></dt>
|
|
<dd id="Databricks.Parser.VALUES_FOLLOWED_BY_PAREN" class="variable"><a href="hive.html#Hive.Parser.VALUES_FOLLOWED_BY_PAREN">VALUES_FOLLOWED_BY_PAREN</a></dd>
|
|
<dd id="Databricks.Parser.NO_PAREN_FUNCTION_PARSERS" class="variable"><a href="hive.html#Hive.Parser.NO_PAREN_FUNCTION_PARSERS">NO_PAREN_FUNCTION_PARSERS</a></dd>
|
|
<dd id="Databricks.Parser.NO_PAREN_FUNCTIONS" class="variable"><a href="hive.html#Hive.Parser.NO_PAREN_FUNCTIONS">NO_PAREN_FUNCTIONS</a></dd>
|
|
<dd id="Databricks.Parser.PROPERTY_PARSERS" class="variable"><a href="hive.html#Hive.Parser.PROPERTY_PARSERS">PROPERTY_PARSERS</a></dd>
|
|
|
|
</div>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
<section id="Databricks.Generator">
|
|
<input id="Databricks.Generator-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<div class="attr class">
|
|
|
|
<span class="def">class</span>
|
|
<span class="name">Databricks.Generator</span><wbr>(<span class="base"><a href="spark.html#Spark.Generator">sqlglot.dialects.spark.Spark.Generator</a></span>):
|
|
|
|
<label class="view-source-button" for="Databricks.Generator-view-source"><span>View Source</span></label>
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator"></a>
|
|
<div class="pdoc-code codehilite"><pre><span></span><span id="Databricks.Generator-59"><a href="#Databricks.Generator-59"><span class="linenos"> 59</span></a> <span class="k">class</span><span class="w"> </span><span class="nc">Generator</span><span class="p">(</span><span class="n">Spark</span><span class="o">.</span><span class="n">Generator</span><span class="p">):</span>
|
|
</span><span id="Databricks.Generator-60"><a href="#Databricks.Generator-60"><span class="linenos"> 60</span></a> <span class="n">TABLESAMPLE_SEED_KEYWORD</span> <span class="o">=</span> <span class="s2">"REPEATABLE"</span>
|
|
</span><span id="Databricks.Generator-61"><a href="#Databricks.Generator-61"><span class="linenos"> 61</span></a> <span class="n">COPY_PARAMS_ARE_WRAPPED</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="Databricks.Generator-62"><a href="#Databricks.Generator-62"><span class="linenos"> 62</span></a> <span class="n">COPY_PARAMS_EQ_REQUIRED</span> <span class="o">=</span> <span class="kc">True</span>
|
|
</span><span id="Databricks.Generator-63"><a href="#Databricks.Generator-63"><span class="linenos"> 63</span></a> <span class="n">JSON_PATH_SINGLE_QUOTE_ESCAPE</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="Databricks.Generator-64"><a href="#Databricks.Generator-64"><span class="linenos"> 64</span></a> <span class="n">QUOTE_JSON_PATH</span> <span class="o">=</span> <span class="kc">False</span>
|
|
</span><span id="Databricks.Generator-65"><a href="#Databricks.Generator-65"><span class="linenos"> 65</span></a> <span class="n">PARSE_JSON_NAME</span> <span class="o">=</span> <span class="s2">"PARSE_JSON"</span>
|
|
</span><span id="Databricks.Generator-66"><a href="#Databricks.Generator-66"><span class="linenos"> 66</span></a>
|
|
</span><span id="Databricks.Generator-67"><a href="#Databricks.Generator-67"><span class="linenos"> 67</span></a> <span class="n">TRANSFORMS</span> <span class="o">=</span> <span class="p">{</span>
|
|
</span><span id="Databricks.Generator-68"><a href="#Databricks.Generator-68"><span class="linenos"> 68</span></a> <span class="o">**</span><span class="n">Spark</span><span class="o">.</span><span class="n">Generator</span><span class="o">.</span><span class="n">TRANSFORMS</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-69"><a href="#Databricks.Generator-69"><span class="linenos"> 69</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DateAdd</span><span class="p">:</span> <span class="n">date_delta_sql</span><span class="p">(</span><span class="s2">"DATEADD"</span><span class="p">),</span>
|
|
</span><span id="Databricks.Generator-70"><a href="#Databricks.Generator-70"><span class="linenos"> 70</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DateDiff</span><span class="p">:</span> <span class="n">date_delta_sql</span><span class="p">(</span><span class="s2">"DATEDIFF"</span><span class="p">),</span>
|
|
</span><span id="Databricks.Generator-71"><a href="#Databricks.Generator-71"><span class="linenos"> 71</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeAdd</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span>
|
|
</span><span id="Databricks.Generator-72"><a href="#Databricks.Generator-72"><span class="linenos"> 72</span></a> <span class="s2">"TIMESTAMPADD"</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">unit</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">expression</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">this</span>
|
|
</span><span id="Databricks.Generator-73"><a href="#Databricks.Generator-73"><span class="linenos"> 73</span></a> <span class="p">),</span>
|
|
</span><span id="Databricks.Generator-74"><a href="#Databricks.Generator-74"><span class="linenos"> 74</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeSub</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span>
|
|
</span><span id="Databricks.Generator-75"><a href="#Databricks.Generator-75"><span class="linenos"> 75</span></a> <span class="s2">"TIMESTAMPADD"</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-76"><a href="#Databricks.Generator-76"><span class="linenos"> 76</span></a> <span class="n">e</span><span class="o">.</span><span class="n">unit</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-77"><a href="#Databricks.Generator-77"><span class="linenos"> 77</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">Mul</span><span class="p">(</span><span class="n">this</span><span class="o">=</span><span class="n">e</span><span class="o">.</span><span class="n">expression</span><span class="p">,</span> <span class="n">expression</span><span class="o">=</span><span class="n">exp</span><span class="o">.</span><span class="n">Literal</span><span class="o">.</span><span class="n">number</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">)),</span>
|
|
</span><span id="Databricks.Generator-78"><a href="#Databricks.Generator-78"><span class="linenos"> 78</span></a> <span class="n">e</span><span class="o">.</span><span class="n">this</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-79"><a href="#Databricks.Generator-79"><span class="linenos"> 79</span></a> <span class="p">),</span>
|
|
</span><span id="Databricks.Generator-80"><a href="#Databricks.Generator-80"><span class="linenos"> 80</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">DatetimeTrunc</span><span class="p">:</span> <span class="n">timestamptrunc_sql</span><span class="p">(),</span>
|
|
</span><span id="Databricks.Generator-81"><a href="#Databricks.Generator-81"><span class="linenos"> 81</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">Select</span><span class="p">:</span> <span class="n">transforms</span><span class="o">.</span><span class="n">preprocess</span><span class="p">(</span>
|
|
</span><span id="Databricks.Generator-82"><a href="#Databricks.Generator-82"><span class="linenos"> 82</span></a> <span class="p">[</span>
|
|
</span><span id="Databricks.Generator-83"><a href="#Databricks.Generator-83"><span class="linenos"> 83</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">eliminate_distinct_on</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-84"><a href="#Databricks.Generator-84"><span class="linenos"> 84</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">unnest_to_explode</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-85"><a href="#Databricks.Generator-85"><span class="linenos"> 85</span></a> <span class="n">transforms</span><span class="o">.</span><span class="n">any_to_exists</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-86"><a href="#Databricks.Generator-86"><span class="linenos"> 86</span></a> <span class="p">]</span>
|
|
</span><span id="Databricks.Generator-87"><a href="#Databricks.Generator-87"><span class="linenos"> 87</span></a> <span class="p">),</span>
|
|
</span><span id="Databricks.Generator-88"><a href="#Databricks.Generator-88"><span class="linenos"> 88</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtract</span><span class="p">:</span> <span class="n">_jsonextract_sql</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-89"><a href="#Databricks.Generator-89"><span class="linenos"> 89</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONExtractScalar</span><span class="p">:</span> <span class="n">_jsonextract_sql</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-90"><a href="#Databricks.Generator-90"><span class="linenos"> 90</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">JSONPathRoot</span><span class="p">:</span> <span class="k">lambda</span> <span class="o">*</span><span class="n">_</span><span class="p">:</span> <span class="s2">""</span><span class="p">,</span>
|
|
</span><span id="Databricks.Generator-91"><a href="#Databricks.Generator-91"><span class="linenos"> 91</span></a> <span class="n">exp</span><span class="o">.</span><span class="n">ToChar</span><span class="p">:</span> <span class="k">lambda</span> <span class="bp">self</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">function_fallback_sql</span><span class="p">(</span><span class="n">e</span><span class="p">),</span>
|
|
</span><span id="Databricks.Generator-92"><a href="#Databricks.Generator-92"><span class="linenos"> 92</span></a> <span class="p">}</span>
|
|
</span><span id="Databricks.Generator-93"><a href="#Databricks.Generator-93"><span class="linenos"> 93</span></a>
|
|
</span><span id="Databricks.Generator-94"><a href="#Databricks.Generator-94"><span class="linenos"> 94</span></a> <span class="n">TRANSFORMS</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">TryCast</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator-95"><a href="#Databricks.Generator-95"><span class="linenos"> 95</span></a>
|
|
</span><span id="Databricks.Generator-96"><a href="#Databricks.Generator-96"><span class="linenos"> 96</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">columndef_sql</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">ColumnDef</span><span class="p">,</span> <span class="n">sep</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">" "</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks.Generator-97"><a href="#Databricks.Generator-97"><span class="linenos"> 97</span></a> <span class="n">constraint</span> <span class="o">=</span> <span class="n">expression</span><span class="o">.</span><span class="n">find</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">GeneratedAsIdentityColumnConstraint</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator-98"><a href="#Databricks.Generator-98"><span class="linenos"> 98</span></a> <span class="n">kind</span> <span class="o">=</span> <span class="n">expression</span><span class="o">.</span><span class="n">kind</span>
|
|
</span><span id="Databricks.Generator-99"><a href="#Databricks.Generator-99"><span class="linenos"> 99</span></a> <span class="k">if</span> <span class="p">(</span>
|
|
</span><span id="Databricks.Generator-100"><a href="#Databricks.Generator-100"><span class="linenos">100</span></a> <span class="n">constraint</span>
|
|
</span><span id="Databricks.Generator-101"><a href="#Databricks.Generator-101"><span class="linenos">101</span></a> <span class="ow">and</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">kind</span><span class="p">,</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator-102"><a href="#Databricks.Generator-102"><span class="linenos">102</span></a> <span class="ow">and</span> <span class="n">kind</span><span class="o">.</span><span class="n">this</span> <span class="ow">in</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="o">.</span><span class="n">INTEGER_TYPES</span>
|
|
</span><span id="Databricks.Generator-103"><a href="#Databricks.Generator-103"><span class="linenos">103</span></a> <span class="p">):</span>
|
|
</span><span id="Databricks.Generator-104"><a href="#Databricks.Generator-104"><span class="linenos">104</span></a> <span class="c1"># only BIGINT generated identity constraints are supported</span>
|
|
</span><span id="Databricks.Generator-105"><a href="#Databricks.Generator-105"><span class="linenos">105</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"kind"</span><span class="p">,</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="o">.</span><span class="n">build</span><span class="p">(</span><span class="s2">"bigint"</span><span class="p">))</span>
|
|
</span><span id="Databricks.Generator-106"><a href="#Databricks.Generator-106"><span class="linenos">106</span></a>
|
|
</span><span id="Databricks.Generator-107"><a href="#Databricks.Generator-107"><span class="linenos">107</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">columndef_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">,</span> <span class="n">sep</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator-108"><a href="#Databricks.Generator-108"><span class="linenos">108</span></a>
|
|
</span><span id="Databricks.Generator-109"><a href="#Databricks.Generator-109"><span class="linenos">109</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">generatedasidentitycolumnconstraint_sql</span><span class="p">(</span>
|
|
</span><span id="Databricks.Generator-110"><a href="#Databricks.Generator-110"><span class="linenos">110</span></a> <span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">GeneratedAsIdentityColumnConstraint</span>
|
|
</span><span id="Databricks.Generator-111"><a href="#Databricks.Generator-111"><span class="linenos">111</span></a> <span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks.Generator-112"><a href="#Databricks.Generator-112"><span class="linenos">112</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"this"</span><span class="p">,</span> <span class="kc">True</span><span class="p">)</span> <span class="c1"># trigger ALWAYS in super class</span>
|
|
</span><span id="Databricks.Generator-113"><a href="#Databricks.Generator-113"><span class="linenos">113</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">generatedasidentitycolumnconstraint_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator-114"><a href="#Databricks.Generator-114"><span class="linenos">114</span></a>
|
|
</span><span id="Databricks.Generator-115"><a href="#Databricks.Generator-115"><span class="linenos">115</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">jsonpath_sql</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONPath</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks.Generator-116"><a href="#Databricks.Generator-116"><span class="linenos">116</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"escape"</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator-117"><a href="#Databricks.Generator-117"><span class="linenos">117</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">jsonpath_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span>
|
|
</span></pre></div>
|
|
|
|
|
|
<div class="docstring"><p>Generator converts a given syntax tree to the corresponding SQL string.</p>
|
|
|
|
<h6 id="arguments">Arguments:</h6>
|
|
|
|
<ul>
|
|
<li><strong>pretty:</strong> Whether to format the produced SQL string.
|
|
Default: False.</li>
|
|
<li><strong>identify:</strong> Determines when an identifier should be quoted. Possible values are:
|
|
False (default): Never quote, except in cases where it's mandatory by the dialect.
|
|
True or 'always': Always quote.
|
|
'safe': Only quote identifiers that are case insensitive.</li>
|
|
<li><strong>normalize:</strong> Whether to normalize identifiers to lowercase.
|
|
Default: False.</li>
|
|
<li><strong>pad:</strong> The pad size in a formatted string. For example, this affects the indentation of
|
|
a projection in a query, relative to its nesting level.
|
|
Default: 2.</li>
|
|
<li><strong>indent:</strong> The indentation size in a formatted string. For example, this affects the
|
|
indentation of subqueries and filters under a <code>WHERE</code> clause.
|
|
Default: 2.</li>
|
|
<li><strong>normalize_functions:</strong> How to normalize function names. Possible values are:
|
|
"upper" or True (default): Convert names to uppercase.
|
|
"lower": Convert names to lowercase.
|
|
False: Disables function name normalization.</li>
|
|
<li><strong>unsupported_level:</strong> Determines the generator's behavior when it encounters unsupported expressions.
|
|
Default ErrorLevel.WARN.</li>
|
|
<li><strong>max_unsupported:</strong> Maximum number of unsupported messages to include in a raised UnsupportedError.
|
|
This is only relevant if unsupported_level is ErrorLevel.RAISE.
|
|
Default: 3</li>
|
|
<li><strong>leading_comma:</strong> Whether the comma is leading or trailing in select expressions.
|
|
This is only relevant when generating in pretty mode.
|
|
Default: False</li>
|
|
<li><strong>max_text_width:</strong> The max number of characters in a segment before creating new lines in pretty mode.
|
|
The default is on the smaller end because the length only represents a segment and not the true
|
|
line length.
|
|
Default: 80</li>
|
|
<li><strong>comments:</strong> Whether to preserve comments in the output SQL code.
|
|
Default: True</li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<div id="Databricks.Generator.TABLESAMPLE_SEED_KEYWORD" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">TABLESAMPLE_SEED_KEYWORD</span> =
|
|
<span class="default_value">'REPEATABLE'</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.TABLESAMPLE_SEED_KEYWORD"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.COPY_PARAMS_ARE_WRAPPED" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">COPY_PARAMS_ARE_WRAPPED</span> =
|
|
<span class="default_value">False</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.COPY_PARAMS_ARE_WRAPPED"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.COPY_PARAMS_EQ_REQUIRED" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">COPY_PARAMS_EQ_REQUIRED</span> =
|
|
<span class="default_value">True</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.COPY_PARAMS_EQ_REQUIRED"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.JSON_PATH_SINGLE_QUOTE_ESCAPE" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">JSON_PATH_SINGLE_QUOTE_ESCAPE</span> =
|
|
<span class="default_value">False</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.JSON_PATH_SINGLE_QUOTE_ESCAPE"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.QUOTE_JSON_PATH" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">QUOTE_JSON_PATH</span> =
|
|
<span class="default_value">False</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.QUOTE_JSON_PATH"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.PARSE_JSON_NAME" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">PARSE_JSON_NAME</span> =
|
|
<span class="default_value">'PARSE_JSON'</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.PARSE_JSON_NAME"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.TRANSFORMS" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">TRANSFORMS</span> =
|
|
<input id="Databricks.Generator.TRANSFORMS-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<label class="view-value-button pdoc-button" for="Databricks.Generator.TRANSFORMS-view-value"></label><span class="default_value">{<class '<a href="../expressions.html#JSONPathKey">sqlglot.expressions.JSONPathKey</a>'>: <function <lambda>>, <class '<a href="../expressions.html#JSONPathRoot">sqlglot.expressions.JSONPathRoot</a>'>: <function <a href="#Databricks.Generator">Databricks.Generator</a>.<lambda>>, <class '<a href="../expressions.html#JSONPathSubscript">sqlglot.expressions.JSONPathSubscript</a>'>: <function <lambda>>, <class '<a href="../expressions.html#JSONPathWildcard">sqlglot.expressions.JSONPathWildcard</a>'>: <function <lambda>>, <class '<a href="../expressions.html#AllowedValuesProperty">sqlglot.expressions.AllowedValuesProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#AnalyzeColumns">sqlglot.expressions.AnalyzeColumns</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#AnalyzeWith">sqlglot.expressions.AnalyzeWith</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ArrayContainsAll">sqlglot.expressions.ArrayContainsAll</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ArrayOverlaps">sqlglot.expressions.ArrayOverlaps</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#AutoRefreshProperty">sqlglot.expressions.AutoRefreshProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#BackupProperty">sqlglot.expressions.BackupProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#CaseSpecificColumnConstraint">sqlglot.expressions.CaseSpecificColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Ceil">sqlglot.expressions.Ceil</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#CharacterSetColumnConstraint">sqlglot.expressions.CharacterSetColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#CharacterSetProperty">sqlglot.expressions.CharacterSetProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ClusteredColumnConstraint">sqlglot.expressions.ClusteredColumnConstraint</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#CollateColumnConstraint">sqlglot.expressions.CollateColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#CommentColumnConstraint">sqlglot.expressions.CommentColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ConnectByRoot">sqlglot.expressions.ConnectByRoot</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#CopyGrantsProperty">sqlglot.expressions.CopyGrantsProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#DateFormatColumnConstraint">sqlglot.expressions.DateFormatColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#DefaultColumnConstraint">sqlglot.expressions.DefaultColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#DynamicProperty">sqlglot.expressions.DynamicProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#EmptyProperty">sqlglot.expressions.EmptyProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#EncodeColumnConstraint">sqlglot.expressions.EncodeColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#EphemeralColumnConstraint">sqlglot.expressions.EphemeralColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ExcludeColumnConstraint">sqlglot.expressions.ExcludeColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ExecuteAsProperty">sqlglot.expressions.ExecuteAsProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Except">sqlglot.expressions.Except</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ExternalProperty">sqlglot.expressions.ExternalProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Floor">sqlglot.expressions.Floor</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#GlobalProperty">sqlglot.expressions.GlobalProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#HeapProperty">sqlglot.expressions.HeapProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#IcebergProperty">sqlglot.expressions.IcebergProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#InheritsProperty">sqlglot.expressions.InheritsProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#InlineLengthColumnConstraint">sqlglot.expressions.InlineLengthColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#InputModelProperty">sqlglot.expressions.InputModelProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Intersect">sqlglot.expressions.Intersect</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#IntervalSpan">sqlglot.expressions.IntervalSpan</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Int64">sqlglot.expressions.Int64</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#LanguageProperty">sqlglot.expressions.LanguageProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#LocationProperty">sqlglot.expressions.LocationProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#LogProperty">sqlglot.expressions.LogProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#MaterializedProperty">sqlglot.expressions.MaterializedProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#NonClusteredColumnConstraint">sqlglot.expressions.NonClusteredColumnConstraint</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#NoPrimaryIndexProperty">sqlglot.expressions.NoPrimaryIndexProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#NotForReplicationColumnConstraint">sqlglot.expressions.NotForReplicationColumnConstraint</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#OnCommitProperty">sqlglot.expressions.OnCommitProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#OnProperty">sqlglot.expressions.OnProperty</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#OnUpdateColumnConstraint">sqlglot.expressions.OnUpdateColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Operator">sqlglot.expressions.Operator</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#OutputModelProperty">sqlglot.expressions.OutputModelProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#PathColumnConstraint">sqlglot.expressions.PathColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#PivotAny">sqlglot.expressions.PivotAny</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ProjectionPolicyColumnConstraint">sqlglot.expressions.ProjectionPolicyColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#RemoteWithConnectionModelProperty">sqlglot.expressions.RemoteWithConnectionModelProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ReturnsProperty">sqlglot.expressions.ReturnsProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SampleProperty">sqlglot.expressions.SampleProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SecureProperty">sqlglot.expressions.SecureProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SecurityProperty">sqlglot.expressions.SecurityProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SetConfigProperty">sqlglot.expressions.SetConfigProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SetProperty">sqlglot.expressions.SetProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SettingsProperty">sqlglot.expressions.SettingsProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SharingProperty">sqlglot.expressions.SharingProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SqlReadWriteProperty">sqlglot.expressions.SqlReadWriteProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SqlSecurityProperty">sqlglot.expressions.SqlSecurityProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#StabilityProperty">sqlglot.expressions.StabilityProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Stream">sqlglot.expressions.Stream</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#StreamingTableProperty">sqlglot.expressions.StreamingTableProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#StrictProperty">sqlglot.expressions.StrictProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#SwapTable">sqlglot.expressions.SwapTable</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Tags">sqlglot.expressions.Tags</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#TemporaryProperty">sqlglot.expressions.TemporaryProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#TitleColumnConstraint">sqlglot.expressions.TitleColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ToMap">sqlglot.expressions.ToMap</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ToTableProperty">sqlglot.expressions.ToTableProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#TransformModelProperty">sqlglot.expressions.TransformModelProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#TransientProperty">sqlglot.expressions.TransientProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Union">sqlglot.expressions.Union</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#UnloggedProperty">sqlglot.expressions.UnloggedProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#UsingTemplateProperty">sqlglot.expressions.UsingTemplateProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#UsingData">sqlglot.expressions.UsingData</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Uuid">sqlglot.expressions.Uuid</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#UppercaseColumnConstraint">sqlglot.expressions.UppercaseColumnConstraint</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#VarMap">sqlglot.expressions.VarMap</a>'>: <function var_map_sql>, <class '<a href="../expressions.html#ViewAttributeProperty">sqlglot.expressions.ViewAttributeProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#VolatileProperty">sqlglot.expressions.VolatileProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#WithJournalTableProperty">sqlglot.expressions.WithJournalTableProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#WithProcedureOptions">sqlglot.expressions.WithProcedureOptions</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#WithSchemaBindingProperty">sqlglot.expressions.WithSchemaBindingProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#WithOperator">sqlglot.expressions.WithOperator</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#ForceProperty">sqlglot.expressions.ForceProperty</a>'>: <function Generator.<lambda>>, <class '<a href="../expressions.html#Property">sqlglot.expressions.Property</a>'>: <function property_sql>, <class '<a href="../expressions.html#ApproxDistinct">sqlglot.expressions.ApproxDistinct</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#ArgMax">sqlglot.expressions.ArgMax</a>'>: <function arg_max_or_min_no_count.<locals>._arg_max_or_min_sql>, <class '<a href="../expressions.html#ArgMin">sqlglot.expressions.ArgMin</a>'>: <function arg_max_or_min_no_count.<locals>._arg_max_or_min_sql>, <class '<a href="../expressions.html#ArrayConcat">sqlglot.expressions.ArrayConcat</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#ArrayToString">sqlglot.expressions.ArrayToString</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#With">sqlglot.expressions.With</a>'>: <function no_recursive_cte_sql>, <class '<a href="../expressions.html#DateAdd">sqlglot.expressions.DateAdd</a>'>: <function date_delta_sql.<locals>._delta_sql>, <class '<a href="../expressions.html#DateStrToDate">sqlglot.expressions.DateStrToDate</a>'>: <function datestrtodate_sql>, <class '<a href="../expressions.html#DateSub">sqlglot.expressions.DateSub</a>'>: <function _add_date_sql>, <class '<a href="../expressions.html#DateToDi">sqlglot.expressions.DateToDi</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#DiToDate">sqlglot.expressions.DiToDate</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#FileFormatProperty">sqlglot.expressions.FileFormatProperty</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#StorageHandlerProperty">sqlglot.expressions.StorageHandlerProperty</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#FromBase64">sqlglot.expressions.FromBase64</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#GenerateSeries">sqlglot.expressions.GenerateSeries</a>'>: <function sequence_sql>, <class '<a href="../expressions.html#GenerateDateArray">sqlglot.expressions.GenerateDateArray</a>'>: <function sequence_sql>, <class '<a href="../expressions.html#If">sqlglot.expressions.If</a>'>: <function if_sql.<locals>._if_sql>, <class '<a href="../expressions.html#IsNan">sqlglot.expressions.IsNan</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#JSONExtract">sqlglot.expressions.JSONExtract</a>'>: <function _jsonextract_sql>, <class '<a href="../expressions.html#JSONExtractScalar">sqlglot.expressions.JSONExtractScalar</a>'>: <function _jsonextract_sql>, <class '<a href="../expressions.html#JSONFormat">sqlglot.expressions.JSONFormat</a>'>: <function _json_format_sql>, <class '<a href="../expressions.html#Map">sqlglot.expressions.Map</a>'>: <function _map_sql>, <class '<a href="../expressions.html#Max">sqlglot.expressions.Max</a>'>: <function max_or_greatest>, <class '<a href="../expressions.html#MD5Digest">sqlglot.expressions.MD5Digest</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#Min">sqlglot.expressions.Min</a>'>: <function min_or_least>, <class '<a href="../expressions.html#NotNullColumnConstraint">sqlglot.expressions.NotNullColumnConstraint</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#Create">sqlglot.expressions.Create</a>'>: <function preprocess.<locals>._to_sql>, <class '<a href="../expressions.html#Quantile">sqlglot.expressions.Quantile</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#ApproxQuantile">sqlglot.expressions.ApproxQuantile</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#RegexpExtract">sqlglot.expressions.RegexpExtract</a>'>: <function regexp_extract_sql>, <class '<a href="../expressions.html#RegexpExtractAll">sqlglot.expressions.RegexpExtractAll</a>'>: <function regexp_extract_sql>, <class '<a href="../expressions.html#RegexpReplace">sqlglot.expressions.RegexpReplace</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#RegexpLike">sqlglot.expressions.RegexpLike</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#RegexpSplit">sqlglot.expressions.RegexpSplit</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#SchemaCommentProperty">sqlglot.expressions.SchemaCommentProperty</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#ArrayUniqueAgg">sqlglot.expressions.ArrayUniqueAgg</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#Split">sqlglot.expressions.Split</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#Select">sqlglot.expressions.Select</a>'>: <function preprocess.<locals>._to_sql>, <class '<a href="../expressions.html#StrPosition">sqlglot.expressions.StrPosition</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#StrToDate">sqlglot.expressions.StrToDate</a>'>: <function _str_to_date>, <class '<a href="../expressions.html#StrToTime">sqlglot.expressions.StrToTime</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#StrToUnix">sqlglot.expressions.StrToUnix</a>'>: <function _str_to_unix_sql>, <class '<a href="../expressions.html#StructExtract">sqlglot.expressions.StructExtract</a>'>: <function struct_extract_sql>, <class '<a href="../expressions.html#StarMap">sqlglot.expressions.StarMap</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#Table">sqlglot.expressions.Table</a>'>: <function preprocess.<locals>._to_sql>, <class '<a href="../expressions.html#TimeStrToDate">sqlglot.expressions.TimeStrToDate</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#TimeStrToTime">sqlglot.expressions.TimeStrToTime</a>'>: <function timestrtotime_sql>, <class '<a href="../expressions.html#TimeStrToUnix">sqlglot.expressions.TimeStrToUnix</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#TimestampTrunc">sqlglot.expressions.TimestampTrunc</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#TimeToUnix">sqlglot.expressions.TimeToUnix</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#ToBase64">sqlglot.expressions.ToBase64</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#TsOrDiToDi">sqlglot.expressions.TsOrDiToDi</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#TsOrDsAdd">sqlglot.expressions.TsOrDsAdd</a>'>: <function _dateadd_sql>, <class '<a href="../expressions.html#TsOrDsDiff">sqlglot.expressions.TsOrDsDiff</a>'>: <function _date_diff_sql>, <class '<a href="../expressions.html#TsOrDsToDate">sqlglot.expressions.TsOrDsToDate</a>'>: <function _to_date_sql>, <class '<a href="../expressions.html#Unicode">sqlglot.expressions.Unicode</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#UnixToStr">sqlglot.expressions.UnixToStr</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#UnixToTime">sqlglot.expressions.UnixToTime</a>'>: <function _unix_to_time_sql>, <class '<a href="../expressions.html#UnixToTimeStr">sqlglot.expressions.UnixToTimeStr</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#Unnest">sqlglot.expressions.Unnest</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#PartitionedByProperty">sqlglot.expressions.PartitionedByProperty</a>'>: <function Spark.Generator.<lambda>>, <class '<a href="../expressions.html#NumberToStr">sqlglot.expressions.NumberToStr</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#National">sqlglot.expressions.National</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#PrimaryKeyColumnConstraint">sqlglot.expressions.PrimaryKeyColumnConstraint</a>'>: <function Hive.Generator.<lambda>>, <class '<a href="../expressions.html#WeekOfYear">sqlglot.expressions.WeekOfYear</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#DayOfMonth">sqlglot.expressions.DayOfMonth</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#DayOfWeek">sqlglot.expressions.DayOfWeek</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#Levenshtein">sqlglot.expressions.Levenshtein</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#ArraySum">sqlglot.expressions.ArraySum</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#AtTimeZone">sqlglot.expressions.AtTimeZone</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#BitwiseLeftShift">sqlglot.expressions.BitwiseLeftShift</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#BitwiseRightShift">sqlglot.expressions.BitwiseRightShift</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#DateFromParts">sqlglot.expressions.DateFromParts</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#DateTrunc">sqlglot.expressions.DateTrunc</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#DayOfWeekIso">sqlglot.expressions.DayOfWeekIso</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#DayOfYear">sqlglot.expressions.DayOfYear</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#From">sqlglot.expressions.From</a>'>: <function preprocess.<locals>._to_sql>, <class '<a href="../expressions.html#FromTimeZone">sqlglot.expressions.FromTimeZone</a>'>: <function Spark2.Generator.<lambda>>, <class '<a href="../expressions.html#LogicalAnd">sqlglot.expressions.LogicalAnd</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#LogicalOr">sqlglot.expressions.LogicalOr</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#Pivot">sqlglot.expressions.Pivot</a>'>: <function preprocess.<locals>._to_sql>, <class '<a href="../expressions.html#Reduce">sqlglot.expressions.Reduce</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#Trim">sqlglot.expressions.Trim</a>'>: <function trim_sql>, <class '<a href="../expressions.html#VariancePop">sqlglot.expressions.VariancePop</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#WithinGroup">sqlglot.expressions.WithinGroup</a>'>: <function preprocess.<locals>._to_sql>, <class '<a href="../expressions.html#ArrayConstructCompact">sqlglot.expressions.ArrayConstructCompact</a>'>: <function Spark.Generator.<lambda>>, <class '<a href="../expressions.html#StartsWith">sqlglot.expressions.StartsWith</a>'>: <function rename_func.<locals>.<lambda>>, <class '<a href="../expressions.html#TimestampAdd">sqlglot.expressions.TimestampAdd</a>'>: <function _dateadd_sql>, <class '<a href="../expressions.html#DatetimeDiff">sqlglot.expressions.DatetimeDiff</a>'>: <function timestampdiff_sql>, <class '<a href="../expressions.html#TimestampDiff">sqlglot.expressions.TimestampDiff</a>'>: <function timestampdiff_sql>, <class '<a href="../expressions.html#DateDiff">sqlglot.expressions.DateDiff</a>'>: <function date_delta_sql.<locals>._delta_sql>, <class '<a href="../expressions.html#DatetimeAdd">sqlglot.expressions.DatetimeAdd</a>'>: <function <a href="#Databricks.Generator">Databricks.Generator</a>.<lambda>>, <class '<a href="../expressions.html#DatetimeSub">sqlglot.expressions.DatetimeSub</a>'>: <function <a href="#Databricks.Generator">Databricks.Generator</a>.<lambda>>, <class '<a href="../expressions.html#DatetimeTrunc">sqlglot.expressions.DatetimeTrunc</a>'>: <function timestamptrunc_sql.<locals>._timestamptrunc_sql>, <class '<a href="../expressions.html#ToChar">sqlglot.expressions.ToChar</a>'>: <function <a href="#Databricks.Generator">Databricks.Generator</a>.<lambda>>}</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.TRANSFORMS"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.columndef_sql" class="classattr">
|
|
<input id="Databricks.Generator.columndef_sql-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<div class="attr function">
|
|
|
|
<span class="def">def</span>
|
|
<span class="name">columndef_sql</span><span class="signature pdoc-code condensed">(<span class="param"><span class="bp">self</span>, </span><span class="param"><span class="n">expression</span><span class="p">:</span> <span class="n"><a href="../expressions.html#ColumnDef">sqlglot.expressions.ColumnDef</a></span>, </span><span class="param"><span class="n">sep</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s1">' '</span></span><span class="return-annotation">) -> <span class="nb">str</span>:</span></span>
|
|
|
|
<label class="view-source-button" for="Databricks.Generator.columndef_sql-view-source"><span>View Source</span></label>
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.columndef_sql"></a>
|
|
<div class="pdoc-code codehilite"><pre><span></span><span id="Databricks.Generator.columndef_sql-96"><a href="#Databricks.Generator.columndef_sql-96"><span class="linenos"> 96</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">columndef_sql</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">ColumnDef</span><span class="p">,</span> <span class="n">sep</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">" "</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-97"><a href="#Databricks.Generator.columndef_sql-97"><span class="linenos"> 97</span></a> <span class="n">constraint</span> <span class="o">=</span> <span class="n">expression</span><span class="o">.</span><span class="n">find</span><span class="p">(</span><span class="n">exp</span><span class="o">.</span><span class="n">GeneratedAsIdentityColumnConstraint</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-98"><a href="#Databricks.Generator.columndef_sql-98"><span class="linenos"> 98</span></a> <span class="n">kind</span> <span class="o">=</span> <span class="n">expression</span><span class="o">.</span><span class="n">kind</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-99"><a href="#Databricks.Generator.columndef_sql-99"><span class="linenos"> 99</span></a> <span class="k">if</span> <span class="p">(</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-100"><a href="#Databricks.Generator.columndef_sql-100"><span class="linenos">100</span></a> <span class="n">constraint</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-101"><a href="#Databricks.Generator.columndef_sql-101"><span class="linenos">101</span></a> <span class="ow">and</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">kind</span><span class="p">,</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-102"><a href="#Databricks.Generator.columndef_sql-102"><span class="linenos">102</span></a> <span class="ow">and</span> <span class="n">kind</span><span class="o">.</span><span class="n">this</span> <span class="ow">in</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="o">.</span><span class="n">INTEGER_TYPES</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-103"><a href="#Databricks.Generator.columndef_sql-103"><span class="linenos">103</span></a> <span class="p">):</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-104"><a href="#Databricks.Generator.columndef_sql-104"><span class="linenos">104</span></a> <span class="c1"># only BIGINT generated identity constraints are supported</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-105"><a href="#Databricks.Generator.columndef_sql-105"><span class="linenos">105</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"kind"</span><span class="p">,</span> <span class="n">exp</span><span class="o">.</span><span class="n">DataType</span><span class="o">.</span><span class="n">build</span><span class="p">(</span><span class="s2">"bigint"</span><span class="p">))</span>
|
|
</span><span id="Databricks.Generator.columndef_sql-106"><a href="#Databricks.Generator.columndef_sql-106"><span class="linenos">106</span></a>
|
|
</span><span id="Databricks.Generator.columndef_sql-107"><a href="#Databricks.Generator.columndef_sql-107"><span class="linenos">107</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">columndef_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">,</span> <span class="n">sep</span><span class="p">)</span>
|
|
</span></pre></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.generatedasidentitycolumnconstraint_sql" class="classattr">
|
|
<input id="Databricks.Generator.generatedasidentitycolumnconstraint_sql-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<div class="attr function">
|
|
|
|
<span class="def">def</span>
|
|
<span class="name">generatedasidentitycolumnconstraint_sql</span><span class="signature pdoc-code multiline">(<span class="param"> <span class="bp">self</span>,</span><span class="param"> <span class="n">expression</span><span class="p">:</span> <span class="n"><a href="../expressions.html#GeneratedAsIdentityColumnConstraint">sqlglot.expressions.GeneratedAsIdentityColumnConstraint</a></span></span><span class="return-annotation">) -> <span class="nb">str</span>:</span></span>
|
|
|
|
<label class="view-source-button" for="Databricks.Generator.generatedasidentitycolumnconstraint_sql-view-source"><span>View Source</span></label>
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.generatedasidentitycolumnconstraint_sql"></a>
|
|
<div class="pdoc-code codehilite"><pre><span></span><span id="Databricks.Generator.generatedasidentitycolumnconstraint_sql-109"><a href="#Databricks.Generator.generatedasidentitycolumnconstraint_sql-109"><span class="linenos">109</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">generatedasidentitycolumnconstraint_sql</span><span class="p">(</span>
|
|
</span><span id="Databricks.Generator.generatedasidentitycolumnconstraint_sql-110"><a href="#Databricks.Generator.generatedasidentitycolumnconstraint_sql-110"><span class="linenos">110</span></a> <span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">GeneratedAsIdentityColumnConstraint</span>
|
|
</span><span id="Databricks.Generator.generatedasidentitycolumnconstraint_sql-111"><a href="#Databricks.Generator.generatedasidentitycolumnconstraint_sql-111"><span class="linenos">111</span></a> <span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks.Generator.generatedasidentitycolumnconstraint_sql-112"><a href="#Databricks.Generator.generatedasidentitycolumnconstraint_sql-112"><span class="linenos">112</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"this"</span><span class="p">,</span> <span class="kc">True</span><span class="p">)</span> <span class="c1"># trigger ALWAYS in super class</span>
|
|
</span><span id="Databricks.Generator.generatedasidentitycolumnconstraint_sql-113"><a href="#Databricks.Generator.generatedasidentitycolumnconstraint_sql-113"><span class="linenos">113</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">generatedasidentitycolumnconstraint_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span>
|
|
</span></pre></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.jsonpath_sql" class="classattr">
|
|
<input id="Databricks.Generator.jsonpath_sql-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
|
|
<div class="attr function">
|
|
|
|
<span class="def">def</span>
|
|
<span class="name">jsonpath_sql</span><span class="signature pdoc-code condensed">(<span class="param"><span class="bp">self</span>, </span><span class="param"><span class="n">expression</span><span class="p">:</span> <span class="n"><a href="../expressions.html#JSONPath">sqlglot.expressions.JSONPath</a></span></span><span class="return-annotation">) -> <span class="nb">str</span>:</span></span>
|
|
|
|
<label class="view-source-button" for="Databricks.Generator.jsonpath_sql-view-source"><span>View Source</span></label>
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.jsonpath_sql"></a>
|
|
<div class="pdoc-code codehilite"><pre><span></span><span id="Databricks.Generator.jsonpath_sql-115"><a href="#Databricks.Generator.jsonpath_sql-115"><span class="linenos">115</span></a> <span class="k">def</span><span class="w"> </span><span class="nf">jsonpath_sql</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">expression</span><span class="p">:</span> <span class="n">exp</span><span class="o">.</span><span class="n">JSONPath</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span>
|
|
</span><span id="Databricks.Generator.jsonpath_sql-116"><a href="#Databricks.Generator.jsonpath_sql-116"><span class="linenos">116</span></a> <span class="n">expression</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="s2">"escape"</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
|
|
</span><span id="Databricks.Generator.jsonpath_sql-117"><a href="#Databricks.Generator.jsonpath_sql-117"><span class="linenos">117</span></a> <span class="k">return</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">jsonpath_sql</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span>
|
|
</span></pre></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.SELECT_KINDS" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">SELECT_KINDS</span><span class="annotation">: Tuple[str, ...]</span> =
|
|
<span class="default_value">()</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.SELECT_KINDS"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.TRY_SUPPORTED" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">TRY_SUPPORTED</span> =
|
|
<span class="default_value">False</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.TRY_SUPPORTED"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div id="Databricks.Generator.SUPPORTS_UESCAPE" class="classattr">
|
|
<div class="attr variable">
|
|
<span class="name">SUPPORTS_UESCAPE</span> =
|
|
<span class="default_value">False</span>
|
|
|
|
|
|
</div>
|
|
<a class="headerlink" href="#Databricks.Generator.SUPPORTS_UESCAPE"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="inherited">
|
|
<h5>Inherited Members</h5>
|
|
<dl>
|
|
<div><dt><a href="../generator.html#Generator">sqlglot.generator.Generator</a></dt>
|
|
<dd id="Databricks.Generator.__init__" class="function"><a href="../generator.html#Generator.__init__">Generator</a></dd>
|
|
<dd id="Databricks.Generator.NULL_ORDERING_SUPPORTED" class="variable"><a href="../generator.html#Generator.NULL_ORDERING_SUPPORTED">NULL_ORDERING_SUPPORTED</a></dd>
|
|
<dd id="Databricks.Generator.IGNORE_NULLS_IN_FUNC" class="variable"><a href="../generator.html#Generator.IGNORE_NULLS_IN_FUNC">IGNORE_NULLS_IN_FUNC</a></dd>
|
|
<dd id="Databricks.Generator.LOCKING_READS_SUPPORTED" class="variable"><a href="../generator.html#Generator.LOCKING_READS_SUPPORTED">LOCKING_READS_SUPPORTED</a></dd>
|
|
<dd id="Databricks.Generator.EXCEPT_INTERSECT_SUPPORT_ALL_CLAUSE" class="variable"><a href="../generator.html#Generator.EXCEPT_INTERSECT_SUPPORT_ALL_CLAUSE">EXCEPT_INTERSECT_SUPPORT_ALL_CLAUSE</a></dd>
|
|
<dd id="Databricks.Generator.MATCHED_BY_SOURCE" class="variable"><a href="../generator.html#Generator.MATCHED_BY_SOURCE">MATCHED_BY_SOURCE</a></dd>
|
|
<dd id="Databricks.Generator.SINGLE_STRING_INTERVAL" class="variable"><a href="../generator.html#Generator.SINGLE_STRING_INTERVAL">SINGLE_STRING_INTERVAL</a></dd>
|
|
<dd id="Databricks.Generator.INTERVAL_ALLOWS_PLURAL_FORM" class="variable"><a href="../generator.html#Generator.INTERVAL_ALLOWS_PLURAL_FORM">INTERVAL_ALLOWS_PLURAL_FORM</a></dd>
|
|
<dd id="Databricks.Generator.LIMIT_ONLY_LITERALS" class="variable"><a href="../generator.html#Generator.LIMIT_ONLY_LITERALS">LIMIT_ONLY_LITERALS</a></dd>
|
|
<dd id="Databricks.Generator.RENAME_TABLE_WITH_DB" class="variable"><a href="../generator.html#Generator.RENAME_TABLE_WITH_DB">RENAME_TABLE_WITH_DB</a></dd>
|
|
<dd id="Databricks.Generator.GROUPINGS_SEP" class="variable"><a href="../generator.html#Generator.GROUPINGS_SEP">GROUPINGS_SEP</a></dd>
|
|
<dd id="Databricks.Generator.QUERY_HINT_SEP" class="variable"><a href="../generator.html#Generator.QUERY_HINT_SEP">QUERY_HINT_SEP</a></dd>
|
|
<dd id="Databricks.Generator.IS_BOOL_ALLOWED" class="variable"><a href="../generator.html#Generator.IS_BOOL_ALLOWED">IS_BOOL_ALLOWED</a></dd>
|
|
<dd id="Databricks.Generator.DUPLICATE_KEY_UPDATE_WITH_SET" class="variable"><a href="../generator.html#Generator.DUPLICATE_KEY_UPDATE_WITH_SET">DUPLICATE_KEY_UPDATE_WITH_SET</a></dd>
|
|
<dd id="Databricks.Generator.LIMIT_IS_TOP" class="variable"><a href="../generator.html#Generator.LIMIT_IS_TOP">LIMIT_IS_TOP</a></dd>
|
|
<dd id="Databricks.Generator.RETURNING_END" class="variable"><a href="../generator.html#Generator.RETURNING_END">RETURNING_END</a></dd>
|
|
<dd id="Databricks.Generator.TZ_TO_WITH_TIME_ZONE" class="variable"><a href="../generator.html#Generator.TZ_TO_WITH_TIME_ZONE">TZ_TO_WITH_TIME_ZONE</a></dd>
|
|
<dd id="Databricks.Generator.VALUES_AS_TABLE" class="variable"><a href="../generator.html#Generator.VALUES_AS_TABLE">VALUES_AS_TABLE</a></dd>
|
|
<dd id="Databricks.Generator.ALTER_TABLE_INCLUDE_COLUMN_KEYWORD" class="variable"><a href="../generator.html#Generator.ALTER_TABLE_INCLUDE_COLUMN_KEYWORD">ALTER_TABLE_INCLUDE_COLUMN_KEYWORD</a></dd>
|
|
<dd id="Databricks.Generator.UNNEST_WITH_ORDINALITY" class="variable"><a href="../generator.html#Generator.UNNEST_WITH_ORDINALITY">UNNEST_WITH_ORDINALITY</a></dd>
|
|
<dd id="Databricks.Generator.AGGREGATE_FILTER_SUPPORTED" class="variable"><a href="../generator.html#Generator.AGGREGATE_FILTER_SUPPORTED">AGGREGATE_FILTER_SUPPORTED</a></dd>
|
|
<dd id="Databricks.Generator.SEMI_ANTI_JOIN_WITH_SIDE" class="variable"><a href="../generator.html#Generator.SEMI_ANTI_JOIN_WITH_SIDE">SEMI_ANTI_JOIN_WITH_SIDE</a></dd>
|
|
<dd id="Databricks.Generator.COMPUTED_COLUMN_WITH_TYPE" class="variable"><a href="../generator.html#Generator.COMPUTED_COLUMN_WITH_TYPE">COMPUTED_COLUMN_WITH_TYPE</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_TABLE_COPY" class="variable"><a href="../generator.html#Generator.SUPPORTS_TABLE_COPY">SUPPORTS_TABLE_COPY</a></dd>
|
|
<dd id="Databricks.Generator.TABLESAMPLE_REQUIRES_PARENS" class="variable"><a href="../generator.html#Generator.TABLESAMPLE_REQUIRES_PARENS">TABLESAMPLE_REQUIRES_PARENS</a></dd>
|
|
<dd id="Databricks.Generator.TABLESAMPLE_SIZE_IS_ROWS" class="variable"><a href="../generator.html#Generator.TABLESAMPLE_SIZE_IS_ROWS">TABLESAMPLE_SIZE_IS_ROWS</a></dd>
|
|
<dd id="Databricks.Generator.TABLESAMPLE_KEYWORDS" class="variable"><a href="../generator.html#Generator.TABLESAMPLE_KEYWORDS">TABLESAMPLE_KEYWORDS</a></dd>
|
|
<dd id="Databricks.Generator.COLLATE_IS_FUNC" class="variable"><a href="../generator.html#Generator.COLLATE_IS_FUNC">COLLATE_IS_FUNC</a></dd>
|
|
<dd id="Databricks.Generator.DATA_TYPE_SPECIFIERS_ALLOWED" class="variable"><a href="../generator.html#Generator.DATA_TYPE_SPECIFIERS_ALLOWED">DATA_TYPE_SPECIFIERS_ALLOWED</a></dd>
|
|
<dd id="Databricks.Generator.ENSURE_BOOLS" class="variable"><a href="../generator.html#Generator.ENSURE_BOOLS">ENSURE_BOOLS</a></dd>
|
|
<dd id="Databricks.Generator.CTE_RECURSIVE_KEYWORD_REQUIRED" class="variable"><a href="../generator.html#Generator.CTE_RECURSIVE_KEYWORD_REQUIRED">CTE_RECURSIVE_KEYWORD_REQUIRED</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_SINGLE_ARG_CONCAT" class="variable"><a href="../generator.html#Generator.SUPPORTS_SINGLE_ARG_CONCAT">SUPPORTS_SINGLE_ARG_CONCAT</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_TABLE_ALIAS_COLUMNS" class="variable"><a href="../generator.html#Generator.SUPPORTS_TABLE_ALIAS_COLUMNS">SUPPORTS_TABLE_ALIAS_COLUMNS</a></dd>
|
|
<dd id="Databricks.Generator.UNPIVOT_ALIASES_ARE_IDENTIFIERS" class="variable"><a href="../generator.html#Generator.UNPIVOT_ALIASES_ARE_IDENTIFIERS">UNPIVOT_ALIASES_ARE_IDENTIFIERS</a></dd>
|
|
<dd id="Databricks.Generator.JSON_KEY_VALUE_PAIR_SEP" class="variable"><a href="../generator.html#Generator.JSON_KEY_VALUE_PAIR_SEP">JSON_KEY_VALUE_PAIR_SEP</a></dd>
|
|
<dd id="Databricks.Generator.INSERT_OVERWRITE" class="variable"><a href="../generator.html#Generator.INSERT_OVERWRITE">INSERT_OVERWRITE</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_SELECT_INTO" class="variable"><a href="../generator.html#Generator.SUPPORTS_SELECT_INTO">SUPPORTS_SELECT_INTO</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_UNLOGGED_TABLES" class="variable"><a href="../generator.html#Generator.SUPPORTS_UNLOGGED_TABLES">SUPPORTS_UNLOGGED_TABLES</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_CREATE_TABLE_LIKE" class="variable"><a href="../generator.html#Generator.SUPPORTS_CREATE_TABLE_LIKE">SUPPORTS_CREATE_TABLE_LIKE</a></dd>
|
|
<dd id="Databricks.Generator.LIKE_PROPERTY_INSIDE_SCHEMA" class="variable"><a href="../generator.html#Generator.LIKE_PROPERTY_INSIDE_SCHEMA">LIKE_PROPERTY_INSIDE_SCHEMA</a></dd>
|
|
<dd id="Databricks.Generator.MULTI_ARG_DISTINCT" class="variable"><a href="../generator.html#Generator.MULTI_ARG_DISTINCT">MULTI_ARG_DISTINCT</a></dd>
|
|
<dd id="Databricks.Generator.JSON_TYPE_REQUIRED_FOR_EXTRACTION" class="variable"><a href="../generator.html#Generator.JSON_TYPE_REQUIRED_FOR_EXTRACTION">JSON_TYPE_REQUIRED_FOR_EXTRACTION</a></dd>
|
|
<dd id="Databricks.Generator.JSON_PATH_BRACKETED_KEY_SUPPORTED" class="variable"><a href="../generator.html#Generator.JSON_PATH_BRACKETED_KEY_SUPPORTED">JSON_PATH_BRACKETED_KEY_SUPPORTED</a></dd>
|
|
<dd id="Databricks.Generator.SET_OP_MODIFIERS" class="variable"><a href="../generator.html#Generator.SET_OP_MODIFIERS">SET_OP_MODIFIERS</a></dd>
|
|
<dd id="Databricks.Generator.COPY_HAS_INTO_KEYWORD" class="variable"><a href="../generator.html#Generator.COPY_HAS_INTO_KEYWORD">COPY_HAS_INTO_KEYWORD</a></dd>
|
|
<dd id="Databricks.Generator.STAR_EXCEPT" class="variable"><a href="../generator.html#Generator.STAR_EXCEPT">STAR_EXCEPT</a></dd>
|
|
<dd id="Databricks.Generator.HEX_FUNC" class="variable"><a href="../generator.html#Generator.HEX_FUNC">HEX_FUNC</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_EXPLODING_PROJECTIONS" class="variable"><a href="../generator.html#Generator.SUPPORTS_EXPLODING_PROJECTIONS">SUPPORTS_EXPLODING_PROJECTIONS</a></dd>
|
|
<dd id="Databricks.Generator.ARRAY_CONCAT_IS_VAR_LEN" class="variable"><a href="../generator.html#Generator.ARRAY_CONCAT_IS_VAR_LEN">ARRAY_CONCAT_IS_VAR_LEN</a></dd>
|
|
<dd id="Databricks.Generator.ALTER_SET_TYPE" class="variable"><a href="../generator.html#Generator.ALTER_SET_TYPE">ALTER_SET_TYPE</a></dd>
|
|
<dd id="Databricks.Generator.ARRAY_SIZE_DIM_REQUIRED" class="variable"><a href="../generator.html#Generator.ARRAY_SIZE_DIM_REQUIRED">ARRAY_SIZE_DIM_REQUIRED</a></dd>
|
|
<dd id="Databricks.Generator.TIME_PART_SINGULARS" class="variable"><a href="../generator.html#Generator.TIME_PART_SINGULARS">TIME_PART_SINGULARS</a></dd>
|
|
<dd id="Databricks.Generator.AFTER_HAVING_MODIFIER_TRANSFORMS" class="variable"><a href="../generator.html#Generator.AFTER_HAVING_MODIFIER_TRANSFORMS">AFTER_HAVING_MODIFIER_TRANSFORMS</a></dd>
|
|
<dd id="Databricks.Generator.TOKEN_MAPPING" class="variable"><a href="../generator.html#Generator.TOKEN_MAPPING">TOKEN_MAPPING</a></dd>
|
|
<dd id="Databricks.Generator.STRUCT_DELIMITER" class="variable"><a href="../generator.html#Generator.STRUCT_DELIMITER">STRUCT_DELIMITER</a></dd>
|
|
<dd id="Databricks.Generator.PARAMETER_TOKEN" class="variable"><a href="../generator.html#Generator.PARAMETER_TOKEN">PARAMETER_TOKEN</a></dd>
|
|
<dd id="Databricks.Generator.NAMED_PLACEHOLDER_TOKEN" class="variable"><a href="../generator.html#Generator.NAMED_PLACEHOLDER_TOKEN">NAMED_PLACEHOLDER_TOKEN</a></dd>
|
|
<dd id="Databricks.Generator.EXPRESSION_PRECEDES_PROPERTIES_CREATABLES" class="variable"><a href="../generator.html#Generator.EXPRESSION_PRECEDES_PROPERTIES_CREATABLES">EXPRESSION_PRECEDES_PROPERTIES_CREATABLES</a></dd>
|
|
<dd id="Databricks.Generator.RESERVED_KEYWORDS" class="variable"><a href="../generator.html#Generator.RESERVED_KEYWORDS">RESERVED_KEYWORDS</a></dd>
|
|
<dd id="Databricks.Generator.WITH_SEPARATED_COMMENTS" class="variable"><a href="../generator.html#Generator.WITH_SEPARATED_COMMENTS">WITH_SEPARATED_COMMENTS</a></dd>
|
|
<dd id="Databricks.Generator.EXCLUDE_COMMENTS" class="variable"><a href="../generator.html#Generator.EXCLUDE_COMMENTS">EXCLUDE_COMMENTS</a></dd>
|
|
<dd id="Databricks.Generator.UNWRAPPED_INTERVAL_VALUES" class="variable"><a href="../generator.html#Generator.UNWRAPPED_INTERVAL_VALUES">UNWRAPPED_INTERVAL_VALUES</a></dd>
|
|
<dd id="Databricks.Generator.PARAMETERIZABLE_TEXT_TYPES" class="variable"><a href="../generator.html#Generator.PARAMETERIZABLE_TEXT_TYPES">PARAMETERIZABLE_TEXT_TYPES</a></dd>
|
|
<dd id="Databricks.Generator.SENTINEL_LINE_BREAK" class="variable"><a href="../generator.html#Generator.SENTINEL_LINE_BREAK">SENTINEL_LINE_BREAK</a></dd>
|
|
<dd id="Databricks.Generator.pretty" class="variable"><a href="../generator.html#Generator.pretty">pretty</a></dd>
|
|
<dd id="Databricks.Generator.identify" class="variable"><a href="../generator.html#Generator.identify">identify</a></dd>
|
|
<dd id="Databricks.Generator.normalize" class="variable"><a href="../generator.html#Generator.normalize">normalize</a></dd>
|
|
<dd id="Databricks.Generator.pad" class="variable"><a href="../generator.html#Generator.pad">pad</a></dd>
|
|
<dd id="Databricks.Generator.unsupported_level" class="variable"><a href="../generator.html#Generator.unsupported_level">unsupported_level</a></dd>
|
|
<dd id="Databricks.Generator.max_unsupported" class="variable"><a href="../generator.html#Generator.max_unsupported">max_unsupported</a></dd>
|
|
<dd id="Databricks.Generator.leading_comma" class="variable"><a href="../generator.html#Generator.leading_comma">leading_comma</a></dd>
|
|
<dd id="Databricks.Generator.max_text_width" class="variable"><a href="../generator.html#Generator.max_text_width">max_text_width</a></dd>
|
|
<dd id="Databricks.Generator.comments" class="variable"><a href="../generator.html#Generator.comments">comments</a></dd>
|
|
<dd id="Databricks.Generator.dialect" class="variable"><a href="../generator.html#Generator.dialect">dialect</a></dd>
|
|
<dd id="Databricks.Generator.normalize_functions" class="variable"><a href="../generator.html#Generator.normalize_functions">normalize_functions</a></dd>
|
|
<dd id="Databricks.Generator.unsupported_messages" class="variable"><a href="../generator.html#Generator.unsupported_messages">unsupported_messages</a></dd>
|
|
<dd id="Databricks.Generator.generate" class="function"><a href="../generator.html#Generator.generate">generate</a></dd>
|
|
<dd id="Databricks.Generator.preprocess" class="function"><a href="../generator.html#Generator.preprocess">preprocess</a></dd>
|
|
<dd id="Databricks.Generator.unsupported" class="function"><a href="../generator.html#Generator.unsupported">unsupported</a></dd>
|
|
<dd id="Databricks.Generator.sep" class="function"><a href="../generator.html#Generator.sep">sep</a></dd>
|
|
<dd id="Databricks.Generator.seg" class="function"><a href="../generator.html#Generator.seg">seg</a></dd>
|
|
<dd id="Databricks.Generator.pad_comment" class="function"><a href="../generator.html#Generator.pad_comment">pad_comment</a></dd>
|
|
<dd id="Databricks.Generator.maybe_comment" class="function"><a href="../generator.html#Generator.maybe_comment">maybe_comment</a></dd>
|
|
<dd id="Databricks.Generator.wrap" class="function"><a href="../generator.html#Generator.wrap">wrap</a></dd>
|
|
<dd id="Databricks.Generator.no_identify" class="function"><a href="../generator.html#Generator.no_identify">no_identify</a></dd>
|
|
<dd id="Databricks.Generator.normalize_func" class="function"><a href="../generator.html#Generator.normalize_func">normalize_func</a></dd>
|
|
<dd id="Databricks.Generator.indent" class="function"><a href="../generator.html#Generator.indent">indent</a></dd>
|
|
<dd id="Databricks.Generator.sql" class="function"><a href="../generator.html#Generator.sql">sql</a></dd>
|
|
<dd id="Databricks.Generator.uncache_sql" class="function"><a href="../generator.html#Generator.uncache_sql">uncache_sql</a></dd>
|
|
<dd id="Databricks.Generator.cache_sql" class="function"><a href="../generator.html#Generator.cache_sql">cache_sql</a></dd>
|
|
<dd id="Databricks.Generator.characterset_sql" class="function"><a href="../generator.html#Generator.characterset_sql">characterset_sql</a></dd>
|
|
<dd id="Databricks.Generator.column_parts" class="function"><a href="../generator.html#Generator.column_parts">column_parts</a></dd>
|
|
<dd id="Databricks.Generator.column_sql" class="function"><a href="../generator.html#Generator.column_sql">column_sql</a></dd>
|
|
<dd id="Databricks.Generator.columnposition_sql" class="function"><a href="../generator.html#Generator.columnposition_sql">columnposition_sql</a></dd>
|
|
<dd id="Databricks.Generator.columnconstraint_sql" class="function"><a href="../generator.html#Generator.columnconstraint_sql">columnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.autoincrementcolumnconstraint_sql" class="function"><a href="../generator.html#Generator.autoincrementcolumnconstraint_sql">autoincrementcolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.compresscolumnconstraint_sql" class="function"><a href="../generator.html#Generator.compresscolumnconstraint_sql">compresscolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.generatedasrowcolumnconstraint_sql" class="function"><a href="../generator.html#Generator.generatedasrowcolumnconstraint_sql">generatedasrowcolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.periodforsystemtimeconstraint_sql" class="function"><a href="../generator.html#Generator.periodforsystemtimeconstraint_sql">periodforsystemtimeconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.notnullcolumnconstraint_sql" class="function"><a href="../generator.html#Generator.notnullcolumnconstraint_sql">notnullcolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.transformcolumnconstraint_sql" class="function"><a href="../generator.html#Generator.transformcolumnconstraint_sql">transformcolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.primarykeycolumnconstraint_sql" class="function"><a href="../generator.html#Generator.primarykeycolumnconstraint_sql">primarykeycolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.uniquecolumnconstraint_sql" class="function"><a href="../generator.html#Generator.uniquecolumnconstraint_sql">uniquecolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.createable_sql" class="function"><a href="../generator.html#Generator.createable_sql">createable_sql</a></dd>
|
|
<dd id="Databricks.Generator.create_sql" class="function"><a href="../generator.html#Generator.create_sql">create_sql</a></dd>
|
|
<dd id="Databricks.Generator.sequenceproperties_sql" class="function"><a href="../generator.html#Generator.sequenceproperties_sql">sequenceproperties_sql</a></dd>
|
|
<dd id="Databricks.Generator.clone_sql" class="function"><a href="../generator.html#Generator.clone_sql">clone_sql</a></dd>
|
|
<dd id="Databricks.Generator.describe_sql" class="function"><a href="../generator.html#Generator.describe_sql">describe_sql</a></dd>
|
|
<dd id="Databricks.Generator.heredoc_sql" class="function"><a href="../generator.html#Generator.heredoc_sql">heredoc_sql</a></dd>
|
|
<dd id="Databricks.Generator.prepend_ctes" class="function"><a href="../generator.html#Generator.prepend_ctes">prepend_ctes</a></dd>
|
|
<dd id="Databricks.Generator.with_sql" class="function"><a href="../generator.html#Generator.with_sql">with_sql</a></dd>
|
|
<dd id="Databricks.Generator.cte_sql" class="function"><a href="../generator.html#Generator.cte_sql">cte_sql</a></dd>
|
|
<dd id="Databricks.Generator.tablealias_sql" class="function"><a href="../generator.html#Generator.tablealias_sql">tablealias_sql</a></dd>
|
|
<dd id="Databricks.Generator.bitstring_sql" class="function"><a href="../generator.html#Generator.bitstring_sql">bitstring_sql</a></dd>
|
|
<dd id="Databricks.Generator.hexstring_sql" class="function"><a href="../generator.html#Generator.hexstring_sql">hexstring_sql</a></dd>
|
|
<dd id="Databricks.Generator.bytestring_sql" class="function"><a href="../generator.html#Generator.bytestring_sql">bytestring_sql</a></dd>
|
|
<dd id="Databricks.Generator.unicodestring_sql" class="function"><a href="../generator.html#Generator.unicodestring_sql">unicodestring_sql</a></dd>
|
|
<dd id="Databricks.Generator.rawstring_sql" class="function"><a href="../generator.html#Generator.rawstring_sql">rawstring_sql</a></dd>
|
|
<dd id="Databricks.Generator.datatypeparam_sql" class="function"><a href="../generator.html#Generator.datatypeparam_sql">datatypeparam_sql</a></dd>
|
|
<dd id="Databricks.Generator.directory_sql" class="function"><a href="../generator.html#Generator.directory_sql">directory_sql</a></dd>
|
|
<dd id="Databricks.Generator.delete_sql" class="function"><a href="../generator.html#Generator.delete_sql">delete_sql</a></dd>
|
|
<dd id="Databricks.Generator.drop_sql" class="function"><a href="../generator.html#Generator.drop_sql">drop_sql</a></dd>
|
|
<dd id="Databricks.Generator.set_operation" class="function"><a href="../generator.html#Generator.set_operation">set_operation</a></dd>
|
|
<dd id="Databricks.Generator.set_operations" class="function"><a href="../generator.html#Generator.set_operations">set_operations</a></dd>
|
|
<dd id="Databricks.Generator.fetch_sql" class="function"><a href="../generator.html#Generator.fetch_sql">fetch_sql</a></dd>
|
|
<dd id="Databricks.Generator.limitoptions_sql" class="function"><a href="../generator.html#Generator.limitoptions_sql">limitoptions_sql</a></dd>
|
|
<dd id="Databricks.Generator.filter_sql" class="function"><a href="../generator.html#Generator.filter_sql">filter_sql</a></dd>
|
|
<dd id="Databricks.Generator.hint_sql" class="function"><a href="../generator.html#Generator.hint_sql">hint_sql</a></dd>
|
|
<dd id="Databricks.Generator.indexparameters_sql" class="function"><a href="../generator.html#Generator.indexparameters_sql">indexparameters_sql</a></dd>
|
|
<dd id="Databricks.Generator.index_sql" class="function"><a href="../generator.html#Generator.index_sql">index_sql</a></dd>
|
|
<dd id="Databricks.Generator.identifier_sql" class="function"><a href="../generator.html#Generator.identifier_sql">identifier_sql</a></dd>
|
|
<dd id="Databricks.Generator.hex_sql" class="function"><a href="../generator.html#Generator.hex_sql">hex_sql</a></dd>
|
|
<dd id="Databricks.Generator.lowerhex_sql" class="function"><a href="../generator.html#Generator.lowerhex_sql">lowerhex_sql</a></dd>
|
|
<dd id="Databricks.Generator.inputoutputformat_sql" class="function"><a href="../generator.html#Generator.inputoutputformat_sql">inputoutputformat_sql</a></dd>
|
|
<dd id="Databricks.Generator.national_sql" class="function"><a href="../generator.html#Generator.national_sql">national_sql</a></dd>
|
|
<dd id="Databricks.Generator.partition_sql" class="function"><a href="../generator.html#Generator.partition_sql">partition_sql</a></dd>
|
|
<dd id="Databricks.Generator.properties_sql" class="function"><a href="../generator.html#Generator.properties_sql">properties_sql</a></dd>
|
|
<dd id="Databricks.Generator.root_properties" class="function"><a href="../generator.html#Generator.root_properties">root_properties</a></dd>
|
|
<dd id="Databricks.Generator.properties" class="function"><a href="../generator.html#Generator.properties">properties</a></dd>
|
|
<dd id="Databricks.Generator.with_properties" class="function"><a href="../generator.html#Generator.with_properties">with_properties</a></dd>
|
|
<dd id="Databricks.Generator.locate_properties" class="function"><a href="../generator.html#Generator.locate_properties">locate_properties</a></dd>
|
|
<dd id="Databricks.Generator.property_name" class="function"><a href="../generator.html#Generator.property_name">property_name</a></dd>
|
|
<dd id="Databricks.Generator.property_sql" class="function"><a href="../generator.html#Generator.property_sql">property_sql</a></dd>
|
|
<dd id="Databricks.Generator.likeproperty_sql" class="function"><a href="../generator.html#Generator.likeproperty_sql">likeproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.fallbackproperty_sql" class="function"><a href="../generator.html#Generator.fallbackproperty_sql">fallbackproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.journalproperty_sql" class="function"><a href="../generator.html#Generator.journalproperty_sql">journalproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.freespaceproperty_sql" class="function"><a href="../generator.html#Generator.freespaceproperty_sql">freespaceproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.checksumproperty_sql" class="function"><a href="../generator.html#Generator.checksumproperty_sql">checksumproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.mergeblockratioproperty_sql" class="function"><a href="../generator.html#Generator.mergeblockratioproperty_sql">mergeblockratioproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.datablocksizeproperty_sql" class="function"><a href="../generator.html#Generator.datablocksizeproperty_sql">datablocksizeproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.blockcompressionproperty_sql" class="function"><a href="../generator.html#Generator.blockcompressionproperty_sql">blockcompressionproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.isolatedloadingproperty_sql" class="function"><a href="../generator.html#Generator.isolatedloadingproperty_sql">isolatedloadingproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.partitionboundspec_sql" class="function"><a href="../generator.html#Generator.partitionboundspec_sql">partitionboundspec_sql</a></dd>
|
|
<dd id="Databricks.Generator.partitionedofproperty_sql" class="function"><a href="../generator.html#Generator.partitionedofproperty_sql">partitionedofproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.lockingproperty_sql" class="function"><a href="../generator.html#Generator.lockingproperty_sql">lockingproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.withdataproperty_sql" class="function"><a href="../generator.html#Generator.withdataproperty_sql">withdataproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.withsystemversioningproperty_sql" class="function"><a href="../generator.html#Generator.withsystemversioningproperty_sql">withsystemversioningproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.insert_sql" class="function"><a href="../generator.html#Generator.insert_sql">insert_sql</a></dd>
|
|
<dd id="Databricks.Generator.introducer_sql" class="function"><a href="../generator.html#Generator.introducer_sql">introducer_sql</a></dd>
|
|
<dd id="Databricks.Generator.kill_sql" class="function"><a href="../generator.html#Generator.kill_sql">kill_sql</a></dd>
|
|
<dd id="Databricks.Generator.pseudotype_sql" class="function"><a href="../generator.html#Generator.pseudotype_sql">pseudotype_sql</a></dd>
|
|
<dd id="Databricks.Generator.objectidentifier_sql" class="function"><a href="../generator.html#Generator.objectidentifier_sql">objectidentifier_sql</a></dd>
|
|
<dd id="Databricks.Generator.onconflict_sql" class="function"><a href="../generator.html#Generator.onconflict_sql">onconflict_sql</a></dd>
|
|
<dd id="Databricks.Generator.returning_sql" class="function"><a href="../generator.html#Generator.returning_sql">returning_sql</a></dd>
|
|
<dd id="Databricks.Generator.rowformatdelimitedproperty_sql" class="function"><a href="../generator.html#Generator.rowformatdelimitedproperty_sql">rowformatdelimitedproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.withtablehint_sql" class="function"><a href="../generator.html#Generator.withtablehint_sql">withtablehint_sql</a></dd>
|
|
<dd id="Databricks.Generator.indextablehint_sql" class="function"><a href="../generator.html#Generator.indextablehint_sql">indextablehint_sql</a></dd>
|
|
<dd id="Databricks.Generator.historicaldata_sql" class="function"><a href="../generator.html#Generator.historicaldata_sql">historicaldata_sql</a></dd>
|
|
<dd id="Databricks.Generator.table_parts" class="function"><a href="../generator.html#Generator.table_parts">table_parts</a></dd>
|
|
<dd id="Databricks.Generator.table_sql" class="function"><a href="../generator.html#Generator.table_sql">table_sql</a></dd>
|
|
<dd id="Databricks.Generator.tablefromrows_sql" class="function"><a href="../generator.html#Generator.tablefromrows_sql">tablefromrows_sql</a></dd>
|
|
<dd id="Databricks.Generator.tablesample_sql" class="function"><a href="../generator.html#Generator.tablesample_sql">tablesample_sql</a></dd>
|
|
<dd id="Databricks.Generator.pivot_sql" class="function"><a href="../generator.html#Generator.pivot_sql">pivot_sql</a></dd>
|
|
<dd id="Databricks.Generator.tuple_sql" class="function"><a href="../generator.html#Generator.tuple_sql">tuple_sql</a></dd>
|
|
<dd id="Databricks.Generator.update_sql" class="function"><a href="../generator.html#Generator.update_sql">update_sql</a></dd>
|
|
<dd id="Databricks.Generator.values_sql" class="function"><a href="../generator.html#Generator.values_sql">values_sql</a></dd>
|
|
<dd id="Databricks.Generator.var_sql" class="function"><a href="../generator.html#Generator.var_sql">var_sql</a></dd>
|
|
<dd id="Databricks.Generator.into_sql" class="function"><a href="../generator.html#Generator.into_sql">into_sql</a></dd>
|
|
<dd id="Databricks.Generator.from_sql" class="function"><a href="../generator.html#Generator.from_sql">from_sql</a></dd>
|
|
<dd id="Databricks.Generator.groupingsets_sql" class="function"><a href="../generator.html#Generator.groupingsets_sql">groupingsets_sql</a></dd>
|
|
<dd id="Databricks.Generator.rollup_sql" class="function"><a href="../generator.html#Generator.rollup_sql">rollup_sql</a></dd>
|
|
<dd id="Databricks.Generator.cube_sql" class="function"><a href="../generator.html#Generator.cube_sql">cube_sql</a></dd>
|
|
<dd id="Databricks.Generator.group_sql" class="function"><a href="../generator.html#Generator.group_sql">group_sql</a></dd>
|
|
<dd id="Databricks.Generator.having_sql" class="function"><a href="../generator.html#Generator.having_sql">having_sql</a></dd>
|
|
<dd id="Databricks.Generator.connect_sql" class="function"><a href="../generator.html#Generator.connect_sql">connect_sql</a></dd>
|
|
<dd id="Databricks.Generator.prior_sql" class="function"><a href="../generator.html#Generator.prior_sql">prior_sql</a></dd>
|
|
<dd id="Databricks.Generator.join_sql" class="function"><a href="../generator.html#Generator.join_sql">join_sql</a></dd>
|
|
<dd id="Databricks.Generator.lambda_sql" class="function"><a href="../generator.html#Generator.lambda_sql">lambda_sql</a></dd>
|
|
<dd id="Databricks.Generator.lateral_op" class="function"><a href="../generator.html#Generator.lateral_op">lateral_op</a></dd>
|
|
<dd id="Databricks.Generator.lateral_sql" class="function"><a href="../generator.html#Generator.lateral_sql">lateral_sql</a></dd>
|
|
<dd id="Databricks.Generator.limit_sql" class="function"><a href="../generator.html#Generator.limit_sql">limit_sql</a></dd>
|
|
<dd id="Databricks.Generator.offset_sql" class="function"><a href="../generator.html#Generator.offset_sql">offset_sql</a></dd>
|
|
<dd id="Databricks.Generator.setitem_sql" class="function"><a href="../generator.html#Generator.setitem_sql">setitem_sql</a></dd>
|
|
<dd id="Databricks.Generator.set_sql" class="function"><a href="../generator.html#Generator.set_sql">set_sql</a></dd>
|
|
<dd id="Databricks.Generator.pragma_sql" class="function"><a href="../generator.html#Generator.pragma_sql">pragma_sql</a></dd>
|
|
<dd id="Databricks.Generator.lock_sql" class="function"><a href="../generator.html#Generator.lock_sql">lock_sql</a></dd>
|
|
<dd id="Databricks.Generator.literal_sql" class="function"><a href="../generator.html#Generator.literal_sql">literal_sql</a></dd>
|
|
<dd id="Databricks.Generator.escape_str" class="function"><a href="../generator.html#Generator.escape_str">escape_str</a></dd>
|
|
<dd id="Databricks.Generator.loaddata_sql" class="function"><a href="../generator.html#Generator.loaddata_sql">loaddata_sql</a></dd>
|
|
<dd id="Databricks.Generator.null_sql" class="function"><a href="../generator.html#Generator.null_sql">null_sql</a></dd>
|
|
<dd id="Databricks.Generator.boolean_sql" class="function"><a href="../generator.html#Generator.boolean_sql">boolean_sql</a></dd>
|
|
<dd id="Databricks.Generator.order_sql" class="function"><a href="../generator.html#Generator.order_sql">order_sql</a></dd>
|
|
<dd id="Databricks.Generator.withfill_sql" class="function"><a href="../generator.html#Generator.withfill_sql">withfill_sql</a></dd>
|
|
<dd id="Databricks.Generator.cluster_sql" class="function"><a href="../generator.html#Generator.cluster_sql">cluster_sql</a></dd>
|
|
<dd id="Databricks.Generator.distribute_sql" class="function"><a href="../generator.html#Generator.distribute_sql">distribute_sql</a></dd>
|
|
<dd id="Databricks.Generator.sort_sql" class="function"><a href="../generator.html#Generator.sort_sql">sort_sql</a></dd>
|
|
<dd id="Databricks.Generator.ordered_sql" class="function"><a href="../generator.html#Generator.ordered_sql">ordered_sql</a></dd>
|
|
<dd id="Databricks.Generator.matchrecognizemeasure_sql" class="function"><a href="../generator.html#Generator.matchrecognizemeasure_sql">matchrecognizemeasure_sql</a></dd>
|
|
<dd id="Databricks.Generator.matchrecognize_sql" class="function"><a href="../generator.html#Generator.matchrecognize_sql">matchrecognize_sql</a></dd>
|
|
<dd id="Databricks.Generator.query_modifiers" class="function"><a href="../generator.html#Generator.query_modifiers">query_modifiers</a></dd>
|
|
<dd id="Databricks.Generator.options_modifier" class="function"><a href="../generator.html#Generator.options_modifier">options_modifier</a></dd>
|
|
<dd id="Databricks.Generator.queryoption_sql" class="function"><a href="../generator.html#Generator.queryoption_sql">queryoption_sql</a></dd>
|
|
<dd id="Databricks.Generator.offset_limit_modifiers" class="function"><a href="../generator.html#Generator.offset_limit_modifiers">offset_limit_modifiers</a></dd>
|
|
<dd id="Databricks.Generator.after_limit_modifiers" class="function"><a href="../generator.html#Generator.after_limit_modifiers">after_limit_modifiers</a></dd>
|
|
<dd id="Databricks.Generator.select_sql" class="function"><a href="../generator.html#Generator.select_sql">select_sql</a></dd>
|
|
<dd id="Databricks.Generator.schema_columns_sql" class="function"><a href="../generator.html#Generator.schema_columns_sql">schema_columns_sql</a></dd>
|
|
<dd id="Databricks.Generator.star_sql" class="function"><a href="../generator.html#Generator.star_sql">star_sql</a></dd>
|
|
<dd id="Databricks.Generator.sessionparameter_sql" class="function"><a href="../generator.html#Generator.sessionparameter_sql">sessionparameter_sql</a></dd>
|
|
<dd id="Databricks.Generator.placeholder_sql" class="function"><a href="../generator.html#Generator.placeholder_sql">placeholder_sql</a></dd>
|
|
<dd id="Databricks.Generator.subquery_sql" class="function"><a href="../generator.html#Generator.subquery_sql">subquery_sql</a></dd>
|
|
<dd id="Databricks.Generator.qualify_sql" class="function"><a href="../generator.html#Generator.qualify_sql">qualify_sql</a></dd>
|
|
<dd id="Databricks.Generator.prewhere_sql" class="function"><a href="../generator.html#Generator.prewhere_sql">prewhere_sql</a></dd>
|
|
<dd id="Databricks.Generator.where_sql" class="function"><a href="../generator.html#Generator.where_sql">where_sql</a></dd>
|
|
<dd id="Databricks.Generator.window_sql" class="function"><a href="../generator.html#Generator.window_sql">window_sql</a></dd>
|
|
<dd id="Databricks.Generator.partition_by_sql" class="function"><a href="../generator.html#Generator.partition_by_sql">partition_by_sql</a></dd>
|
|
<dd id="Databricks.Generator.windowspec_sql" class="function"><a href="../generator.html#Generator.windowspec_sql">windowspec_sql</a></dd>
|
|
<dd id="Databricks.Generator.withingroup_sql" class="function"><a href="../generator.html#Generator.withingroup_sql">withingroup_sql</a></dd>
|
|
<dd id="Databricks.Generator.between_sql" class="function"><a href="../generator.html#Generator.between_sql">between_sql</a></dd>
|
|
<dd id="Databricks.Generator.bracket_offset_expressions" class="function"><a href="../generator.html#Generator.bracket_offset_expressions">bracket_offset_expressions</a></dd>
|
|
<dd id="Databricks.Generator.all_sql" class="function"><a href="../generator.html#Generator.all_sql">all_sql</a></dd>
|
|
<dd id="Databricks.Generator.any_sql" class="function"><a href="../generator.html#Generator.any_sql">any_sql</a></dd>
|
|
<dd id="Databricks.Generator.case_sql" class="function"><a href="../generator.html#Generator.case_sql">case_sql</a></dd>
|
|
<dd id="Databricks.Generator.nextvaluefor_sql" class="function"><a href="../generator.html#Generator.nextvaluefor_sql">nextvaluefor_sql</a></dd>
|
|
<dd id="Databricks.Generator.extract_sql" class="function"><a href="../generator.html#Generator.extract_sql">extract_sql</a></dd>
|
|
<dd id="Databricks.Generator.trim_sql" class="function"><a href="../generator.html#Generator.trim_sql">trim_sql</a></dd>
|
|
<dd id="Databricks.Generator.convert_concat_args" class="function"><a href="../generator.html#Generator.convert_concat_args">convert_concat_args</a></dd>
|
|
<dd id="Databricks.Generator.concat_sql" class="function"><a href="../generator.html#Generator.concat_sql">concat_sql</a></dd>
|
|
<dd id="Databricks.Generator.concatws_sql" class="function"><a href="../generator.html#Generator.concatws_sql">concatws_sql</a></dd>
|
|
<dd id="Databricks.Generator.check_sql" class="function"><a href="../generator.html#Generator.check_sql">check_sql</a></dd>
|
|
<dd id="Databricks.Generator.foreignkey_sql" class="function"><a href="../generator.html#Generator.foreignkey_sql">foreignkey_sql</a></dd>
|
|
<dd id="Databricks.Generator.primarykey_sql" class="function"><a href="../generator.html#Generator.primarykey_sql">primarykey_sql</a></dd>
|
|
<dd id="Databricks.Generator.if_sql" class="function"><a href="../generator.html#Generator.if_sql">if_sql</a></dd>
|
|
<dd id="Databricks.Generator.matchagainst_sql" class="function"><a href="../generator.html#Generator.matchagainst_sql">matchagainst_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonkeyvalue_sql" class="function"><a href="../generator.html#Generator.jsonkeyvalue_sql">jsonkeyvalue_sql</a></dd>
|
|
<dd id="Databricks.Generator.json_path_part" class="function"><a href="../generator.html#Generator.json_path_part">json_path_part</a></dd>
|
|
<dd id="Databricks.Generator.formatjson_sql" class="function"><a href="../generator.html#Generator.formatjson_sql">formatjson_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonobject_sql" class="function"><a href="../generator.html#Generator.jsonobject_sql">jsonobject_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonobjectagg_sql" class="function"><a href="../generator.html#Generator.jsonobjectagg_sql">jsonobjectagg_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonarray_sql" class="function"><a href="../generator.html#Generator.jsonarray_sql">jsonarray_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonarrayagg_sql" class="function"><a href="../generator.html#Generator.jsonarrayagg_sql">jsonarrayagg_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsoncolumndef_sql" class="function"><a href="../generator.html#Generator.jsoncolumndef_sql">jsoncolumndef_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonschema_sql" class="function"><a href="../generator.html#Generator.jsonschema_sql">jsonschema_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsontable_sql" class="function"><a href="../generator.html#Generator.jsontable_sql">jsontable_sql</a></dd>
|
|
<dd id="Databricks.Generator.openjsoncolumndef_sql" class="function"><a href="../generator.html#Generator.openjsoncolumndef_sql">openjsoncolumndef_sql</a></dd>
|
|
<dd id="Databricks.Generator.openjson_sql" class="function"><a href="../generator.html#Generator.openjson_sql">openjson_sql</a></dd>
|
|
<dd id="Databricks.Generator.in_sql" class="function"><a href="../generator.html#Generator.in_sql">in_sql</a></dd>
|
|
<dd id="Databricks.Generator.in_unnest_op" class="function"><a href="../generator.html#Generator.in_unnest_op">in_unnest_op</a></dd>
|
|
<dd id="Databricks.Generator.interval_sql" class="function"><a href="../generator.html#Generator.interval_sql">interval_sql</a></dd>
|
|
<dd id="Databricks.Generator.return_sql" class="function"><a href="../generator.html#Generator.return_sql">return_sql</a></dd>
|
|
<dd id="Databricks.Generator.reference_sql" class="function"><a href="../generator.html#Generator.reference_sql">reference_sql</a></dd>
|
|
<dd id="Databricks.Generator.anonymous_sql" class="function"><a href="../generator.html#Generator.anonymous_sql">anonymous_sql</a></dd>
|
|
<dd id="Databricks.Generator.paren_sql" class="function"><a href="../generator.html#Generator.paren_sql">paren_sql</a></dd>
|
|
<dd id="Databricks.Generator.neg_sql" class="function"><a href="../generator.html#Generator.neg_sql">neg_sql</a></dd>
|
|
<dd id="Databricks.Generator.not_sql" class="function"><a href="../generator.html#Generator.not_sql">not_sql</a></dd>
|
|
<dd id="Databricks.Generator.alias_sql" class="function"><a href="../generator.html#Generator.alias_sql">alias_sql</a></dd>
|
|
<dd id="Databricks.Generator.pivotalias_sql" class="function"><a href="../generator.html#Generator.pivotalias_sql">pivotalias_sql</a></dd>
|
|
<dd id="Databricks.Generator.aliases_sql" class="function"><a href="../generator.html#Generator.aliases_sql">aliases_sql</a></dd>
|
|
<dd id="Databricks.Generator.atindex_sql" class="function"><a href="../generator.html#Generator.atindex_sql">atindex_sql</a></dd>
|
|
<dd id="Databricks.Generator.attimezone_sql" class="function"><a href="../generator.html#Generator.attimezone_sql">attimezone_sql</a></dd>
|
|
<dd id="Databricks.Generator.fromtimezone_sql" class="function"><a href="../generator.html#Generator.fromtimezone_sql">fromtimezone_sql</a></dd>
|
|
<dd id="Databricks.Generator.add_sql" class="function"><a href="../generator.html#Generator.add_sql">add_sql</a></dd>
|
|
<dd id="Databricks.Generator.and_sql" class="function"><a href="../generator.html#Generator.and_sql">and_sql</a></dd>
|
|
<dd id="Databricks.Generator.or_sql" class="function"><a href="../generator.html#Generator.or_sql">or_sql</a></dd>
|
|
<dd id="Databricks.Generator.xor_sql" class="function"><a href="../generator.html#Generator.xor_sql">xor_sql</a></dd>
|
|
<dd id="Databricks.Generator.connector_sql" class="function"><a href="../generator.html#Generator.connector_sql">connector_sql</a></dd>
|
|
<dd id="Databricks.Generator.bitwiseand_sql" class="function"><a href="../generator.html#Generator.bitwiseand_sql">bitwiseand_sql</a></dd>
|
|
<dd id="Databricks.Generator.bitwiseleftshift_sql" class="function"><a href="../generator.html#Generator.bitwiseleftshift_sql">bitwiseleftshift_sql</a></dd>
|
|
<dd id="Databricks.Generator.bitwisenot_sql" class="function"><a href="../generator.html#Generator.bitwisenot_sql">bitwisenot_sql</a></dd>
|
|
<dd id="Databricks.Generator.bitwiseor_sql" class="function"><a href="../generator.html#Generator.bitwiseor_sql">bitwiseor_sql</a></dd>
|
|
<dd id="Databricks.Generator.bitwiserightshift_sql" class="function"><a href="../generator.html#Generator.bitwiserightshift_sql">bitwiserightshift_sql</a></dd>
|
|
<dd id="Databricks.Generator.bitwisexor_sql" class="function"><a href="../generator.html#Generator.bitwisexor_sql">bitwisexor_sql</a></dd>
|
|
<dd id="Databricks.Generator.currentdate_sql" class="function"><a href="../generator.html#Generator.currentdate_sql">currentdate_sql</a></dd>
|
|
<dd id="Databricks.Generator.collate_sql" class="function"><a href="../generator.html#Generator.collate_sql">collate_sql</a></dd>
|
|
<dd id="Databricks.Generator.command_sql" class="function"><a href="../generator.html#Generator.command_sql">command_sql</a></dd>
|
|
<dd id="Databricks.Generator.comment_sql" class="function"><a href="../generator.html#Generator.comment_sql">comment_sql</a></dd>
|
|
<dd id="Databricks.Generator.mergetreettlaction_sql" class="function"><a href="../generator.html#Generator.mergetreettlaction_sql">mergetreettlaction_sql</a></dd>
|
|
<dd id="Databricks.Generator.mergetreettl_sql" class="function"><a href="../generator.html#Generator.mergetreettl_sql">mergetreettl_sql</a></dd>
|
|
<dd id="Databricks.Generator.transaction_sql" class="function"><a href="../generator.html#Generator.transaction_sql">transaction_sql</a></dd>
|
|
<dd id="Databricks.Generator.commit_sql" class="function"><a href="../generator.html#Generator.commit_sql">commit_sql</a></dd>
|
|
<dd id="Databricks.Generator.rollback_sql" class="function"><a href="../generator.html#Generator.rollback_sql">rollback_sql</a></dd>
|
|
<dd id="Databricks.Generator.altercolumn_sql" class="function"><a href="../generator.html#Generator.altercolumn_sql">altercolumn_sql</a></dd>
|
|
<dd id="Databricks.Generator.alterindex_sql" class="function"><a href="../generator.html#Generator.alterindex_sql">alterindex_sql</a></dd>
|
|
<dd id="Databricks.Generator.alterdiststyle_sql" class="function"><a href="../generator.html#Generator.alterdiststyle_sql">alterdiststyle_sql</a></dd>
|
|
<dd id="Databricks.Generator.altersortkey_sql" class="function"><a href="../generator.html#Generator.altersortkey_sql">altersortkey_sql</a></dd>
|
|
<dd id="Databricks.Generator.alterrename_sql" class="function"><a href="../generator.html#Generator.alterrename_sql">alterrename_sql</a></dd>
|
|
<dd id="Databricks.Generator.renamecolumn_sql" class="function"><a href="../generator.html#Generator.renamecolumn_sql">renamecolumn_sql</a></dd>
|
|
<dd id="Databricks.Generator.alter_sql" class="function"><a href="../generator.html#Generator.alter_sql">alter_sql</a></dd>
|
|
<dd id="Databricks.Generator.add_column_sql" class="function"><a href="../generator.html#Generator.add_column_sql">add_column_sql</a></dd>
|
|
<dd id="Databricks.Generator.droppartition_sql" class="function"><a href="../generator.html#Generator.droppartition_sql">droppartition_sql</a></dd>
|
|
<dd id="Databricks.Generator.addconstraint_sql" class="function"><a href="../generator.html#Generator.addconstraint_sql">addconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.distinct_sql" class="function"><a href="../generator.html#Generator.distinct_sql">distinct_sql</a></dd>
|
|
<dd id="Databricks.Generator.ignorenulls_sql" class="function"><a href="../generator.html#Generator.ignorenulls_sql">ignorenulls_sql</a></dd>
|
|
<dd id="Databricks.Generator.respectnulls_sql" class="function"><a href="../generator.html#Generator.respectnulls_sql">respectnulls_sql</a></dd>
|
|
<dd id="Databricks.Generator.havingmax_sql" class="function"><a href="../generator.html#Generator.havingmax_sql">havingmax_sql</a></dd>
|
|
<dd id="Databricks.Generator.intdiv_sql" class="function"><a href="../generator.html#Generator.intdiv_sql">intdiv_sql</a></dd>
|
|
<dd id="Databricks.Generator.dpipe_sql" class="function"><a href="../generator.html#Generator.dpipe_sql">dpipe_sql</a></dd>
|
|
<dd id="Databricks.Generator.div_sql" class="function"><a href="../generator.html#Generator.div_sql">div_sql</a></dd>
|
|
<dd id="Databricks.Generator.safedivide_sql" class="function"><a href="../generator.html#Generator.safedivide_sql">safedivide_sql</a></dd>
|
|
<dd id="Databricks.Generator.overlaps_sql" class="function"><a href="../generator.html#Generator.overlaps_sql">overlaps_sql</a></dd>
|
|
<dd id="Databricks.Generator.distance_sql" class="function"><a href="../generator.html#Generator.distance_sql">distance_sql</a></dd>
|
|
<dd id="Databricks.Generator.dot_sql" class="function"><a href="../generator.html#Generator.dot_sql">dot_sql</a></dd>
|
|
<dd id="Databricks.Generator.eq_sql" class="function"><a href="../generator.html#Generator.eq_sql">eq_sql</a></dd>
|
|
<dd id="Databricks.Generator.propertyeq_sql" class="function"><a href="../generator.html#Generator.propertyeq_sql">propertyeq_sql</a></dd>
|
|
<dd id="Databricks.Generator.escape_sql" class="function"><a href="../generator.html#Generator.escape_sql">escape_sql</a></dd>
|
|
<dd id="Databricks.Generator.glob_sql" class="function"><a href="../generator.html#Generator.glob_sql">glob_sql</a></dd>
|
|
<dd id="Databricks.Generator.gt_sql" class="function"><a href="../generator.html#Generator.gt_sql">gt_sql</a></dd>
|
|
<dd id="Databricks.Generator.gte_sql" class="function"><a href="../generator.html#Generator.gte_sql">gte_sql</a></dd>
|
|
<dd id="Databricks.Generator.ilike_sql" class="function"><a href="../generator.html#Generator.ilike_sql">ilike_sql</a></dd>
|
|
<dd id="Databricks.Generator.ilikeany_sql" class="function"><a href="../generator.html#Generator.ilikeany_sql">ilikeany_sql</a></dd>
|
|
<dd id="Databricks.Generator.is_sql" class="function"><a href="../generator.html#Generator.is_sql">is_sql</a></dd>
|
|
<dd id="Databricks.Generator.like_sql" class="function"><a href="../generator.html#Generator.like_sql">like_sql</a></dd>
|
|
<dd id="Databricks.Generator.likeany_sql" class="function"><a href="../generator.html#Generator.likeany_sql">likeany_sql</a></dd>
|
|
<dd id="Databricks.Generator.similarto_sql" class="function"><a href="../generator.html#Generator.similarto_sql">similarto_sql</a></dd>
|
|
<dd id="Databricks.Generator.lt_sql" class="function"><a href="../generator.html#Generator.lt_sql">lt_sql</a></dd>
|
|
<dd id="Databricks.Generator.lte_sql" class="function"><a href="../generator.html#Generator.lte_sql">lte_sql</a></dd>
|
|
<dd id="Databricks.Generator.mod_sql" class="function"><a href="../generator.html#Generator.mod_sql">mod_sql</a></dd>
|
|
<dd id="Databricks.Generator.mul_sql" class="function"><a href="../generator.html#Generator.mul_sql">mul_sql</a></dd>
|
|
<dd id="Databricks.Generator.neq_sql" class="function"><a href="../generator.html#Generator.neq_sql">neq_sql</a></dd>
|
|
<dd id="Databricks.Generator.nullsafeeq_sql" class="function"><a href="../generator.html#Generator.nullsafeeq_sql">nullsafeeq_sql</a></dd>
|
|
<dd id="Databricks.Generator.nullsafeneq_sql" class="function"><a href="../generator.html#Generator.nullsafeneq_sql">nullsafeneq_sql</a></dd>
|
|
<dd id="Databricks.Generator.slice_sql" class="function"><a href="../generator.html#Generator.slice_sql">slice_sql</a></dd>
|
|
<dd id="Databricks.Generator.sub_sql" class="function"><a href="../generator.html#Generator.sub_sql">sub_sql</a></dd>
|
|
<dd id="Databricks.Generator.trycast_sql" class="function"><a href="../generator.html#Generator.trycast_sql">trycast_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsoncast_sql" class="function"><a href="../generator.html#Generator.jsoncast_sql">jsoncast_sql</a></dd>
|
|
<dd id="Databricks.Generator.try_sql" class="function"><a href="../generator.html#Generator.try_sql">try_sql</a></dd>
|
|
<dd id="Databricks.Generator.log_sql" class="function"><a href="../generator.html#Generator.log_sql">log_sql</a></dd>
|
|
<dd id="Databricks.Generator.use_sql" class="function"><a href="../generator.html#Generator.use_sql">use_sql</a></dd>
|
|
<dd id="Databricks.Generator.binary" class="function"><a href="../generator.html#Generator.binary">binary</a></dd>
|
|
<dd id="Databricks.Generator.ceil_floor" class="function"><a href="../generator.html#Generator.ceil_floor">ceil_floor</a></dd>
|
|
<dd id="Databricks.Generator.function_fallback_sql" class="function"><a href="../generator.html#Generator.function_fallback_sql">function_fallback_sql</a></dd>
|
|
<dd id="Databricks.Generator.func" class="function"><a href="../generator.html#Generator.func">func</a></dd>
|
|
<dd id="Databricks.Generator.format_args" class="function"><a href="../generator.html#Generator.format_args">format_args</a></dd>
|
|
<dd id="Databricks.Generator.too_wide" class="function"><a href="../generator.html#Generator.too_wide">too_wide</a></dd>
|
|
<dd id="Databricks.Generator.format_time" class="function"><a href="../generator.html#Generator.format_time">format_time</a></dd>
|
|
<dd id="Databricks.Generator.expressions" class="function"><a href="../generator.html#Generator.expressions">expressions</a></dd>
|
|
<dd id="Databricks.Generator.op_expressions" class="function"><a href="../generator.html#Generator.op_expressions">op_expressions</a></dd>
|
|
<dd id="Databricks.Generator.naked_property" class="function"><a href="../generator.html#Generator.naked_property">naked_property</a></dd>
|
|
<dd id="Databricks.Generator.tag_sql" class="function"><a href="../generator.html#Generator.tag_sql">tag_sql</a></dd>
|
|
<dd id="Databricks.Generator.token_sql" class="function"><a href="../generator.html#Generator.token_sql">token_sql</a></dd>
|
|
<dd id="Databricks.Generator.userdefinedfunction_sql" class="function"><a href="../generator.html#Generator.userdefinedfunction_sql">userdefinedfunction_sql</a></dd>
|
|
<dd id="Databricks.Generator.joinhint_sql" class="function"><a href="../generator.html#Generator.joinhint_sql">joinhint_sql</a></dd>
|
|
<dd id="Databricks.Generator.kwarg_sql" class="function"><a href="../generator.html#Generator.kwarg_sql">kwarg_sql</a></dd>
|
|
<dd id="Databricks.Generator.when_sql" class="function"><a href="../generator.html#Generator.when_sql">when_sql</a></dd>
|
|
<dd id="Databricks.Generator.whens_sql" class="function"><a href="../generator.html#Generator.whens_sql">whens_sql</a></dd>
|
|
<dd id="Databricks.Generator.merge_sql" class="function"><a href="../generator.html#Generator.merge_sql">merge_sql</a></dd>
|
|
<dd id="Databricks.Generator.tochar_sql" class="function"><a href="../generator.html#Generator.tochar_sql">tochar_sql</a></dd>
|
|
<dd id="Databricks.Generator.tonumber_sql" class="function"><a href="../generator.html#Generator.tonumber_sql">tonumber_sql</a></dd>
|
|
<dd id="Databricks.Generator.dictproperty_sql" class="function"><a href="../generator.html#Generator.dictproperty_sql">dictproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.dictrange_sql" class="function"><a href="../generator.html#Generator.dictrange_sql">dictrange_sql</a></dd>
|
|
<dd id="Databricks.Generator.dictsubproperty_sql" class="function"><a href="../generator.html#Generator.dictsubproperty_sql">dictsubproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.duplicatekeyproperty_sql" class="function"><a href="../generator.html#Generator.duplicatekeyproperty_sql">duplicatekeyproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.uniquekeyproperty_sql" class="function"><a href="../generator.html#Generator.uniquekeyproperty_sql">uniquekeyproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.distributedbyproperty_sql" class="function"><a href="../generator.html#Generator.distributedbyproperty_sql">distributedbyproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.oncluster_sql" class="function"><a href="../generator.html#Generator.oncluster_sql">oncluster_sql</a></dd>
|
|
<dd id="Databricks.Generator.clusteredbyproperty_sql" class="function"><a href="../generator.html#Generator.clusteredbyproperty_sql">clusteredbyproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.querytransform_sql" class="function"><a href="../generator.html#Generator.querytransform_sql">querytransform_sql</a></dd>
|
|
<dd id="Databricks.Generator.indexconstraintoption_sql" class="function"><a href="../generator.html#Generator.indexconstraintoption_sql">indexconstraintoption_sql</a></dd>
|
|
<dd id="Databricks.Generator.checkcolumnconstraint_sql" class="function"><a href="../generator.html#Generator.checkcolumnconstraint_sql">checkcolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.indexcolumnconstraint_sql" class="function"><a href="../generator.html#Generator.indexcolumnconstraint_sql">indexcolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.nvl2_sql" class="function"><a href="../generator.html#Generator.nvl2_sql">nvl2_sql</a></dd>
|
|
<dd id="Databricks.Generator.comprehension_sql" class="function"><a href="../generator.html#Generator.comprehension_sql">comprehension_sql</a></dd>
|
|
<dd id="Databricks.Generator.columnprefix_sql" class="function"><a href="../generator.html#Generator.columnprefix_sql">columnprefix_sql</a></dd>
|
|
<dd id="Databricks.Generator.opclass_sql" class="function"><a href="../generator.html#Generator.opclass_sql">opclass_sql</a></dd>
|
|
<dd id="Databricks.Generator.predict_sql" class="function"><a href="../generator.html#Generator.predict_sql">predict_sql</a></dd>
|
|
<dd id="Databricks.Generator.forin_sql" class="function"><a href="../generator.html#Generator.forin_sql">forin_sql</a></dd>
|
|
<dd id="Databricks.Generator.refresh_sql" class="function"><a href="../generator.html#Generator.refresh_sql">refresh_sql</a></dd>
|
|
<dd id="Databricks.Generator.toarray_sql" class="function"><a href="../generator.html#Generator.toarray_sql">toarray_sql</a></dd>
|
|
<dd id="Databricks.Generator.tsordstotime_sql" class="function"><a href="../generator.html#Generator.tsordstotime_sql">tsordstotime_sql</a></dd>
|
|
<dd id="Databricks.Generator.tsordstotimestamp_sql" class="function"><a href="../generator.html#Generator.tsordstotimestamp_sql">tsordstotimestamp_sql</a></dd>
|
|
<dd id="Databricks.Generator.tsordstodatetime_sql" class="function"><a href="../generator.html#Generator.tsordstodatetime_sql">tsordstodatetime_sql</a></dd>
|
|
<dd id="Databricks.Generator.tsordstodate_sql" class="function"><a href="../generator.html#Generator.tsordstodate_sql">tsordstodate_sql</a></dd>
|
|
<dd id="Databricks.Generator.unixdate_sql" class="function"><a href="../generator.html#Generator.unixdate_sql">unixdate_sql</a></dd>
|
|
<dd id="Databricks.Generator.lastday_sql" class="function"><a href="../generator.html#Generator.lastday_sql">lastday_sql</a></dd>
|
|
<dd id="Databricks.Generator.dateadd_sql" class="function"><a href="../generator.html#Generator.dateadd_sql">dateadd_sql</a></dd>
|
|
<dd id="Databricks.Generator.arrayany_sql" class="function"><a href="../generator.html#Generator.arrayany_sql">arrayany_sql</a></dd>
|
|
<dd id="Databricks.Generator.partitionrange_sql" class="function"><a href="../generator.html#Generator.partitionrange_sql">partitionrange_sql</a></dd>
|
|
<dd id="Databricks.Generator.truncatetable_sql" class="function"><a href="../generator.html#Generator.truncatetable_sql">truncatetable_sql</a></dd>
|
|
<dd id="Databricks.Generator.convert_sql" class="function"><a href="../generator.html#Generator.convert_sql">convert_sql</a></dd>
|
|
<dd id="Databricks.Generator.copyparameter_sql" class="function"><a href="../generator.html#Generator.copyparameter_sql">copyparameter_sql</a></dd>
|
|
<dd id="Databricks.Generator.credentials_sql" class="function"><a href="../generator.html#Generator.credentials_sql">credentials_sql</a></dd>
|
|
<dd id="Databricks.Generator.copy_sql" class="function"><a href="../generator.html#Generator.copy_sql">copy_sql</a></dd>
|
|
<dd id="Databricks.Generator.semicolon_sql" class="function"><a href="../generator.html#Generator.semicolon_sql">semicolon_sql</a></dd>
|
|
<dd id="Databricks.Generator.datadeletionproperty_sql" class="function"><a href="../generator.html#Generator.datadeletionproperty_sql">datadeletionproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.maskingpolicycolumnconstraint_sql" class="function"><a href="../generator.html#Generator.maskingpolicycolumnconstraint_sql">maskingpolicycolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.gapfill_sql" class="function"><a href="../generator.html#Generator.gapfill_sql">gapfill_sql</a></dd>
|
|
<dd id="Databricks.Generator.scope_resolution" class="function"><a href="../generator.html#Generator.scope_resolution">scope_resolution</a></dd>
|
|
<dd id="Databricks.Generator.scoperesolution_sql" class="function"><a href="../generator.html#Generator.scoperesolution_sql">scoperesolution_sql</a></dd>
|
|
<dd id="Databricks.Generator.parsejson_sql" class="function"><a href="../generator.html#Generator.parsejson_sql">parsejson_sql</a></dd>
|
|
<dd id="Databricks.Generator.rand_sql" class="function"><a href="../generator.html#Generator.rand_sql">rand_sql</a></dd>
|
|
<dd id="Databricks.Generator.changes_sql" class="function"><a href="../generator.html#Generator.changes_sql">changes_sql</a></dd>
|
|
<dd id="Databricks.Generator.pad_sql" class="function"><a href="../generator.html#Generator.pad_sql">pad_sql</a></dd>
|
|
<dd id="Databricks.Generator.summarize_sql" class="function"><a href="../generator.html#Generator.summarize_sql">summarize_sql</a></dd>
|
|
<dd id="Databricks.Generator.explodinggenerateseries_sql" class="function"><a href="../generator.html#Generator.explodinggenerateseries_sql">explodinggenerateseries_sql</a></dd>
|
|
<dd id="Databricks.Generator.arrayconcat_sql" class="function"><a href="../generator.html#Generator.arrayconcat_sql">arrayconcat_sql</a></dd>
|
|
<dd id="Databricks.Generator.converttimezone_sql" class="function"><a href="../generator.html#Generator.converttimezone_sql">converttimezone_sql</a></dd>
|
|
<dd id="Databricks.Generator.json_sql" class="function"><a href="../generator.html#Generator.json_sql">json_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonvalue_sql" class="function"><a href="../generator.html#Generator.jsonvalue_sql">jsonvalue_sql</a></dd>
|
|
<dd id="Databricks.Generator.conditionalinsert_sql" class="function"><a href="../generator.html#Generator.conditionalinsert_sql">conditionalinsert_sql</a></dd>
|
|
<dd id="Databricks.Generator.multitableinserts_sql" class="function"><a href="../generator.html#Generator.multitableinserts_sql">multitableinserts_sql</a></dd>
|
|
<dd id="Databricks.Generator.oncondition_sql" class="function"><a href="../generator.html#Generator.oncondition_sql">oncondition_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonextractquote_sql" class="function"><a href="../generator.html#Generator.jsonextractquote_sql">jsonextractquote_sql</a></dd>
|
|
<dd id="Databricks.Generator.jsonexists_sql" class="function"><a href="../generator.html#Generator.jsonexists_sql">jsonexists_sql</a></dd>
|
|
<dd id="Databricks.Generator.apply_sql" class="function"><a href="../generator.html#Generator.apply_sql">apply_sql</a></dd>
|
|
<dd id="Databricks.Generator.grant_sql" class="function"><a href="../generator.html#Generator.grant_sql">grant_sql</a></dd>
|
|
<dd id="Databricks.Generator.grantprivilege_sql" class="function"><a href="../generator.html#Generator.grantprivilege_sql">grantprivilege_sql</a></dd>
|
|
<dd id="Databricks.Generator.grantprincipal_sql" class="function"><a href="../generator.html#Generator.grantprincipal_sql">grantprincipal_sql</a></dd>
|
|
<dd id="Databricks.Generator.columns_sql" class="function"><a href="../generator.html#Generator.columns_sql">columns_sql</a></dd>
|
|
<dd id="Databricks.Generator.overlay_sql" class="function"><a href="../generator.html#Generator.overlay_sql">overlay_sql</a></dd>
|
|
<dd id="Databricks.Generator.todouble_sql" class="function"><a href="../generator.html#Generator.todouble_sql">todouble_sql</a></dd>
|
|
<dd id="Databricks.Generator.string_sql" class="function"><a href="../generator.html#Generator.string_sql">string_sql</a></dd>
|
|
<dd id="Databricks.Generator.median_sql" class="function"><a href="../generator.html#Generator.median_sql">median_sql</a></dd>
|
|
<dd id="Databricks.Generator.overflowtruncatebehavior_sql" class="function"><a href="../generator.html#Generator.overflowtruncatebehavior_sql">overflowtruncatebehavior_sql</a></dd>
|
|
<dd id="Databricks.Generator.unixseconds_sql" class="function"><a href="../generator.html#Generator.unixseconds_sql">unixseconds_sql</a></dd>
|
|
<dd id="Databricks.Generator.arraysize_sql" class="function"><a href="../generator.html#Generator.arraysize_sql">arraysize_sql</a></dd>
|
|
<dd id="Databricks.Generator.attach_sql" class="function"><a href="../generator.html#Generator.attach_sql">attach_sql</a></dd>
|
|
<dd id="Databricks.Generator.detach_sql" class="function"><a href="../generator.html#Generator.detach_sql">detach_sql</a></dd>
|
|
<dd id="Databricks.Generator.attachoption_sql" class="function"><a href="../generator.html#Generator.attachoption_sql">attachoption_sql</a></dd>
|
|
<dd id="Databricks.Generator.featuresattime_sql" class="function"><a href="../generator.html#Generator.featuresattime_sql">featuresattime_sql</a></dd>
|
|
<dd id="Databricks.Generator.watermarkcolumnconstraint_sql" class="function"><a href="../generator.html#Generator.watermarkcolumnconstraint_sql">watermarkcolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.encodeproperty_sql" class="function"><a href="../generator.html#Generator.encodeproperty_sql">encodeproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.includeproperty_sql" class="function"><a href="../generator.html#Generator.includeproperty_sql">includeproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.xmlelement_sql" class="function"><a href="../generator.html#Generator.xmlelement_sql">xmlelement_sql</a></dd>
|
|
<dd id="Databricks.Generator.partitionbyrangeproperty_sql" class="function"><a href="../generator.html#Generator.partitionbyrangeproperty_sql">partitionbyrangeproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.partitionbyrangepropertydynamic_sql" class="function"><a href="../generator.html#Generator.partitionbyrangepropertydynamic_sql">partitionbyrangepropertydynamic_sql</a></dd>
|
|
<dd id="Databricks.Generator.unpivotcolumns_sql" class="function"><a href="../generator.html#Generator.unpivotcolumns_sql">unpivotcolumns_sql</a></dd>
|
|
<dd id="Databricks.Generator.analyzesample_sql" class="function"><a href="../generator.html#Generator.analyzesample_sql">analyzesample_sql</a></dd>
|
|
<dd id="Databricks.Generator.analyzestatistics_sql" class="function"><a href="../generator.html#Generator.analyzestatistics_sql">analyzestatistics_sql</a></dd>
|
|
<dd id="Databricks.Generator.analyzehistogram_sql" class="function"><a href="../generator.html#Generator.analyzehistogram_sql">analyzehistogram_sql</a></dd>
|
|
<dd id="Databricks.Generator.analyzedelete_sql" class="function"><a href="../generator.html#Generator.analyzedelete_sql">analyzedelete_sql</a></dd>
|
|
<dd id="Databricks.Generator.analyzelistchainedrows_sql" class="function"><a href="../generator.html#Generator.analyzelistchainedrows_sql">analyzelistchainedrows_sql</a></dd>
|
|
<dd id="Databricks.Generator.analyzevalidate_sql" class="function"><a href="../generator.html#Generator.analyzevalidate_sql">analyzevalidate_sql</a></dd>
|
|
<dd id="Databricks.Generator.analyze_sql" class="function"><a href="../generator.html#Generator.analyze_sql">analyze_sql</a></dd>
|
|
<dd id="Databricks.Generator.xmltable_sql" class="function"><a href="../generator.html#Generator.xmltable_sql">xmltable_sql</a></dd>
|
|
<dd id="Databricks.Generator.xmlnamespace_sql" class="function"><a href="../generator.html#Generator.xmlnamespace_sql">xmlnamespace_sql</a></dd>
|
|
<dd id="Databricks.Generator.export_sql" class="function"><a href="../generator.html#Generator.export_sql">export_sql</a></dd>
|
|
<dd id="Databricks.Generator.declare_sql" class="function"><a href="../generator.html#Generator.declare_sql">declare_sql</a></dd>
|
|
<dd id="Databricks.Generator.declareitem_sql" class="function"><a href="../generator.html#Generator.declareitem_sql">declareitem_sql</a></dd>
|
|
<dd id="Databricks.Generator.recursivewithsearch_sql" class="function"><a href="../generator.html#Generator.recursivewithsearch_sql">recursivewithsearch_sql</a></dd>
|
|
<dd id="Databricks.Generator.parameterizedagg_sql" class="function"><a href="../generator.html#Generator.parameterizedagg_sql">parameterizedagg_sql</a></dd>
|
|
<dd id="Databricks.Generator.anonymousaggfunc_sql" class="function"><a href="../generator.html#Generator.anonymousaggfunc_sql">anonymousaggfunc_sql</a></dd>
|
|
<dd id="Databricks.Generator.combinedaggfunc_sql" class="function"><a href="../generator.html#Generator.combinedaggfunc_sql">combinedaggfunc_sql</a></dd>
|
|
<dd id="Databricks.Generator.combinedparameterizedagg_sql" class="function"><a href="../generator.html#Generator.combinedparameterizedagg_sql">combinedparameterizedagg_sql</a></dd>
|
|
<dd id="Databricks.Generator.show_sql" class="function"><a href="../generator.html#Generator.show_sql">show_sql</a></dd>
|
|
<dd id="Databricks.Generator.put_sql" class="function"><a href="../generator.html#Generator.put_sql">put_sql</a></dd>
|
|
|
|
</div>
|
|
<div><dt><a href="spark.html#Spark.Generator">sqlglot.dialects.spark.Spark.Generator</a></dt>
|
|
<dd id="Databricks.Generator.SUPPORTS_TO_NUMBER" class="variable"><a href="spark.html#Spark.Generator.SUPPORTS_TO_NUMBER">SUPPORTS_TO_NUMBER</a></dd>
|
|
<dd id="Databricks.Generator.PAD_FILL_PATTERN_IS_REQUIRED" class="variable"><a href="spark.html#Spark.Generator.PAD_FILL_PATTERN_IS_REQUIRED">PAD_FILL_PATTERN_IS_REQUIRED</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_CONVERT_TIMEZONE" class="variable"><a href="spark.html#Spark.Generator.SUPPORTS_CONVERT_TIMEZONE">SUPPORTS_CONVERT_TIMEZONE</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_MEDIAN" class="variable"><a href="spark.html#Spark.Generator.SUPPORTS_MEDIAN">SUPPORTS_MEDIAN</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTS_UNIX_SECONDS" class="variable"><a href="spark.html#Spark.Generator.SUPPORTS_UNIX_SECONDS">SUPPORTS_UNIX_SECONDS</a></dd>
|
|
<dd id="Databricks.Generator.TYPE_MAPPING" class="variable"><a href="spark.html#Spark.Generator.TYPE_MAPPING">TYPE_MAPPING</a></dd>
|
|
<dd id="Databricks.Generator.bracket_sql" class="function"><a href="spark.html#Spark.Generator.bracket_sql">bracket_sql</a></dd>
|
|
<dd id="Databricks.Generator.computedcolumnconstraint_sql" class="function"><a href="spark.html#Spark.Generator.computedcolumnconstraint_sql">computedcolumnconstraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.anyvalue_sql" class="function"><a href="spark.html#Spark.Generator.anyvalue_sql">anyvalue_sql</a></dd>
|
|
<dd id="Databricks.Generator.datediff_sql" class="function"><a href="spark.html#Spark.Generator.datediff_sql">datediff_sql</a></dd>
|
|
|
|
</div>
|
|
<div><dt><a href="spark2.html#Spark2.Generator">sqlglot.dialects.spark2.Spark2.Generator</a></dt>
|
|
<dd id="Databricks.Generator.QUERY_HINTS" class="variable"><a href="spark2.html#Spark2.Generator.QUERY_HINTS">QUERY_HINTS</a></dd>
|
|
<dd id="Databricks.Generator.NVL2_SUPPORTED" class="variable"><a href="spark2.html#Spark2.Generator.NVL2_SUPPORTED">NVL2_SUPPORTED</a></dd>
|
|
<dd id="Databricks.Generator.CAN_IMPLEMENT_ARRAY_ANY" class="variable"><a href="spark2.html#Spark2.Generator.CAN_IMPLEMENT_ARRAY_ANY">CAN_IMPLEMENT_ARRAY_ANY</a></dd>
|
|
<dd id="Databricks.Generator.PROPERTIES_LOCATION" class="variable"><a href="spark2.html#Spark2.Generator.PROPERTIES_LOCATION">PROPERTIES_LOCATION</a></dd>
|
|
<dd id="Databricks.Generator.WRAP_DERIVED_VALUES" class="variable"><a href="spark2.html#Spark2.Generator.WRAP_DERIVED_VALUES">WRAP_DERIVED_VALUES</a></dd>
|
|
<dd id="Databricks.Generator.CREATE_FUNCTION_RETURN_AS" class="variable"><a href="spark2.html#Spark2.Generator.CREATE_FUNCTION_RETURN_AS">CREATE_FUNCTION_RETURN_AS</a></dd>
|
|
<dd id="Databricks.Generator.struct_sql" class="function"><a href="spark2.html#Spark2.Generator.struct_sql">struct_sql</a></dd>
|
|
<dd id="Databricks.Generator.cast_sql" class="function"><a href="spark2.html#Spark2.Generator.cast_sql">cast_sql</a></dd>
|
|
|
|
</div>
|
|
<div><dt><a href="hive.html#Hive.Generator">sqlglot.dialects.hive.Hive.Generator</a></dt>
|
|
<dd id="Databricks.Generator.LIMIT_FETCH" class="variable"><a href="hive.html#Hive.Generator.LIMIT_FETCH">LIMIT_FETCH</a></dd>
|
|
<dd id="Databricks.Generator.TABLESAMPLE_WITH_METHOD" class="variable"><a href="hive.html#Hive.Generator.TABLESAMPLE_WITH_METHOD">TABLESAMPLE_WITH_METHOD</a></dd>
|
|
<dd id="Databricks.Generator.JOIN_HINTS" class="variable"><a href="hive.html#Hive.Generator.JOIN_HINTS">JOIN_HINTS</a></dd>
|
|
<dd id="Databricks.Generator.TABLE_HINTS" class="variable"><a href="hive.html#Hive.Generator.TABLE_HINTS">TABLE_HINTS</a></dd>
|
|
<dd id="Databricks.Generator.INDEX_ON" class="variable"><a href="hive.html#Hive.Generator.INDEX_ON">INDEX_ON</a></dd>
|
|
<dd id="Databricks.Generator.EXTRACT_ALLOWS_QUOTES" class="variable"><a href="hive.html#Hive.Generator.EXTRACT_ALLOWS_QUOTES">EXTRACT_ALLOWS_QUOTES</a></dd>
|
|
<dd id="Databricks.Generator.LAST_DAY_SUPPORTS_DATE_PART" class="variable"><a href="hive.html#Hive.Generator.LAST_DAY_SUPPORTS_DATE_PART">LAST_DAY_SUPPORTS_DATE_PART</a></dd>
|
|
<dd id="Databricks.Generator.WITH_PROPERTIES_PREFIX" class="variable"><a href="hive.html#Hive.Generator.WITH_PROPERTIES_PREFIX">WITH_PROPERTIES_PREFIX</a></dd>
|
|
<dd id="Databricks.Generator.ARRAY_SIZE_NAME" class="variable"><a href="hive.html#Hive.Generator.ARRAY_SIZE_NAME">ARRAY_SIZE_NAME</a></dd>
|
|
<dd id="Databricks.Generator.EXPRESSIONS_WITHOUT_NESTED_CTES" class="variable"><a href="hive.html#Hive.Generator.EXPRESSIONS_WITHOUT_NESTED_CTES">EXPRESSIONS_WITHOUT_NESTED_CTES</a></dd>
|
|
<dd id="Databricks.Generator.SUPPORTED_JSON_PATH_PARTS" class="variable"><a href="hive.html#Hive.Generator.SUPPORTED_JSON_PATH_PARTS">SUPPORTED_JSON_PATH_PARTS</a></dd>
|
|
<dd id="Databricks.Generator.unnest_sql" class="function"><a href="hive.html#Hive.Generator.unnest_sql">unnest_sql</a></dd>
|
|
<dd id="Databricks.Generator.parameter_sql" class="function"><a href="hive.html#Hive.Generator.parameter_sql">parameter_sql</a></dd>
|
|
<dd id="Databricks.Generator.schema_sql" class="function"><a href="hive.html#Hive.Generator.schema_sql">schema_sql</a></dd>
|
|
<dd id="Databricks.Generator.constraint_sql" class="function"><a href="hive.html#Hive.Generator.constraint_sql">constraint_sql</a></dd>
|
|
<dd id="Databricks.Generator.rowformatserdeproperty_sql" class="function"><a href="hive.html#Hive.Generator.rowformatserdeproperty_sql">rowformatserdeproperty_sql</a></dd>
|
|
<dd id="Databricks.Generator.arrayagg_sql" class="function"><a href="hive.html#Hive.Generator.arrayagg_sql">arrayagg_sql</a></dd>
|
|
<dd id="Databricks.Generator.datatype_sql" class="function"><a href="hive.html#Hive.Generator.datatype_sql">datatype_sql</a></dd>
|
|
<dd id="Databricks.Generator.version_sql" class="function"><a href="hive.html#Hive.Generator.version_sql">version_sql</a></dd>
|
|
<dd id="Databricks.Generator.alterset_sql" class="function"><a href="hive.html#Hive.Generator.alterset_sql">alterset_sql</a></dd>
|
|
<dd id="Databricks.Generator.serdeproperties_sql" class="function"><a href="hive.html#Hive.Generator.serdeproperties_sql">serdeproperties_sql</a></dd>
|
|
<dd id="Databricks.Generator.exists_sql" class="function"><a href="hive.html#Hive.Generator.exists_sql">exists_sql</a></dd>
|
|
<dd id="Databricks.Generator.timetostr_sql" class="function"><a href="hive.html#Hive.Generator.timetostr_sql">timetostr_sql</a></dd>
|
|
|
|
</div>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<script>
|
|
function escapeHTML(html) {
|
|
return document.createElement('div').appendChild(document.createTextNode(html)).parentNode.innerHTML;
|
|
}
|
|
|
|
const originalContent = document.querySelector("main.pdoc");
|
|
let currentContent = originalContent;
|
|
|
|
function setContent(innerHTML) {
|
|
let elem;
|
|
if (innerHTML) {
|
|
elem = document.createElement("main");
|
|
elem.classList.add("pdoc");
|
|
elem.innerHTML = innerHTML;
|
|
} else {
|
|
elem = originalContent;
|
|
}
|
|
if (currentContent !== elem) {
|
|
currentContent.replaceWith(elem);
|
|
currentContent = elem;
|
|
}
|
|
}
|
|
|
|
function getSearchTerm() {
|
|
return (new URL(window.location)).searchParams.get("search");
|
|
}
|
|
|
|
const searchBox = document.querySelector(".pdoc input[type=search]");
|
|
searchBox.addEventListener("input", function () {
|
|
let url = new URL(window.location);
|
|
if (searchBox.value.trim()) {
|
|
url.hash = "";
|
|
url.searchParams.set("search", searchBox.value);
|
|
} else {
|
|
url.searchParams.delete("search");
|
|
}
|
|
history.replaceState("", "", url.toString());
|
|
onInput();
|
|
});
|
|
window.addEventListener("popstate", onInput);
|
|
|
|
|
|
let search, searchErr;
|
|
|
|
async function initialize() {
|
|
try {
|
|
search = await new Promise((resolve, reject) => {
|
|
const script = document.createElement("script");
|
|
script.type = "text/javascript";
|
|
script.async = true;
|
|
script.onload = () => resolve(window.pdocSearch);
|
|
script.onerror = (e) => reject(e);
|
|
script.src = "../../search.js";
|
|
document.getElementsByTagName("head")[0].appendChild(script);
|
|
});
|
|
} catch (e) {
|
|
console.error("Cannot fetch pdoc search index");
|
|
searchErr = "Cannot fetch search index.";
|
|
}
|
|
onInput();
|
|
|
|
document.querySelector("nav.pdoc").addEventListener("click", e => {
|
|
if (e.target.hash) {
|
|
searchBox.value = "";
|
|
searchBox.dispatchEvent(new Event("input"));
|
|
}
|
|
});
|
|
}
|
|
|
|
function onInput() {
|
|
setContent((() => {
|
|
const term = getSearchTerm();
|
|
if (!term) {
|
|
return null
|
|
}
|
|
if (searchErr) {
|
|
return `<h3>Error: ${searchErr}</h3>`
|
|
}
|
|
if (!search) {
|
|
return "<h3>Searching...</h3>"
|
|
}
|
|
|
|
window.scrollTo({top: 0, left: 0, behavior: 'auto'});
|
|
|
|
const results = search(term);
|
|
|
|
let html;
|
|
if (results.length === 0) {
|
|
html = `No search results for '${escapeHTML(term)}'.`
|
|
} else {
|
|
html = `<h4>${results.length} search result${results.length > 1 ? "s" : ""} for '${escapeHTML(term)}'.</h4>`;
|
|
}
|
|
for (let result of results.slice(0, 10)) {
|
|
let doc = result.doc;
|
|
let url = `../../${doc.modulename.replaceAll(".", "/")}.html`;
|
|
if (doc.qualname) {
|
|
url += `#${doc.qualname}`;
|
|
}
|
|
|
|
let heading;
|
|
switch (result.doc.kind) {
|
|
case "function":
|
|
if (doc.fullname.endsWith(".__init__")) {
|
|
heading = `<span class="name">${doc.fullname.replace(/\.__init__$/, "")}</span>${doc.signature}`;
|
|
} else {
|
|
heading = `<span class="def">${doc.funcdef}</span> <span class="name">${doc.fullname}</span>${doc.signature}`;
|
|
}
|
|
break;
|
|
case "class":
|
|
heading = `<span class="def">class</span> <span class="name">${doc.fullname}</span>`;
|
|
if (doc.bases)
|
|
heading += `<wbr>(<span class="base">${doc.bases}</span>)`;
|
|
heading += `:`;
|
|
break;
|
|
case "variable":
|
|
heading = `<span class="name">${doc.fullname}</span>`;
|
|
if (doc.annotation)
|
|
heading += `<span class="annotation">${doc.annotation}</span>`;
|
|
if (doc.default_value)
|
|
heading += `<span class="default_value"> = ${doc.default_value}</span>`;
|
|
break;
|
|
default:
|
|
heading = `<span class="name">${doc.fullname}</span>`;
|
|
break;
|
|
}
|
|
html += `
|
|
<section class="search-result">
|
|
<a href="${url}" class="attr ${doc.kind}">${heading}</a>
|
|
<div class="docstring">${doc.doc}</div>
|
|
</section>
|
|
`;
|
|
|
|
}
|
|
return html;
|
|
})());
|
|
}
|
|
|
|
if (getSearchTerm()) {
|
|
initialize();
|
|
searchBox.value = getSearchTerm();
|
|
onInput();
|
|
} else {
|
|
searchBox.addEventListener("focus", initialize, {once: true});
|
|
}
|
|
|
|
searchBox.addEventListener("keydown", e => {
|
|
if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) {
|
|
let focused = currentContent.querySelector(".search-result.focused");
|
|
if (!focused) {
|
|
currentContent.querySelector(".search-result").classList.add("focused");
|
|
} else if (
|
|
e.key === "ArrowDown"
|
|
&& focused.nextElementSibling
|
|
&& focused.nextElementSibling.classList.contains("search-result")
|
|
) {
|
|
focused.classList.remove("focused");
|
|
focused.nextElementSibling.classList.add("focused");
|
|
focused.nextElementSibling.scrollIntoView({
|
|
behavior: "smooth",
|
|
block: "nearest",
|
|
inline: "nearest"
|
|
});
|
|
} else if (
|
|
e.key === "ArrowUp"
|
|
&& focused.previousElementSibling
|
|
&& focused.previousElementSibling.classList.contains("search-result")
|
|
) {
|
|
focused.classList.remove("focused");
|
|
focused.previousElementSibling.classList.add("focused");
|
|
focused.previousElementSibling.scrollIntoView({
|
|
behavior: "smooth",
|
|
block: "nearest",
|
|
inline: "nearest"
|
|
});
|
|
} else if (
|
|
e.key === "Enter"
|
|
) {
|
|
focused.querySelector("a").click();
|
|
}
|
|
}
|
|
});
|
|
</script></body>
|
|
</html> |