> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# gpudb

> gpudb — Kinetica Python API

<div className="kinetica-pydoc">
  <div itemprop="articleBody">
    <div id="class-gpudb" className="section">
      <h1>Class GPUdb</h1>

      <div className="dl py class">
        <div className="dt sig sig-object py" id="gpudb.GPUdb"> <span className="em property"><span className="k"><span className="pre">class</span></span><span className="w"> </span></span><span className="sig-prename descclassname"><span className="pre">gpudb.</span></span><span className="sig-name descname"><span className="pre">GPUdb</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">host</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="o"><span className="pre">\*</span></span><span className="n"><span className="pre">args</span></span></span>, <span className="em sig-param"><span className="o"><span className="pre">\*\*</span></span><span className="n"><span className="pre">kwargs</span></span></span><span className="sig-paren">)</span></div>

        <div className="dd">
          <p>This is the main class to be used to provide the client functionality to interact with the server.</p>
          <p>Usage patterns</p>

          <ul>
            <li>
              <p>Secured setup (Default)</p>
              <p>This code given below will set up a secured connection. The property ‘skip\_ssl\_cert\_verification’ is set to ‘False’ by default. SSL certificate check will be enforced by default.</p>

              <div className="highlight-default notranslate">
                ```
                options = GPUdb.Options()
                options.username = "user"
                options.password = "password"
                options.logging_level = "debug"

                gpudb = GPUdb(host='https://your_server_ip_or_FQDN:8082/gpudb-0', options=options )
                ```
              </div>
            </li>

            <li>
              <p>Unsecured setup</p>
              <p>The code given below will set up an unsecured connection to the server. The property ‘skip\_ssl\_cert\_verification’ has been set explicitly to ‘True’. So, irrespective of whether an SSL setup is there or not all certificate checks will be bypassed.</p>

              <div className="highlight-default notranslate">
                ```
                options = GPUdb.Options()
                options.username = "user"
                options.password = "password"
                options.skip_ssl_cert_verification = True
                options.logging_level = "debug"

                gpudb = GPUdb(host='https://your_server_ip_or_FQDN:8082/gpudb-0', options=options )
                ```
              </div>

              <p>Another way of setting up an unsecured connection is as given by the code below. In this case, the URL is not a secured one so no SSL setup comes into play.</p>

              <div className="highlight-default notranslate">
                ```
                options = GPUdb.Options()
                options.username = "user"
                options.password = "password"
                options.logging_level = "debug"

                gpudb = GPUdb(host='http://your_server_ip_or_FQDN:9191', options=options )
                ```
              </div>
            </li>
          </ul>

          <p>Construct a new GPUdb client instance. This object communicates to the database server at the given address. This class implements HA failover, which means that upon certain error conditions, this class will try to establish connection with one of the other clusters (specified by the user or known to the ring) to continue service. There are several options related to how to control that in the <a className="reference internal" href="#gpudb.GPUdb.Options" title="gpudb.GPUdb.Options"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Options</span></code></a> class that can be controlled via <cite>options</cite>.</p>

          <div className="admonition note">
            <p className="admonition-title">Note</p>
            <p>Please read the docstring of <cite>options</cite> about backward- compatibility related notes.</p>
          </div>

          <p><strong>Parameters</strong></p>

          <blockquote>
            <div>
              <div className="dl">
                <div className="dt">host (<span className="em">str or list of str</span>) –</div>

                <div className="dd">
                  <p>The URL(s) of the GPUdb server. May be provided as a comma separated string or a list of strings containing head or worker rank URLs of the server clusters. Must be full and valid URLs. Example: “<a className="reference external" href="https://domain.com:port/path/">[https://domain.com:port/path/](https://domain.com:port/path/)</a>”. If only a single URL or host is given, and no <span className="em">primary\_url</span> is explicitly specified via the options, then the given URL will be used as the primary URL. Default is ‘<a className="reference external" href="http://127.0.0.1:9191">[http://127.0.0.1:9191](http://127.0.0.1:9191)</a>’ (implemented internally).</p>
                  <p>Note that in versions 7.0 and prior, the URL also allowed username:password@ in front of the hostname. That is now deprecated. For now, anything in the hostname separated by the @ symbol will be discarded. (But the constructor will still function). Please use the appropriate properties of the <cite>options</cite> argument to set the username and password.</p>
                </div>

                <div className="dt">options (<span className="em">GPUdb.Options or dict</span>) –</div>

                <div className="dd">
                  <p>Optional arguments for creating this GPUdb object. To be backward compatible to 7.0 versions, keyword arguments will be honored (only if no options is given). I.e., if options is given, no positional or keyword argument can be given. See <a className="reference internal" href="#gpudb.GPUdb.Options" title="gpudb.GPUdb.Options"><code className="xref py py-class docutils literal notranslate"><span className="pre">Options</span></code></a> for all available properties.</p>

                  <div className="admonition seealso">
                    <p className="admonition-title">See also</p>
                    <p><a className="reference internal" href="#gpudb.GPUdb.Options" title="gpudb.GPUdb.Options"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Options</span></code></a></p>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>

          <div className="dl py class">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.HASynchronicityMode"> <span className="em property"><span className="k"><span className="pre">class</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">HASynchronicityMode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">value</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">module</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">start</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">1</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Inner enumeration class to represent the high-availability synchronicity override mode that is applied to each endpoint call. Available enumerations are:</p>

              <ul className="simple">
                <li>
                  <p>DEFAULT – No override; defer to the HA process for synchronizing endpoints (which has different logic for different endpoints). This is the default mode.</p>
                </li>

                <li>
                  <p>NONE – Do not replicate the endpoint calls to the backup cluster.</p>
                </li>

                <li>
                  <p>SYNCHRONOUS – Synchronize all endpoint calls</p>
                </li>

                <li>
                  <p>ASYNCHRONOUS – Do NOT synchronize any endpoint call</p>
                </li>
              </ul>
            </div>
          </div>

          <div className="dl py class">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.HAFailoverOrder"> <span className="em property"><span className="k"><span className="pre">class</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">HAFailoverOrder</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">value</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">module</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">start</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">1</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Inner enumeration class to represent the high-availability failover order that is applied to ring resiliency or inter-cluster failover. The order dictates in which pattern backup clusters will be chosen when a failover needs to happen in the client API. Available enumerations are:</p>

              <ul className="simple">
                <li>
                  <p>RANDOM – Randomly choose the backup cluster from the available clusters. This is the default mode.</p>
                </li>

                <li>
                  <p>SEQUENTIAL – Choose the cluster sequentially from the list of clusters (the union of the user given clusters and auto-discovered clusters).</p>
                </li>
              </ul>
            </div>
          </div>

          <div className="dl py class">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.Options"> <span className="em property"><span className="k"><span className="pre">class</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">Options</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Encapsulates the various options used to create a <a className="reference internal" href="#gpudb.GPUdb" title="gpudb.GPUdb"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb</span></code></a> object. The same object can be used on multiple GPUdb client handles and state modifications are chained together:</p>
              <p>For backward compatibility, we will support the following options from the 7.0 GPUdb keyword arguments and map them to the following properties:</p>

              <ul className="simple">
                <li>
                  <p>connection -> protocol</p>
                </li>

                <li>
                  <p>no\_init\_db\_contact -> disable\_auto\_discovery</p>
                </li>
              </ul>

              <div className="highlight-default notranslate">
                ```
                opts = GPUdb.Options.default()
                opts.disable_failover = True
                db1 = gpudb.GPUdb( host = "http://1.2.3.4:9191",
                                   options = opts )
                opts.primary_url = "http://7.8.9.0:9191"
                db2 = gpudb.GPUdb( host = "http://1.2.3.4:9191",
                                   options = opts )
                ```
              </div>

              <p>Create a default set of options for GPUdb object creation.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">options (dict or <a className="reference internal" href="#gpudb.GPUdb.Options" title="gpudb.GPUdb.Options"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Options</span></code></a>) –</div>

                    <div className="dd">
                      <p>Optional dictionary with options already loaded. If a <a className="reference internal" href="#gpudb.GPUdb.Options" title="gpudb.GPUdb.Options"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Options</span></code></a> object, then this will work like a copy constructor and make a full copy of the input argument.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>An <code className="xref py py-class docutils literal notranslate"><span className="pre">Options</span></code> object.</p>
                </div>
              </blockquote>

              <div className="dl py method">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.as_json"> <span className="sig-name descname"><span className="pre">as\_json</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span> <span className="sig-return"><span className="sig-return-icon">→</span> <span className="sig-return-typehint"><span className="pre">str</span></span></span></div>

                <div className="dd">
                  <p>Return the options as a JSON. Will stringify parameters as needed. For example, GPUdb.URL and GPUdb.HAFailoverOrder objects will be stringified.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.cluster_reconnect_count"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">cluster\_reconnect\_count</span></span></div>

                <div className="dd">
                  <p>Gets the number of times the API tries to reconnect to the same cluster (when a failover event has been triggered), before actually failing over to any available backup cluster. Does not apply when only a single cluster is available.</p>
                  <p>This method is now deprecated.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.disable_auto_discovery"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">disable\_auto\_discovery</span></span></div>

                <div className="dd">
                  <p>Gets the property indicating whether to disable automatic discovery of backup clusters or worker rank URLs. If set to true, then the GPUdb object will not connect to the database at initialization time, and will only work with the URLs given.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.disable_failover"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">disable\_failover</span></span></div>

                <div className="dd">
                  <p>Gets the whether failover upon failures is to be completely disabled.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.encoding"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">encoding</span></span></div>

                <div className="dd">
                  <p>Gets the encoding used by the client. Supported values are:</p>

                  <ul className="simple">
                    <li>
                      <p><strong>binary</strong></p>
                    </li>

                    <li>
                      <p><strong>snappy</strong></p>
                    </li>

                    <li>
                      <p><strong>json</strong></p>
                    </li>
                  </ul>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.ha_failover_order"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">ha\_failover\_order</span></span></div>

                <div className="dd">
                  <p>Gets the current inter-cluster failover order. This indicates in which order–sequential or random–the backup clusters would be used when an inter-cluster failover event happens. Default is RANDOM.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.host_manager_port"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">host\_manager\_port</span></span></div>

                <div className="dd">
                  <p>Gets the host manager port number. Some endpoints are supported only at the host manager, rather than the head node of the database.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.hostname_regex"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">hostname\_regex</span></span></div>

                <div className="dd">
                  <p>Gets the regex pattern to be used to filter URLs of the servers. If null, then the first URL encountered per rank will be used. Returns a compiled regex object or None if no regex is being used.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.http_headers"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">http\_headers</span></span></div>

                <div className="dd">
                  <p>Gets the custom HTTP headers that will be used per HTTP endpoint submission by the <a className="reference internal" href="#gpudb.GPUdb" title="gpudb.GPUdb"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb</span></code></a> to the server. The header keys and values must be strings. Returns a deep copy.</p>
                </div>
              </div>

              <div className="dl py method">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.add_http_header"> <span className="sig-name descname"><span className="pre">add\_http\_header</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">header</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span></span><span className="sig-paren">)</span></div>

                <div className="dd">
                  <p>Adds a custom HTTP header to the set of ones which will be used per HTTP endpoint submission by the <a className="reference internal" href="#gpudb.GPUdb" title="gpudb.GPUdb"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb</span></code></a> to the server. The header key and value must be strings. Also, the following headers are protected, and cannot be overridden by the user:</p>

                  <ul className="simple">
                    <li>
                      <p>“Accept”</p>
                    </li>

                    <li>
                      <p>“Authorization”</p>
                    </li>

                    <li>
                      <p>“Content-type”</p>
                    </li>

                    <li>
                      <p>“X-Kinetica-Group”</p>
                    </li>
                  </ul>

                  <p><strong>Parameters</strong></p>

                  <blockquote>
                    <div>
                      <div className="dl simple">
                        <div className="dt">header (<span className="em">str</span>) –</div>

                        <div className="dd">
                          <p>The single header to add.</p>
                        </div>

                        <div className="dt">value (<span className="em">str</span>) –</div>

                        <div className="dd">
                          <p>Value of the single header value to add.</p>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.initial_connection_attempt_timeout"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">initial\_connection\_attempt\_timeout</span></span></div>

                <div className="dd">
                  <p>Gets the timeout used when trying to establish a connection to the database at GPUdb initialization. The value is given in milliseconds and the default is 0. 0 indicates no retry will be done; instead, the user given URLs will be stored without farther discovery.</p>
                  <p>If multiple URLs are given by the user, then API will try all of them once before retrying or giving up. When this timeout is set to a non-zero value, and the first attempt failed, then the API will wait (sleep) for a certain amount of time and try again. Upon consecutive failures, the sleep amount will be doubled. So, before the first retry (i.e. the second attempt), the API will sleep for one minute. Before the second retry, the API will sleep for two minutes, the next sleep interval would be four minutes, and onward.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.server_connection_timeout"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">server\_connection\_timeout</span></span></div>

                <div className="dd">
                  <p>Gets the timeout used when trying to establish a connection to the database at GPUdb initialization. The value is given in milliseconds and the default is 0. 0 indicates no retry will be done; instead, the user given URLs will be stored without farther discovery.</p>
                  <p>If multiple URLs are given by the user, then API will try all of them once before retrying or giving up. When this timeout is set to a non-zero value, and the first attempt failed, then the API will wait (sleep) for a certain amount of time and try again. Upon consecutive failures, the sleep amount will be doubled. So, before the first retry (i.e. the second attempt), the API will sleep for one minute. Before the second retry, the API will sleep for two minutes, the next sleep interval would be four minutes, and onward.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.intra_cluster_failover_timeout"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">intra\_cluster\_failover\_timeout</span></span></div>

                <div className="dd">
                  <p>Gets the timeout used when trying to recover from an intra-cluster failover event. The value is given in seconds. The default is equivalent to 5 minutes.</p>
                  <p>This method is now deprecated.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.logging_level"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">logging\_level</span></span></div>

                <div className="dd">
                  <p>Gets the logging level that will be used by the API. By default, logging is set by the root logger (possibly set by the end user application). If the user sets the logging level explicitly via this options class, then the programmatically set level will be used instead.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.password"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">password</span></span></div>

                <div className="dd">
                  <p>Gets the password to be used for authentication to GPUdb.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.primary_url"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">primary\_url</span></span></div>

                <div className="dd">
                  <p>Gets the URL of the primary cluster’s head node in an HA environment.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.primary_host"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">primary\_host</span></span></div>

                <div className="dd">
                  <p>Gets the hostname of the primary cluster of the HA environment.</p>

                  <div className="deprecated">
                    <p><span className="versionmodified deprecated">Deprecated since version 7.2.3.5: </span>The method will be removed in version 8.0.0.0. Instead of setting the primary host, the primary URL should be set using <cite>GPUdb.Options.primary\_url</cite> at <cite>GPUdb</cite> initialization.</p>
                  </div>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.protocol"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">protocol</span></span></div>

                <div className="dd">
                  <p>Gets the protocol being used by the client.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.skip_ssl_cert_verification"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">skip\_ssl\_cert\_verification</span></span></div>

                <div className="dd">
                  <p>Gets the value of the property indicating whether to verify the SSL certificate for HTTPS connections.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.timeout"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">timeout</span></span></div>

                <div className="dd">
                  <p>Gets the timeout value, in milliseconds, after which a lack of response from the GPUdb server will result in requests being aborted. A timeout of zero is interpreted as an infinite timeout. Note that this applies independently to various stages of communication, so overall a request may run for longer than this without being aborted.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.username"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">username</span></span></div>

                <div className="dd">
                  <p>Gets the username to be used for authentication to GPUdb.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.oauth_token"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">oauth\_token</span></span></div>

                <div className="dd">
                  <p>Gets the OAuth2 token to be used for authentication to GPUdb.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.max_retries"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">max\_retries</span></span></div>

                <div className="dd">
                  <p>Gets the maximum number of retry attempts for HTTP requests.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.client_name"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">client\_name</span></span></div>

                <div className="dd">
                  <p>Gets the client application name to be included in the User-Agent header for HTTP requests.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Options.client_version"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">client\_version</span></span></div>

                <div className="dd">
                  <p>Gets the client application version to be included in the User-Agent header for HTTP requests.</p>
                </div>
              </div>
            </div>
          </div>

          <div className="dl py class">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.Version"> <span className="em property"><span className="k"><span className="pre">class</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">Version</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">version\_str</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>An internal class to handle Kinetica Version (client API or server).</p>
              <p>Takes in a string containing a Kinetica version and creates a <a className="reference internal" href="#gpudb.GPUdb.Version" title="gpudb.GPUdb.Version"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Version</span></code></a> object from it.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">version\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A string containing the Kinetica version (client or server). Expect at least four components separated by a period (.). There may be additional parts after the fourth component that will be discarded.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Version.first"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">first</span></span></div>

                <div className="dd">
                  <p>Read-only property–first component of the version.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Version.second"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">second</span></span></div>

                <div className="dd">
                  <p>Read-only property–second component of the version.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Version.third"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">third</span></span></div>

                <div className="dd">
                  <p>Read-only property–third component of the version.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Version.fourth"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">fourth</span></span></div>

                <div className="dd">
                  <p>Read-only property–fourth component of the version.</p>
                </div>
              </div>

              <div className="dl py method">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.Version.is_version_compatible"> <span className="sig-name descname"><span className="pre">is\_version\_compatible</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">other</span></span></span><span className="sig-paren">)</span></div>

                <div className="dd">
                  <p>Given another version, are the two compatible based on just the first two components taken into account? We don’t take the 3rd and 4th components into account since the server and the API ought to work as long as the first two components match.</p>

                  <div className="dl simple">
                    <div className="dt">TODO: Possibly add another optional parameter for taking how many</div>

                    <div className="dd">
                      <p>components to take into account when checking for compatibility.</p>
                    </div>
                  </div>

                  <p><strong>Parameters</strong></p>

                  <blockquote>
                    <div>
                      <div className="dl simple">
                        <div className="dt">other (<a className="reference internal" href="#gpudb.GPUdb.Version" title="gpudb.GPUdb.Version"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Version</span></code></a>) –</div>

                        <div className="dd">
                          <p>The other version object.</p>
                        </div>
                      </div>
                    </div>
                  </blockquote>

                  <p><strong>Returns</strong></p>

                  <blockquote>
                    <div>
                      <p>True if the two are compatible, False otherwise.</p>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
          </div>

          <div className="dl py class">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.ValidateUrl"> <span className="em property"><span className="k"><span className="pre">class</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">ValidateUrl</span></span></div>

            <div className="dd">
              <p>An internal class to handle connection URL parsing</p>

              <div className="dl py method">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ValidateUrl.validate_url"> <span className="em property"><span className="k"><span className="pre">static</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">validate\_url</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">url</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

                <div className="dd">
                  <p>Takes in a string URL, validates it, adds defaults where necessary, and returns a tuple with the URL components.</p>
                  <p><strong>Parameters</strong></p>

                  <blockquote>
                    <div>
                      <div className="dl simple">
                        <div className="dt">url (<span className="em">str</span>) –</div>

                        <div className="dd">
                          <p>A string containing a Kinetica connection URL.</p>
                        </div>
                      </div>
                    </div>
                  </blockquote>

                  <p><strong>Returns</strong></p>

                  <blockquote>
                    <div>
                      <p>A two-part tuple, the first is whether or not the URL was able –</p>
                      <p>to be parsed, and the second is either the error message (if the –</p>
                      <p>URL couldn’t be parsed) or a 7-part tuple containing the –</p>
                      <p>parsed URL and its components (<span className="em">if it could be parsed</span>)</p>
                      <p>\* Full URL –</p>
                      <p>\* Protocol (<span className="em">HTTP,HTTPS</span>) –</p>
                      <p>\* Hostname –</p>
                      <p>\* Port –</p>
                      <p>\* Path –</p>
                      <p>\* Username (<span className="em">if specified in the URL</span>) –</p>
                      <p>\* Password (<span className="em">if specified in the URL</span>)</p>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
          </div>

          <div className="dl py class">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.URL"> <span className="em property"><span className="k"><span className="pre">class</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">URL</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">url</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">port</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">protocol</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">accept\_full\_urls\_only</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>An internal class to handle URLs. Stores the hostname/IP address, port, protocol, path, and the full URL (as a string).</p>
              <p>Takes in a string containing a full URL, or another <code className="xref py py-class docutils literal notranslate"><span className="pre">URL</span></code> object, and creates a <code className="xref py py-class docutils literal notranslate"><span className="pre">URL</span></code> object from it.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">url (<span className="em">str or GPUdb.URL</span>) –</div>

                    <div className="dd">
                      <p>Either a hostname/URL string or another GPUdb.URL object to create this object for. Note that the port is not a mandatory part of the URL.</p>
                    </div>

                    <div className="dt">port (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Optional port. If specified, will be appended to any host specified and will override the port of any URL specified.</p>
                    </div>

                    <div className="dt">protocol (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Optional protocol. If specified, will be prepended to any host specified and will override the protocol of any URL specified.</p>
                    </div>

                    <div className="dt">accept\_full\_urls\_only (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Optional argument. If False, then be flexible in the parsing; for example, if no port is given, use the default port. If True, then only accept full URLs only. Default is False.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.host"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">host</span></span></div>

                <div className="dd">
                  <p>Read-only property–hostname or IP address.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.port"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">port</span></span></div>

                <div className="dd">
                  <p>Read-only property–port.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.using_default_port"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">using\_default\_port</span></span></div>

                <div className="dd">
                  <p>Read-only property–boolean indicating if we’re using a default port, or using the user given port (or the lack thereof).</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.protocol"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">protocol</span></span></div>

                <div className="dd">
                  <p>Read-only property–protocol (HTTP or HTTPS).</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.using_default_protocol"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">using\_default\_protocol</span></span></div>

                <div className="dd">
                  <p>Read-only property–boolean indicating if we’re using a default protocol, or using the user given protocol.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.path"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">path</span></span></div>

                <div className="dd">
                  <p>Read-only property–URL path.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.url"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">url</span></span></div>

                <div className="dd">
                  <p>Read-only property–fully qualified URL.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.username"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">username</span></span></div>

                <div className="dd">
                  <p>Read-only property–username in URL, if present.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.URL.password"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">password</span></span></div>

                <div className="dd">
                  <p>Read-only property–password in URL, if present.</p>
                </div>
              </div>
            </div>
          </div>

          <div className="dl py class">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo"> <span className="em property"><span className="k"><span className="pre">class</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">ClusterAddressInfo</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">head\_rank\_url</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">worker\_rank\_urls</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">host\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">host\_manager\_url</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">host\_manager\_port</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">is\_primary\_cluster</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">server\_version</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">logging\_level</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Inner class to keep track of all relevant information for a given Kinetica cluster. It mostly keeps track of URLs and hostnames, with some additional information like whether the cluster is primary or not.</p>
              <p>Creates a <code className="xref py py-class docutils literal notranslate"><span className="pre">ClusterAddressInfo</span></code> object with the given information.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">head\_rank\_url (str or <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a>) –</div>

                    <div className="dd">
                      <p>Only required argument. Must be a full URL string or <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> object. E.g. “<a className="reference external" href="http://1.2.3.4:8082/gpudb-0">[http://1.2.3.4:8082/gpudb-0](http://1.2.3.4:8082/gpudb-0)</a>”.</p>
                    </div>

                    <div className="dt">worker\_rank\_urls (list of str or <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a>) –</div>

                    <div className="dd">
                      <p>Optional argument. Must be a list of fully qualified URLs. These URLs correspond to the worker ranks’ addresses.</p>
                    </div>

                    <div className="dt">host\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Optional argument. Must be a list of strings. These strings contain hostnames or IP addresses for all the nodes/hosts in the cluster. May contain the protocol (e.g. “<a className="reference external" href="http://host0">[http://host0](http://host0)</a>”).</p>
                    </div>

                    <div className="dt">host\_manager\_url (str or <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a>) –</div>

                    <div className="dd">
                      <p>Optional argument, mutually exclusive with <cite>host\_manager\_port</cite>. If given, must be a fully qualified URL for the host manager of this cluster.</p>
                    </div>

                    <div className="dt">host\_manager\_port (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Optional argument, mutually exclusive with <cite>host\_manager\_url</cite>. If given, must be an integer in the range \[1, 65535].</p>
                    </div>

                    <div className="dt">is\_primary\_cluster (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Optional boolean argument. Indicates if this cluster is to be treated as the primary cluster. Default is False.</p>
                    </div>

                    <div className="dt">server\_version (str or <a className="reference internal" href="#gpudb.GPUdb.Version" title="gpudb.GPUdb.Version"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Version</span></code></a>) –</div>

                    <div className="dd">
                      <p>Optional string containing the server version. If given, will be parsed as a <a className="reference internal" href="#gpudb.GPUdb.Version" title="gpudb.GPUdb.Version"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Version</span></code></a> object. Default is None.</p>
                    </div>

                    <div className="dt">logging\_level (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Optional level at which logs should be output. Default is None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.head_rank_url"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">head\_rank\_url</span></span></div>

                <div className="dd">
                  <p>Returns the current head node <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> for this cluster.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.protocol"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">protocol</span></span></div>

                <div className="dd">
                  <p>Returns the protocol used (‘HTTP’ or ‘HTTPS’). This is derived from the head rank URL. A read-only property.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.worker_rank_urls"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">worker\_rank\_urls</span></span></div>

                <div className="dd">
                  <p>Returns the list of the worker rank <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> objects for this cluster. May be empty if worker http servers are disabled.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.host_names"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">host\_names</span></span></div>

                <div className="dd">
                  <p>Returns the list of hostnames for this cluster.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.host_manager_url"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">host\_manager\_url</span></span></div>

                <div className="dd">
                  <p>Returns the host manager <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> for this cluster.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.is_primary_cluster"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">is\_primary\_cluster</span></span></div>

                <div className="dd">
                  <p>Returns whether this cluster is the primary cluster in the ring.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.is_intra_cluster_failover_enabled"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">is\_intra\_cluster\_failover\_enabled</span></span></div>

                <div className="dd">
                  <p>Returns whether this cluster has intra-cluster failover enabled.</p>
                  <p>This method is now deprecated.</p>
                </div>
              </div>

              <div className="dl py property">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.server_version"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">server\_version</span></span></div>

                <div className="dd">
                  <p>Returns the version of this cluster, if known; None otherwise.</p>
                </div>
              </div>

              <div className="dl py method">
                <div className="dt sig sig-object py" id="gpudb.GPUdb.ClusterAddressInfo.does_cluster_contain_node"> <span className="sig-name descname"><span className="pre">does\_cluster\_contain\_node</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">host\_name</span></span></span><span className="sig-paren">)</span></div>

                <div className="dd">
                  <p>Checks if the given hostname (or IP address) is part of this cluster.</p>
                  <p><strong>Parameters</strong></p>

                  <blockquote>
                    <div>
                      <div className="dl simple">
                        <div className="dt">host\_name (<span className="em">str</span>) –</div>

                        <div className="dd">
                          <p>String containing a hostname or an IP address.</p>
                        </div>
                      </div>
                    </div>
                  </blockquote>

                  <p><strong>Returns</strong></p>

                  <blockquote>
                    <div>
                      <p>True if this cluster contains a machine with the given –</p>
                      <p>hostname or IP address, False otherwise.</p>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
          </div>

          <div className="dl py attribute">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.END_OF_SET"> <span className="sig-name descname"><span className="pre">END\_OF\_SET</span></span><span className="em property"><span className="w"> </span><span className="p"><span className="pre">=</span></span><span className="w"> </span><span className="pre">-9999</span></span></div>

            <div className="dd">
              <p>(int) Used for indicating that all of the records (till the end of the set are desired)–generally used for /get/records/\* functions.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_version_info"> <span className="sig-name descname"><span className="pre">get\_version\_info</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return the version information for this API.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_host"> <span className="sig-name descname"><span className="pre">get\_host</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return the host this client is talking to.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_primary_host"> <span className="sig-name descname"><span className="pre">get\_primary\_host</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return the primary host for this client.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.set_primary_host"> <span className="sig-name descname"><span className="pre">set\_primary\_host</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">new\_primary\_host</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">start\_using\_new\_primary\_host</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">delete\_old\_primary\_host</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Set the primary host for this client. Start using this host per the user’s directions. Also, either delete any existing primary host information, or relegate it to the ranks of a backup host.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">value (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A string containing the full URL of the new primary host (of the format ‘http\[s]://X.X.X.X:PORT\[/httpd-name]’). Must have valid URL format. May be part of the given back-up hosts, or be a completely new one.</p>
                    </div>

                    <div className="dt">start\_using\_new\_primary\_host (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Boolean flag indicating if the new primary host should be used starting immediately. Please be cautious about setting the value of this flag to True; there may be unintended consequences regarding query chaining. Caveat: if values given is False, but <span className="em">delete\_old\_primary\_host</span> is True and the old primary host, if any, was being used at the time of this function call, then the client still DOES switch over to the new primary host. Default value is False.</p>
                    </div>

                    <div className="dt">delete\_old\_primary\_host (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Boolean flag indicating that if a primary host was already set, delete that information. If False, then any existing primary host URL would treated as a regular back-up cluster’s host. Default value is False.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <div className="deprecated">
                <p><span className="versionmodified deprecated">Deprecated since version 7.1.0.0: </span>As of version 7.1.0.0, this method will no longer be functional. This method will be a no-op, not changing primary host. port. The method will be removed in version 7.2.0.0. The only way to set the primary host is via <cite>GPUdb.Options</cite> at <cite>GPUdb</cite> initialization. It cannot be changed after that.</p>
              </div>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_port"> <span className="sig-name descname"><span className="pre">get\_port</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return the port the host is listening to.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_host_manager_port"> <span className="sig-name descname"><span className="pre">get\_host\_manager\_port</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return the port the host manager is listening to.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_url"> <span className="sig-name descname"><span className="pre">get\_url</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">stringified</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return the GPUdb.URL or its string representation that points to the current head node of the current cluster in use.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">stringified (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Optional argument. If True, return the string representation, otherwise return the <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> object. Default is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> object or its string representation.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_hm_url"> <span className="sig-name descname"><span className="pre">get\_hm\_url</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">stringified</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return the GPUdb.URL or its string representation that points to the current host manager of the current cluster in use.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">stringified (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Optional argument. If True, return the string representation, otherwise return the <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> object. Default is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> object or its string representation.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_failover_urls"> <span className="sig-name descname"><span className="pre">get\_failover\_urls</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return a list of the head node URLs for each of the clusters in the HA ring in failover order.</p>
              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A list of <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> objects.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_head_node_urls"> <span className="sig-name descname"><span className="pre">get\_head\_node\_urls</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return a list of the head node URLs for each of the clusters in the HA ring for the database server.</p>
              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A list of <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> objects.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_num_cluster_switches"> <span className="sig-name descname"><span className="pre">get\_num\_cluster\_switches</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Gets the number of times the client has switched to a different cluster amongst the high availability ring.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.current_cluster_info"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">current\_cluster\_info</span></span></div>

            <div className="dd">
              <p>Return the <a className="reference internal" href="#gpudb.GPUdb.ClusterAddressInfo" title="gpudb.GPUdb.ClusterAddressInfo"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.ClusterAddressInfo</span></code></a> object containing information on the current/active cluster.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.all_cluster_info"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">all\_cluster\_info</span></span></div>

            <div className="dd">
              <p>Return the list of <a className="reference internal" href="#gpudb.GPUdb.ClusterAddressInfo" title="gpudb.GPUdb.ClusterAddressInfo"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.ClusterAddressInfo</span></code></a> objects that contain address of each of the clusters in the ring.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.ha_ring_size"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">ha\_ring\_size</span></span></div>

            <div className="dd">
              <p>Return the list of <a className="reference internal" href="#gpudb.GPUdb.ClusterAddressInfo" title="gpudb.GPUdb.ClusterAddressInfo"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.ClusterAddressInfo</span></code></a> objects that contain address of each of the clusters in the ring.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.options"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">options</span></span></div>

            <div className="dd">
              <p>Return the <a className="reference internal" href="#gpudb.GPUdb.Options" title="gpudb.GPUdb.Options"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Options</span></code></a> object that contains all the knobs the user can turn for controlling this class’s behavior.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.gpudb_full_url"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">gpudb\_full\_url</span></span></div>

            <div className="dd">
              <p>Returns the full URL of the current head rank of the currently active cluster.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.server_version"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">server\_version</span></span></div>

            <div className="dd">
              <p>Returns the <a className="reference internal" href="#gpudb.GPUdb.Version" title="gpudb.GPUdb.Version"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.Version</span></code></a> object representing the version of the <span className="em">currently active</span> cluster of the Kinetica server.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.protocol"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">protocol</span></span></div>

            <div className="dd">
              <p>Returns the HTTP protocol being used by the <a className="reference internal" href="#gpudb.GPUdb" title="gpudb.GPUdb"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb</span></code></a> object to communicate to the database server.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.primary_host"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">primary\_host</span></span></div>

            <div className="dd">
              <p>Returns the primary hostname.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.username"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">username</span></span></div>

            <div className="dd">
              <p>Gets the username to be used for authentication to GPUdb.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.password"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">password</span></span></div>

            <div className="dd">
              <p>Gets the password to be used for authentication to GPUdb.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.oauth_token"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">oauth\_token</span></span></div>

            <div className="dd">
              <p>Gets the OAuth2 token to be used for authentication to GPUdb.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.timeout"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">timeout</span></span></div>

            <div className="dd">
              <p>Gets the timeout used for http connections to GPUdb.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.disable_auto_discovery"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">disable\_auto\_discovery</span></span></div>

            <div className="dd">
              <p>Returns whether auto-discovery has been disabled.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.logging_level"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">logging\_level</span></span></div>

            <div className="dd">
              <p>Returns the integer value of the logging level that is being used by the API. By default, logging is set to NOTSET, and the logger will honor the root logger’s level.</p>
            </div>
          </div>

          <div className="dl py property">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_known_types"> <span className="em property"><span className="k"><span className="pre">property</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">get\_known\_types</span></span></div>

            <div className="dd">
              <p>Return all known types; if none, return None.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_known_type"> <span className="sig-name descname"><span className="pre">get\_known\_type</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">type\_id</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">lookup\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Given an type ID, return any associated known type; if none is found, then optionally try to look it up and save it. Otherwise, return None.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The ID for the type.</p>
                    </div>

                    <div className="dt">lookup\_type (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If True, then if the type is not already found, then to look it up by invoking <a className="reference internal" href="#gpudb.GPUdb.show_types" title="gpudb.GPUdb.show_types"><code className="xref py py-meth docutils literal notranslate"><span className="pre">show\_types()</span></code></a>, save it for the future, and return it.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The associated RecordType, if found (<span className="em">or looked up</span>) –</p>
                  <p>otherwise.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_all_available_full_urls"> <span className="sig-name descname"><span className="pre">get\_all\_available\_full\_urls</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">stringified</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Return the list of <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> objects or its string representation that points to the current head node of each of the clusters in the ring.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">stringified (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Optional argument. If True, return the string representation, otherwise return the <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> object. Default is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The <a className="reference internal" href="#gpudb.GPUdb.URL" title="gpudb.GPUdb.URL"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb.URL</span></code></a> object or its string representation.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.add_http_header"> <span className="sig-name descname"><span className="pre">add\_http\_header</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">header</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Adds an HTTP header to the map of additional HTTP headers to send to the server with each request. If the header is already in the map, its value is replaced with the specified value. The user is not allowed to modify the following headers:</p>

              <ul className="simple">
                <li>
                  <p><code className="docutils literal notranslate"><span className="pre">Accept</span></code></p>
                </li>

                <li>
                  <p><code className="docutils literal notranslate"><span className="pre">Authorization</span></code></p>
                </li>

                <li>
                  <p><code className="docutils literal notranslate"><span className="pre">X-Kinetica-Group</span></code></p>
                </li>

                <li>
                  <p><code className="docutils literal notranslate"><span className="pre">Content-type</span></code></p>
                </li>
              </ul>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.remove_http_header"> <span className="sig-name descname"><span className="pre">remove\_http\_header</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">header</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Removes the given HTTP header from the map of additional HTTP headers to send to GPUdb with each request. The user is not allowed to remove the following headers:</p>

              <ul className="simple">
                <li>
                  <p><code className="docutils literal notranslate"><span className="pre">Accept</span></code></p>
                </li>

                <li>
                  <p><code className="docutils literal notranslate"><span className="pre">Authorization</span></code></p>
                </li>

                <li>
                  <p><code className="docutils literal notranslate"><span className="pre">X-Kinetica-Group</span></code></p>
                </li>

                <li>
                  <p><code className="docutils literal notranslate"><span className="pre">Content-type</span></code></p>
                </li>
              </ul>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_http_headers"> <span className="sig-name descname"><span className="pre">get\_http\_headers</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Returns a dict containing all the custom headers used currently by <a className="reference internal" href="#gpudb.GPUdb" title="gpudb.GPUdb"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb</span></code></a>. Returns a deep copy so that the user does not accidentally change the headers. Note that the API may use other headers as appropriate; the ones returned here are the custom ones set up by the user.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.log_debug"> <span className="sig-name descname"><span className="pre">log\_debug</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">message</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Logging method for debug.</p>

              <div className="deprecated">
                <p><span className="versionmodified deprecated">Deprecated since version 7.1.0.0: </span>As of version 7.1.0.0, this method is deprecated, and may be removed in a future version. Previously, this was a static method; now it is an instance method. This method will log messages as intended.</p>
              </div>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.log_warn"> <span className="sig-name descname"><span className="pre">log\_warn</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">message</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Logging method for warnings.</p>

              <div className="deprecated">
                <p><span className="versionmodified deprecated">Deprecated since version 7.1.0.0: </span>As of version 7.1.0.0, this method is deprecated, and may be removed in a future version. Previously, this was a static method; now it is an instance method. This method will log messages as intended.</p>
              </div>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.log_info"> <span className="sig-name descname"><span className="pre">log\_info</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">message</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Logging method for information.</p>

              <div className="deprecated">
                <p><span className="versionmodified deprecated">Deprecated since version 7.1.0.0: </span>As of version 7.1.0.0, this method is deprecated, and may be removed in a future version. Previously, this was a static method; now it is an instance method. This method will log messages as intended.</p>
              </div>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.log_error"> <span className="sig-name descname"><span className="pre">log\_error</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">message</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Logging method for error.</p>

              <div className="deprecated">
                <p><span className="versionmodified deprecated">Deprecated since version 7.1.0.0: </span>As of version 7.1.0.0, this method is deprecated, and may be removed in a future version. Previously, this was a static method; now it is an instance method. This method will log messages as intended.</p>
              </div>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.encode_datum"> <span className="sig-name descname"><span className="pre">encode\_datum</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">SCHEMA</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datum</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Returns an Avro binary or JSON encoded datum dict using its schema.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">SCHEMA (<span className="em">str or avro.Schema</span>) –</div>

                    <div className="dd">
                      <p>A parsed schema object from avro.schema.parse() or a string containing the schema.</p>
                    </div>

                    <div className="dt">datum (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>A dict of key-value pairs containing the data to encode (the entries must match the schema).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.encode_datum_cext"> <span className="sig-name descname"><span className="pre">encode\_datum\_cext</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">SCHEMA</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datum</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Returns an avro binary or JSON encoded datum dict using its schema.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">SCHEMA (<span className="em">str or avro.Schema</span>) –</div>

                    <div className="dd">
                      <p>A parsed schema object from avro.schema.parse() or a string containing the schema.</p>
                    </div>

                    <div className="dt">datum (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>A dict of key-value pairs containing the data to encode (the entries must match the schema).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.valid_json"> <span className="em property"><span className="k"><span className="pre">static</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">valid\_json</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">json\_string</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Validates a JSON string by trying to parse it into a Python object</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.merge_dicts"> <span className="em property"><span className="k"><span className="pre">static</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">merge\_dicts</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="o"><span className="pre">\*</span></span><span className="n"><span className="pre">dict\_args</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Given any number of dictionaries, shallow copy and merge into a new dict, precedence goes to key-value pairs in latter dictionaries.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.logger"> <span className="sig-name descname"><span className="pre">logger</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">ranks</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">log\_levels</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Convenience function to change log levels of some or all GPUdb ranks.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">ranks (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>A list containing the ranks to which to apply the new log levels.</p>
                    </div>

                    <div className="dt">log\_levels (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>A map where the keys dictate which log’s levels to change, and the values dictate what the new log levels will be.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The status of the endpoint (‘OK’ or ‘ERROR’).</p>
                    </div>

                    <div className="dt">log\_levels (<span className="em">map of str to str</span>) –</div>

                    <div className="dd">
                      <p>A map of each log level to its respective value</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.set_server_logger_level"> <span className="sig-name descname"><span className="pre">set\_server\_logger\_level</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">ranks</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">log\_levels</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Convenience function to change log levels of some or all GPUdb ranks.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">ranks (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>A list containing the ranks to which to apply the new log levels.</p>
                    </div>

                    <div className="dt">log\_levels (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>A map where the keys dictate which log’s levels to change, and the values dictate what the new log levels will be.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The status of the endpoint (‘OK’ or ‘ERROR’).</p>
                    </div>

                    <div className="dt">log\_levels (<span className="em">map of str to str</span>) –</div>

                    <div className="dd">
                      <p>A map of each log level to its respective value</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.set_client_logger_level"> <span className="sig-name descname"><span className="pre">set\_client\_logger\_level</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">log\_level</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Set the log level for the client GPUdb class.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">log\_level (<span className="em">int or str</span>) –</div>

                    <div className="dd">
                      <p>A valid log level for the logging module</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.insert"> <span className="sig-name descname"><span className="pre">insert</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="keyword-only-separator o"><abbr title="Keyword-only parameters separator (PEP 3102)"><span className="pre">\*</span></abbr></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="p"><span className="pre">:</span></span><span className="w"> </span><span className="n"><span className="pre">str</span></span><span className="w"> </span><span className="o"><span className="pre">=</span></span><span className="w"> </span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">records</span></span><span className="p"><span className="pre">:</span></span><span className="w"> </span><span className="n"><span className="pre">List</span><span className="p"><span className="pre">\[</span></span><span className="pre">Any</span><span className="p"><span className="pre">]</span></span><span className="w"> </span><span className="p"><span className="pre">|</span></span><span className="w"> </span><span className="pre">Dict</span><span className="p"><span className="pre">\[</span></span><span className="pre">str</span><span className="p"><span className="pre">,</span></span><span className="w"> </span><span className="pre">Any</span><span className="p"><span className="pre">]</span></span><span className="w"> </span><span className="p"><span className="pre">|</span></span><span className="w"> </span><span className="pre">List</span><span className="p"><span className="pre">\[</span></span><span className="pre">List</span><span className="p"><span className="pre">\[</span></span><span className="pre">Any</span><span className="p"><span className="pre">]</span></span><span className="p"><span className="pre">]</span></span><span className="w"> </span><span className="p"><span className="pre">|</span></span><span className="w"> </span><span className="pre">List</span><span className="p"><span className="pre">\[</span></span><span className="pre">Dict</span><span className="p"><span className="pre">\[</span></span><span className="pre">str</span><span className="p"><span className="pre">,</span></span><span className="w"> </span><span className="pre">Any</span><span className="p"><span className="pre">]</span></span><span className="p"><span className="pre">]</span></span></span><span className="w"> </span><span className="o"><span className="pre">=</span></span><span className="w"> </span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Insert one or more records.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name –</div>

                    <div className="dd">
                      <p>keyword only The name of the Kinetica table to insert data into</p>
                    </div>

                    <div className="dt">records –</div>

                    <div className="dd">
                      <p>keyword only Values for all columns of a single record or multiple records. For a single record, use either of the following syntaxes:</p>

                      <div className="highlight-default notranslate">
                        ```
                        insert_records( [1, 2, 3] )
                        ```
                      </div>

                      <p>For multiple records, use either of the following syntaxes:</p>

                      <div className="highlight-default notranslate">
                        ```
                        insert_records( [ [1, 2, 3], [4, 5, 6] ] )
                        insert_records(   [1, 2, 3], [4, 5, 6]   )
                        ```
                      </div>

                      <p>Also, the user can use keyword arguments to pass in values:</p>

                      <div className="highlight-default notranslate">
                        ```
                        # For a record type with two integers named 'a' and 'b':
                        insert_records( {"a":  1, "b":  1},
                                        {"a": 42, "b": 32} )

                        # Also can use a list to pass the dicts
                        insert_records( [ {"a":  1, "b":  1},
                                          {"a": 42, "b": 32} ] )
                        ```
                      </div>

                      <p>Additionally, the user may provide options for the insertion operation. For example:</p>

                      <div className="highlight-default notranslate">
                        ```
                        insert_records( [1, 2, 3], [4, 5, 6],
                                        options = {"return_record_ids": "true"} )
                        ```
                      </div>
                    </div>

                    <div className="dt">options –</div>

                    <div className="dd">
                      <p>keyword only Values for all columns for a single record. Mutually exclusive with args (i.e. cannot provide both) when it only contains data.</p>
                      <p>May contain an ‘options’ keyword arg which will be passed to the database for the insertion operation.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A <a className="reference internal" href="/content/api/python/source/gpudbtable#gpudb.GPUdbTable" title="gpudb.GPUdbTable"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdbTable</span></code></a> object with the insert\_records() –</p>
                  <p>response fields converted to attributes and stored within.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete"> <span className="sig-name descname"><span className="pre">delete</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="keyword-only-separator o"><abbr title="Keyword-only parameters separator (PEP 3102)"><span className="pre">\*</span></abbr></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">expression</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes the record matching the provided criterion from the given table. The record selection criteria can be a single input parameter <span className="em">expression</span> (matching multiple records) The operation is synchronous meaning that a response will not be available until the request is completely processed and all the matching records are deleted.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table from which to delete records, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must contain the name of an existing table; not applicable to views.</p>
                    </div>

                    <div className="dt">expression (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The actual predicate, to be used by the delete operation; format should follow the guidelines provided <a className="reference external" href="/content/concepts/expressions/">here</a>. Specifying an input parameter <span className="em">expression</span> is mutually exclusive to specifying <span className="em">record\_id</span> in the input parameter <span className="em">options</span>. The user can provide a single element (which will be automatically promoted to a list internally) or a list having a single element.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries if successful–</p>

                  <div className="dl simple">
                    <div className="dt">count\_deleted (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records deleted across all expressions.</p>
                    </div>

                    <div className="dt">In case of error it returns a dict - {"{"}‘status’ –</div>

                    <div className="dd">
                      <p>‘ERROR’, ‘message’: ‘Some error message’{"}"}</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.update"> <span className="sig-name descname"><span className="pre">update</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="keyword-only-separator o"><abbr title="Keyword-only parameters separator (PEP 3102)"><span className="pre">\*</span></abbr></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">expression</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">new\_values\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Runs predicate-based updates in a single call. With the given expression, any matching record’s column values will be updated as provided in input parameter <span className="em">new\_values\_map</span>.</p>
              <p>Note that this operation can only be run on an original table and not on a result view.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of table to be updated, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be a currently existing table and not a view.</p>
                    </div>

                    <div className="dt">expression (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>An actual predicate for the update; format should follow the guidelines <a className="reference internal" href="#gpudb.GPUdb.filter" title="gpudb.GPUdb.filter"><code className="xref py py-meth docutils literal notranslate"><span className="pre">here</span></code></a>. The user should provide a single element (which will be automatically promoted to a list internally).</p>
                    </div>

                    <div className="dt">new\_values\_map (<span className="em">a dict of str to optional str</span>) –</div>

                    <div className="dd">
                      <p>List of new values for the matching records. Each element is a (key, value) pair where the keys are the names of the columns whose values are to be updated; the values are the new values. The user can provide a single element (which will be automatically promoted to a list internally).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries if successful–</p>

                  <div className="dl simple">
                    <div className="dt">count\_updated (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records updated.</p>
                    </div>

                    <div className="dt">In case of error it returns a dict - {"{"}‘status’ –</div>

                    <div className="dd">
                      <p>‘ERROR’, ‘message’: ‘Some error message’{"}"}</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.insert_records_json"> <span className="sig-name descname"><span className="pre">insert\_records\_json</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">json\_records</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">json\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">create\_table\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Inserts a single JSON record or an array of JSON records passed in as a string.</p>
              <p>If a fail-over event is triggered, this function will handle failing over to a secondary cluster.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">json\_records (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Either a single JSON record or an array of JSON records (as string). Mandatory.</p>
                    </div>

                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The name of the table to insert into.</p>
                    </div>

                    <div className="dt">json\_options (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>Map of options–only valid one is <span className="em">validate</span>, which determines whether JSON validation is performed on all records before inserting</p>
                    </div>

                    <div className="dt">create\_table\_options (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>Same options as the <span className="em">create\_table\_options</span> in the <a className="reference internal" href="#gpudb.GPUdb.insert_records_from_payload" title="gpudb.GPUdb.insert_records_from_payload"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.insert\_records\_from\_payload()</span></code></a> endpoint</p>
                    </div>

                    <div className="dt">options (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>Same options as <span className="em">options</span> in the <a className="reference internal" href="#gpudb.GPUdb.insert_records_from_payload" title="gpudb.GPUdb.insert_records_from_payload"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.insert\_records\_from\_payload()</span></code></a> endpoint</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The response string (<span className="em">JSON</span>)</p>
                </div>
              </blockquote>

              <p><strong>Raises</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">GPUdbException –</div>

                    <div className="dd">
                      <p>On detecting invalid parameters or some other internal errors</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p>Example</p>

              <div className="highlight-default notranslate">
                ```
                response = gpudb.insert_records_json(records, "test_insert_records_json", json_options={'validate': True}, create_table_options={'truncate_table': 'true'})
                response_object = json.loads(response)
                print(response_object['data']['count_inserted'])
                ```
              </div>

              <div className="admonition seealso">
                <p className="admonition-title">See also</p>
                <p><a className="reference internal" href="#gpudb.GPUdb.insert_records_from_payload" title="gpudb.GPUdb.insert_records_from_payload"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.insert\_records\_from\_payload()</span></code></a></p>
              </div>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records_json"> <span className="sig-name descname"><span className="pre">get\_records\_json</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">expression</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">orderby\_columns</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">having\_clause</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves records from a table in the form of a JSON array (stringified). The only mandatory parameter is the ‘tableName’. The rest are all optional with suitable defaults wherever applicable.</p>
              <p>If a fail-over event is triggered, this function will handle failing over to a secondary cluster.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to query</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list</span>) –</div>

                    <div className="dd">
                      <p>the columns names to retrieve, or None for all</p>
                    </div>

                    <div className="dt">offset (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>the offset to start from; default 0</p>
                    </div>

                    <div className="dt">limit (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>the maximum number of records; default GPUdb.END\_OF\_SET</p>
                    </div>

                    <div className="dt">expression (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>the filter expression</p>
                    </div>

                    <div className="dt">orderby\_columns (<span className="em">list</span>) –</div>

                    <div className="dd">
                      <p>the list of columns to order by</p>
                    </div>

                    <div className="dt">having\_clause (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>the having clause</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The response string (<span className="em">JSON</span>)</p>
                </div>
              </blockquote>

              <p><strong>Raises</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">GPUdbException –</div>

                    <div className="dd">
                      <p>On detecting invalid parameters or some other internal errors</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p>Example</p>

              <div className="highlight-default notranslate">
                ```
                resp = gpudb.get_records_json("table_name")
                json_object = json.loads(resp)
                print(json_object["data"]["records"])
                ```
              </div>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.wms"> <span className="sig-name descname"><span className="pre">wms</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">wms\_params</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">url</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Submits a WMS call to the server.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">wms\_params (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A string containing the WMS endpoint parameters, not containing the ‘/wms’ endpoint itself.</p>
                    </div>

                    <div className="dt">url (<span className="em">str or GPUdb.URL</span>) –</div>

                    <div className="dd">
                      <p>An optional URL to which we submit the /wms endpoint. If None given, use the current URL for this <a className="reference internal" href="#gpudb.GPUdb" title="gpudb.GPUdb"><code className="xref py py-class docutils literal notranslate"><span className="pre">GPUdb</span></code></a> object.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">data –</div>

                    <div className="dd">
                      <p>The /wms content.</p>
                    </div>

                    <div className="dt">status\_info (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>A dict containing more information regarding the request. Keys:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>status</strong></p>
                        </li>

                        <li>
                          <p><strong>message</strong></p>
                        </li>

                        <li>
                          <p><strong>response\_time</strong></p>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.ping"> <span className="sig-name descname"><span className="pre">ping</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">url</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Pings the given URL and returns the response. If no response, returns an empty string.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">url (<span className="em">GPUdb.URL</span>) –</div>

                    <div className="dd">
                      <p>The URL which we are supposed to ping.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The ping response, or an empty string if it fails.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.is_kinetica_running"> <span className="sig-name descname"><span className="pre">is\_kinetica\_running</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">url</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Verifies that GPUdb is running at the given URL (does not do any HA failover).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">url (<span className="em">GPUdb.URL</span>) –</div>

                    <div className="dd">
                      <p>The URL which we are supposed to ping.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>True if Kinetica is running at that URL, False otherwise.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_server_debug_information"> <span className="sig-name descname"><span className="pre">get\_server\_debug\_information</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">url</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Gets the database debug information from the given URL and returns the response.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">url (<span className="em">GPUdb.URL</span>) –</div>

                    <div className="dd">
                      <p>The URL which we are supposed to get information from.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The debug response.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.to_df"> <span className="sig-name descname"><span className="pre">to\_df</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">sql</span></span><span className="p"><span className="pre">:</span></span><span className="w"> </span><span className="n"><span className="pre">str</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sql\_params</span></span><span className="p"><span className="pre">:</span></span><span className="w"> </span><span className="n"><span className="pre">list</span></span><span className="w"> </span><span className="o"><span className="pre">=</span></span><span className="w"> </span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">batch\_size</span></span><span className="p"><span className="pre">:</span></span><span className="w"> </span><span className="n"><span className="pre">int</span></span><span className="w"> </span><span className="o"><span className="pre">=</span></span><span className="w"> </span><span className="default_value"><span className="pre">5000</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sql\_opts</span></span><span className="p"><span className="pre">:</span></span><span className="w"> </span><span className="n"><span className="pre">dict</span></span><span className="w"> </span><span className="o"><span className="pre">=</span></span><span className="w"> </span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">show\_progress</span></span><span className="p"><span className="pre">:</span></span><span className="w"> </span><span className="n"><span className="pre">bool</span></span><span className="w"> </span><span className="o"><span className="pre">=</span></span><span className="w"> </span><span className="default_value"><span className="pre">False</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Runs the given query and converts the result to a Pandas Data Frame.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">sql (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The SQL query to run</p>
                    </div>

                    <div className="dt">sql\_params (<span className="em">list</span>) –</div>

                    <div className="dd">
                      <p>The SQL parameters that will be substituted for tokens (e.g. $1 $2)</p>
                    </div>

                    <div className="dt">batch\_size (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>The number of records to retrieve at a time from the database</p>
                    </div>

                    <div className="dt">sql\_opts (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>The options for SQL execution, matching the options passed to <a className="reference internal" href="#gpudb.GPUdb.execute_sql" title="gpudb.GPUdb.execute_sql"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_sql()</span></code></a>. Defaults to None.</p>
                    </div>

                    <div className="dt">show\_progress (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether to display progress on the console or not. Defaults to False.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Raises</strong></p>

              <blockquote>
                <div>
                  <p>GPUdbException</p>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">pd.DataFrame –</div>

                    <div className="dd">
                      <p>A Pandas Data Frame containing the result set of the SQL query or None if there are no results</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.query"> <span className="sig-name descname"><span className="pre">query</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">sql</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">batch\_size</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">5000</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sql\_params</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sql\_opts</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Execute a SQL query and return a GPUdbSqlIterator</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">sql (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The SQL query to run</p>
                    </div>

                    <div className="dt">batch\_size (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>The number of records to retrieve at a time from the database</p>
                    </div>

                    <div className="dt">sql\_params (<span className="em">list of native types</span>) –</div>

                    <div className="dd">
                      <p>The SQL parameters that will be substituted for tokens (e.g. $1 $2)</p>
                    </div>

                    <div className="dt">sql\_opts (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>The options for SQL execution, matching the options passed to <a className="reference internal" href="#gpudb.GPUdb.execute_sql" title="gpudb.GPUdb.execute_sql"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_sql()</span></code></a>. Defaults to None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>An instance of GPUdbSqlIterator.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.query_one"> <span className="sig-name descname"><span className="pre">query\_one</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">sql</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sql\_params</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sql\_opts</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Execute a SQL query that returns only one row.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">sql (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The SQL query to run</p>
                    </div>

                    <div className="dt">sql\_params (<span className="em">list of native types</span>) –</div>

                    <div className="dd">
                      <p>The SQL parameters that will be substituted for tokens (e.g. $1 $2)</p>
                    </div>

                    <div className="dt">sql\_opts (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>The options for SQL execution, matching the options passed to <a className="reference internal" href="#gpudb.GPUdb.execute_sql" title="gpudb.GPUdb.execute_sql"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_sql()</span></code></a>. Defaults to None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>The returned row or None.</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.execute"> <span className="sig-name descname"><span className="pre">execute</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">sql</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sql\_params</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sql\_opts</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Execute a SQL query and return the row count.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">sql (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The SQL to execute</p>
                    </div>

                    <div className="dt">sql\_params (<span className="em">list of native types</span>) –</div>

                    <div className="dd">
                      <p>The SQL parameters that will be substituted for tokens (e.g. $1 $2)</p>
                    </div>

                    <div className="dt">sql\_opts (<span className="em">dict</span>) –</div>

                    <div className="dd">
                      <p>The options for SQL execution, matching the options passed to <a className="reference internal" href="#gpudb.GPUdb.execute_sql" title="gpudb.GPUdb.execute_sql"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_sql()</span></code></a>. Defaults to None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>Number of records affected</p>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_connection"> <span className="em property"><span className="k"><span className="pre">static</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">get\_connection</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">enable\_ssl\_cert\_verification</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">enable\_auto\_discovery</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">enable\_failover</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">logging\_level</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'INFO'</span></span></span><span className="sig-paren">)</span> <span className="sig-return"><span className="sig-return-icon">→</span> <span className="sig-return-typehint"><a className="reference internal" href="#gpudb.GPUdb" title="gpudb.GPUdb"><span className="pre">GPUdb</span></a></span></span></div>

            <div className="dd">
              <p>Get a connection to Kinetica getting connection and authentication information from environment variables.</p>
              <p>This method is useful particularly for Jupyter notebooks, which won’t need authentication credentials embedded within them. This, in turn, helps to prevent commit of credentials to the notebook version control. In addition, some features including auto-discovery and SSL certificate verification are disabled by default to simplify connections for simple use cases.</p>
              <p>The following environment variables are required: - <cite>KINETICA\_URL</cite>: the url of the Kinetica server - <cite>KINETICA\_USER</cite>: the username to connect with - <cite>KINETICA\_PASSWD</cite>: the password to connect with</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">enable\_ssl\_cert\_verification (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Enable SSL certificate verification.</p>
                    </div>

                    <div className="dt">enable\_auto\_discovery (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Enable auto-discovery of the initial cluster nodes, as well as any attached failover clusters. This allows for both multi-head ingestion & key lookup, as well as cluster failover.</p>
                    </div>

                    <div className="dt">enable\_failover (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Enable failover to another cluster.</p>
                    </div>

                    <div className="dt">logging\_level (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Logging level for the connection. (INFO by default)</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <div className="dl simple">
                <div className="dt">Returns (GPUdb):</div>

                <div className="dd">
                  <p>An active connection to Kinetica.</p>
                </div>
              </div>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.load_gpudb_schemas"> <span className="sig-name descname"><span className="pre">load\_gpudb\_schemas</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Saves all request and response schemas for GPUdb queries in a lookup table (lookup by query name).</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.load_gpudb_func_to_endpoint_map"> <span className="sig-name descname"><span className="pre">load\_gpudb\_func\_to\_endpoint\_map</span></span><span className="sig-paren">(</span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Saves a mapping of rest endpoint function names to endpoints in a dictionary.</p>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_add_host"> <span className="sig-name descname"><span className="pre">admin\_add\_host</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">host\_address</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Adds a host to an existing cluster.</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">host\_address (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>IP address of the host that will be added to the cluster. This host must have installed the same version of Kinetica as the cluster to which it is being added.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>dry\_run</strong> – If set to <span className="em">true</span>, only validation checks will be performed. No host is added. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>accepts\_failover</strong> – If set to <span className="em">true</span>, the host will accept processes (ranks, graph server, etc.) in the event of a failover on another node in the cluster. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>public\_address</strong> – The publicly-accessible IP address for the host being added, typically specified for clients using multi-head operations. This setting is required if any other host(s) in the cluster specify a public address.</p>
                        </li>

                        <li>
                          <p><strong>host\_manager\_public\_url</strong> – The publicly-accessible full path URL to the host manager on the host being added, e.g., ‘<a className="reference external" href="http://172.123.45.67:9300">[http://172.123.45.67:9300](http://172.123.45.67:9300)</a>’. The default host manager port can be found in the <a className="reference external" href="/content/install/shared/ports/">list of ports</a> used by Kinetica.</p>
                        </li>

                        <li>
                          <p><strong>ram\_limit</strong> – The desired RAM limit for the host being added, i.e. the sum of RAM usage for all processes on the host will not be able to exceed this value. Supported units: K (thousand), KB (kilobytes), M (million), MB (megabytes), G (billion), GB (gigabytes); if no unit is provided, the value is assumed to be in bytes. For example, if <span className="em">ram\_limit</span> is set to 10M, the resulting RAM limit is 10 million bytes. Set <span className="em">ram\_limit</span> to -1 to have no RAM limit.</p>
                        </li>

                        <li>
                          <p><strong>gpus</strong> – Comma-delimited list of GPU indices (starting at 1) that are eligible for running worker processes. If left blank, all GPUs on the host being added will be eligible.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">added\_host (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Identifier for the newly added host, of the format ‘hostN’ where N is the integer identifier of that host. Note that the host identifier is transient, i.e. it may change in the future if other hosts are removed.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_add_ranks"> <span className="sig-name descname"><span className="pre">admin\_add\_ranks</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">hosts</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">config\_params</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Add one or more ranks to an existing Kinetica cluster. The new ranks will not contain any data initially (other than replicated tables) and will not be assigned any shards. To rebalance data and shards across the cluster, use <a className="reference internal" href="#gpudb.GPUdb.admin_rebalance" title="gpudb.GPUdb.admin_rebalance"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_rebalance()</span></code></a>.</p>
              <p>The database must be offline for this operation, see <a className="reference internal" href="#gpudb.GPUdb.admin_offline" title="gpudb.GPUdb.admin_offline"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_offline()</span></code></a></p>
              <p>For example, if attempting to add three new ranks (two ranks on host 172.123.45.67 and one rank on host 172.123.45.68) to a Kinetica cluster with additional configuration parameters:</p>

              <ul className="simple">
                <li>
                  <p>input parameter <span className="em">hosts</span> would be an array including 172.123.45.67 in the first two indices (signifying two ranks being added to host 172.123.45.67) and 172.123.45.68 in the last index (signifying one rank being added to host 172.123.45.67)</p>
                </li>

                <li>
                  <p>input parameter <span className="em">config\_params</span> would be an array of maps, with each map corresponding to the ranks being added in input parameter <span className="em">hosts</span>. The key of each map would be the configuration parameter name and the value would be the parameter’s value, e.g. ‘{"{"}“rank.gpu”:”1”{"}"}’</p>
                </li>
              </ul>

              <p>This endpoint’s processing includes copying all replicated table data to the new rank(s) and therefore could take a long time. The API call may time out if run directly. It is recommended to run this endpoint asynchronously via <a className="reference internal" href="#gpudb.GPUdb.create_job" title="gpudb.GPUdb.create_job"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_job()</span></code></a>.</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">hosts (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Array of host IP addresses (matching a hostN.address from the gpudb.conf file), or host identifiers (e.g. ‘host0’ from the gpudb.conf file), on which to add ranks to the cluster. The hosts must already be in the cluster. If needed beforehand, to add a new host to the cluster use <a className="reference internal" href="#gpudb.GPUdb.admin_add_host" title="gpudb.GPUdb.admin_add_host"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_add\_host()</span></code></a>. Include the same entry as many times as there are ranks to add to the cluster, e.g., if two ranks on host 172.123.45.67 should be added, input parameter <span className="em">hosts</span> could look like ‘\[“172.123.45.67”, “172.123.45.67”]’. All ranks will be added simultaneously, i.e. they’re not added in the order of this array. Each entry in this array corresponds to the entry at the same index in the input parameter <span className="em">config\_params</span>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">config\_params (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Array of maps containing configuration parameters to apply to the new ranks found in input parameter <span className="em">hosts</span>. For example, ‘{"{"}“rank.gpu”:”2”, “tier.ram.rank.limit”:”10000000000”{"}"}’. Currently, the available parameters are rank-specific parameters in the <a className="reference external" href="/content/config/#config-main-network">Network</a>, <a className="reference external" href="/content/config/#config-main-hardware">Hardware</a>, <a className="reference external" href="/content/config/#config-main-text-search">Text Search</a>, and <a className="reference external" href="/content/config/#config-main-ram-tier">RAM Tiered Storage</a> sections in the gpudb.conf file, with the key exception of the ‘rankN.host’ settings in the Network section that will be determined by input parameter <span className="em">hosts</span> instead. Though many of these configuration parameters typically are affixed with ‘rankN’ in the gpudb.conf file (where N is the rank number), the ‘N’ should be omitted in input parameter <span className="em">config\_params</span> as the new rank number(s) are not allocated until the ranks have been added to the cluster. Each entry in this array corresponds to the entry at the same index in the input parameter <span className="em">hosts</span>. This array must either be completely empty or have the same number of elements as the input parameter <span className="em">hosts</span>. An empty input parameter <span className="em">config\_params</span> array will result in the new ranks being set with default parameters. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>dry\_run</strong> – If <span className="em">true</span>, only validation checks will be performed. No ranks are added. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">added\_ranks (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The number assigned to each added rank, formatted as ‘rankN’, in the same order as the ranks in input parameter <span className="em">hosts</span> and input parameter <span className="em">config\_params</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_alter_host"> <span className="sig-name descname"><span className="pre">admin\_alter\_host</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">host</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alter properties on an existing host in the cluster. Currently, the only property that can be altered is a hosts ability to accept failover processes.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">host (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Identifies the host this applies to. Can be the host address, or formatted as ‘hostN’ where N is the host number as specified in gpudb.conf.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>accepts\_failover</strong> – If set to <span className="em">true</span>, the host will accept processes (ranks, graph server, etc.) in the event of a failover on another node in the cluster. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_alter_jobs"> <span className="sig-name descname"><span className="pre">admin\_alter\_jobs</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">job\_ids</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">action</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Perform the requested action on a list of one or more job(s). Based on the type of job and the current state of execution, the action may not be successfully executed. The final result of the attempted actions for each specified job is returned in the status array of the response. See <a className="reference external" href="/content/admin/job_manager/">Job Manager</a> for more information.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">job\_ids (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Jobs to be modified. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Action to be performed on the jobs specified by job\_ids. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>cancel</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>job\_tag</strong> – Job tag returned in call to create the job.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">job\_ids (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Jobs on which the action was performed.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Action requested on the jobs.</p>
                    </div>

                    <div className="dt">status (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Status of the requested action for each job.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_backup_begin"> <span className="sig-name descname"><span className="pre">admin\_backup\_begin</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Prepares the system for a backup by closing all open file handles after allowing current active jobs to complete. When the database is in backup mode, queries that result in a disk write operation will be blocked until backup mode has been completed by using <a className="reference internal" href="#gpudb.GPUdb.admin_backup_end" title="gpudb.GPUdb.admin_backup_end"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_backup\_end()</span></code></a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_backup_end"> <span className="sig-name descname"><span className="pre">admin\_backup\_end</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Restores the system to normal operating mode after a backup has completed, allowing any queries that were blocked to complete.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_ha_offline"> <span className="sig-name descname"><span className="pre">admin\_ha\_offline</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">offline</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Pauses consumption of messages from other HA clusters to support data repair/recovery scenarios. In-flight queries may fail to replicate to other clusters in the ring when going offline.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">offline (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Set to true if desired state is offline. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_ha_refresh"> <span className="sig-name descname"><span className="pre">admin\_ha\_refresh</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Restarts the HA processing on the given cluster as a mechanism of accepting breaking HA conf changes. Additionally the cluster is put into read-only while HA is restarting.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_offline"> <span className="sig-name descname"><span className="pre">admin\_offline</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">offline</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Take the system offline. When the system is offline, no user operations can be performed with the exception of a system shutdown.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">offline (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Set to true if desired state is offline. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>flush\_to\_disk</strong> – Flush to disk when going offline. Allowed values are:</p>

                          <ul>
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">is\_offline (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Returns true if the system is offline, or false otherwise.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_rebalance"> <span className="sig-name descname"><span className="pre">admin\_rebalance</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Rebalance the data in the cluster so that all nodes contain an equal number of records approximately and/or rebalance the shards to be equally distributed (as much as possible) across all the ranks.</p>
              <p>The database must be offline for this operation, see <a className="reference internal" href="#gpudb.GPUdb.admin_offline" title="gpudb.GPUdb.admin_offline"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_offline()</span></code></a></p>

              <ul className="simple">
                <li>
                  <p>If <a className="reference internal" href="#gpudb.GPUdb.admin_rebalance" title="gpudb.GPUdb.admin_rebalance"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_rebalance()</span></code></a> is invoked after a change is made to the cluster, e.g., a host was added or removed, <a className="reference external" href="/content/concepts/tables/#sharding">sharded data</a> will be evenly redistributed across the cluster by number of shards per rank while unsharded data will be redistributed across the cluster by data size per rank</p>
                </li>

                <li>
                  <p>If <a className="reference internal" href="#gpudb.GPUdb.admin_rebalance" title="gpudb.GPUdb.admin_rebalance"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_rebalance()</span></code></a> is invoked at some point when unsharded data (a.k.a. <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly-sharded</a>) in the cluster is unevenly distributed over time, sharded data will not move while unsharded data will be redistributed across the cluster by data size per rank</p>
                </li>
              </ul>

              <p>NOTE: Replicated data will not move as a result of this call</p>
              <p>This endpoint’s processing time depends on the amount of data in the system, thus the API call may time out if run directly. It is recommended to run this endpoint asynchronously via <a className="reference internal" href="#gpudb.GPUdb.create_job" title="gpudb.GPUdb.create_job"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_job()</span></code></a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>rebalance\_sharded\_data</strong> – If <span className="em">true</span>, <a className="reference external" href="/content/concepts/tables/#sharding">sharded data</a> will be rebalanced approximately equally across the cluster. Note that for clusters with large amounts of sharded data, this data transfer could be time consuming and result in delayed query responses. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>rebalance\_unsharded\_data</strong> – If <span className="em">true</span>, unsharded data (a.k.a. <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly-sharded</a>) will be rebalanced approximately equally across the cluster. Note that for clusters with large amounts of unsharded data, this data transfer could be time consuming and result in delayed query responses. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>table\_includes</strong> – Comma-separated list of unsharded table names to rebalance. Not applicable to sharded tables because they are always rebalanced. Cannot be used simultaneously with <span className="em">table\_excludes</span>. This parameter is ignored if <span className="em">rebalance\_unsharded\_data</span> is <span className="em">false</span>.</p>
                        </li>

                        <li>
                          <p><strong>table\_excludes</strong> – Comma-separated list of unsharded table names to not rebalance. Not applicable to sharded tables because they are always rebalanced. Cannot be used simultaneously with <span className="em">table\_includes</span>. This parameter is ignored if <span className="em">rebalance\_unsharded\_data</span> is <span className="em">false</span>.</p>
                        </li>

                        <li>
                          <p><strong>aggressiveness</strong> – Influences how much data is moved at a time during rebalance. A higher <span className="em">aggressiveness</span> will complete the rebalance faster. A lower <span className="em">aggressiveness</span> will take longer but allow for better interleaving between the rebalance and other queries. Valid values are constants from 1 (lowest) to 10 (highest). The default value is ‘10’.</p>
                        </li>

                        <li>
                          <p><strong>compact\_after\_rebalance</strong> – Perform compaction of deleted records once the rebalance completes to reclaim memory and disk space. Default is <span className="em">true</span>, unless <span className="em">repair\_incorrectly\_sharded\_data</span> is set to <span className="em">true</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>compact\_only</strong> – If set to <span className="em">true</span>, ignore rebalance options and attempt to perform compaction of deleted records to reclaim memory and disk space without rebalancing first. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>repair\_incorrectly\_sharded\_data</strong> – Scans for any data sharded incorrectly and re-routes the data to the correct location. Only necessary if <a className="reference internal" href="#gpudb.GPUdb.admin_verify_db" title="gpudb.GPUdb.admin_verify_db"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_verify\_db()</span></code></a> reports an error in sharding alignment. This can be done as part of a typical rebalance after expanding the cluster or in a standalone fashion when it is believed that data is sharded incorrectly somewhere in the cluster. Compaction will not be performed by default when this is enabled. If this option is set to <span className="em">true</span>, the time necessary to rebalance and the memory used by the rebalance may increase. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_remove_host"> <span className="sig-name descname"><span className="pre">admin\_remove\_host</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">host</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Removes a host from an existing cluster. If the host to be removed has any ranks running on it, the ranks must be removed using <a className="reference internal" href="#gpudb.GPUdb.admin_remove_ranks" title="gpudb.GPUdb.admin_remove_ranks"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_remove\_ranks()</span></code></a> or manually switched over to a new host using <a className="reference internal" href="#gpudb.GPUdb.admin_switchover" title="gpudb.GPUdb.admin_switchover"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_switchover()</span></code></a> prior to host removal. If the host to be removed has the graph server or SQL planner running on it, these must be manually switched over to a new host using <a className="reference internal" href="#gpudb.GPUdb.admin_switchover" title="gpudb.GPUdb.admin_switchover"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_switchover()</span></code></a>.</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">host (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Identifies the host this applies to. Can be the host address, or formatted as ‘hostN’ where N is the host number as specified in gpudb.conf.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>dry\_run</strong> – If set to <span className="em">true</span>, only validation checks will be performed. No host is removed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_remove_ranks"> <span className="sig-name descname"><span className="pre">admin\_remove\_ranks</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">ranks</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Remove one or more ranks from an existing Kinetica cluster. All data will be rebalanced to other ranks before the rank(s) is removed unless the <span className="em">rebalance\_sharded\_data</span> or <span className="em">rebalance\_unsharded\_data</span> parameters are set to <span className="em">false</span> in the input parameter <span className="em">options</span>, in which case the corresponding <a className="reference external" href="/content/concepts/tables/#sharding">sharded data</a> and/or unsharded data (a.k.a. <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly-sharded</a>) will be deleted.</p>
              <p>The database must be offline for this operation, see <a className="reference internal" href="#gpudb.GPUdb.admin_offline" title="gpudb.GPUdb.admin_offline"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_offline()</span></code></a></p>
              <p>This endpoint’s processing time depends on the amount of data in the system, thus the API call may time out if run directly. It is recommended to run this endpoint asynchronously via <a className="reference internal" href="#gpudb.GPUdb.create_job" title="gpudb.GPUdb.create_job"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_job()</span></code></a>.</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">ranks (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Each array value designates one or more ranks to remove from the cluster. Values can be formatted as ‘rankN’ for a specific rank, ‘hostN’ (from the gpudb.conf file) to remove all ranks on that host, or the host IP address (hostN.address from the gpub.conf file) which also removes all ranks on that host. Rank 0 (the head rank) cannot be removed (but can be moved to another host using <a className="reference internal" href="#gpudb.GPUdb.admin_switchover" title="gpudb.GPUdb.admin_switchover"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_switchover()</span></code></a>). At least one worker rank must be left in the cluster after the operation. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>rebalance\_sharded\_data</strong> – If <span className="em">true</span>, <a className="reference external" href="/content/concepts/tables/#sharding">sharded data</a> will be rebalanced approximately equally across the cluster. Note that for clusters with large amounts of sharded data, this data transfer could be time consuming and result in delayed query responses. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>rebalance\_unsharded\_data</strong> – If <span className="em">true</span>, unsharded data (a.k.a. <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly-sharded</a>) will be rebalanced approximately equally across the cluster. Note that for clusters with large amounts of unsharded data, this data transfer could be time consuming and result in delayed query responses. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>aggressiveness</strong> – Influences how much data is moved at a time during rebalance. A higher <span className="em">aggressiveness</span> will complete the rebalance faster. A lower <span className="em">aggressiveness</span> will take longer but allow for better interleaving between the rebalance and other queries. Valid values are constants from 1 (lowest) to 10 (highest). The default value is ‘10’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">removed\_ranks (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The number assigned to each rank removed from the cluster. This array will be empty if the operation fails.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_repair_table"> <span className="sig-name descname"><span className="pre">admin\_repair\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Manually repair a corrupted table. Returns information about affected tables.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of tables to query. An asterisk returns all tables. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">table\_types (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>ID of the type per table.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>repair\_policy</strong> – Corrective action to take. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>delete\_chunks</strong> – Deletes any corrupted chunks.</p>
                            </li>

                            <li>
                              <p><strong>shrink\_columns</strong> – Shrinks corrupted chunks to the shortest column.</p>
                            </li>

                            <li>
                              <p><strong>replay\_wal</strong> – Manually invokes write-ahead log (WAL) replay on the table.</p>
                            </li>

                            <li>
                              <p><strong>alter\_table</strong> – Reset columns modification after incomplete alter column.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>verify\_all</strong> – If <span className="em">false</span> only table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of repaired tables.</p>
                    </div>

                    <div className="dt">repair\_status (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of repair status by table.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_send_alert"> <span className="sig-name descname"><span className="pre">admin\_send\_alert</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">message</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">label</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">log\_level</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Sends a user generated alert to the monitoring system.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">message (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Alert message body. The default value is ‘’.</p>
                    </div>

                    <div className="dt">label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Label to add to alert message. The default value is ‘’.</p>
                    </div>

                    <div className="dt">log\_level (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Alert message logging criteria. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>fatal</p>
                        </li>

                        <li>
                          <p>error</p>
                        </li>

                        <li>
                          <p>warn</p>
                        </li>

                        <li>
                          <p>info</p>
                        </li>

                        <li>
                          <p>debug</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_show_alerts"> <span className="sig-name descname"><span className="pre">admin\_show\_alerts</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">num\_alerts</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Requests a list of the most recent alerts. Returns lists of alert data, including timestamp and type.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">num\_alerts (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Number of most recent alerts to request. The response will include up to input parameter <span className="em">num\_alerts</span> depending on how many alerts there are in the system. A value of 0 returns all stored alerts.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">timestamps (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Timestamp for when the alert occurred, sorted from most recent to least recent. Each array entry corresponds with the entries at the same index in output parameter <span className="em">types</span> and output parameter <span className="em">params</span>.</p>
                    </div>

                    <div className="dt">types (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Type of system alert, sorted from most recent to least recent. Each array entry corresponds with the entries at the same index in output parameter <span className="em">timestamps</span> and output parameter <span className="em">params</span>.</p>
                    </div>

                    <div className="dt">params (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Parameters for each alert, sorted from most recent to least recent. Each array entry corresponds with the entries at the same index in output parameter <span className="em">timestamps</span> and output parameter <span className="em">types</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_show_cluster_operations"> <span className="sig-name descname"><span className="pre">admin\_show\_cluster\_operations</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">history\_index</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Requests the detailed status of the current operation (by default) or a prior cluster operation specified by input parameter <span className="em">history\_index</span>. Returns details on the requested cluster operation.</p>
              <p>The response will also indicate how many cluster operations are stored in the history.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">history\_index (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Indicates which cluster operation to retrieve. Use 0 for the most recent. The default value is 0.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">history\_index (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>The index of this cluster operation in the reverse-chronologically sorted list of operations, where 0 is the most recent operation.</p>
                    </div>

                    <div className="dt">history\_size (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Number of cluster operations executed to date.</p>
                    </div>

                    <div className="dt">in\_progress (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether this cluster operation is currently in progress or not. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">start\_time (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The start time of the cluster operation.</p>
                    </div>

                    <div className="dt">end\_time (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The end time of the cluster operation, if completed.</p>
                    </div>

                    <div className="dt">endpoint (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The endpoint that initiated the cluster operation.</p>
                    </div>

                    <div className="dt">endpoint\_schema (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The schema for the original request.</p>
                    </div>

                    <div className="dt">overall\_status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Overall success status of the operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>OK</strong> – The operation was successful, or, if still in progress, the operation is successful so far.</p>
                        </li>

                        <li>
                          <p><strong>ERROR</strong> – An error occurred executing the operation.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">user\_stopped (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether a user stopped this operation at any point while in progress. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">percent\_complete (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Percent complete of this entire operation.</p>
                    </div>

                    <div className="dt">dry\_run (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether this operation was a dry run. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">messages (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Updates and error messages if any.</p>
                    </div>

                    <div className="dt">add\_ranks (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether adding ranks is (or was) part of this operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">add\_ranks\_status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If this was a rank-adding operation, the add-specific status of the operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>NOT\_STARTED</p>
                        </li>

                        <li>
                          <p>IN\_PROGRESS</p>
                        </li>

                        <li>
                          <p>INTERRUPTED</p>
                        </li>

                        <li>
                          <p>COMPLETED\_OK</p>
                        </li>

                        <li>
                          <p>ERROR</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">ranks\_being\_added (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>The rank numbers of the ranks currently being added, or the rank numbers that were added if the operation is complete.</p>
                    </div>

                    <div className="dt">rank\_hosts (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The host IP addresses of the ranks being added, in the same order as the output parameter <span className="em">ranks\_being\_added</span> list.</p>
                    </div>

                    <div className="dt">add\_ranks\_percent\_complete (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Current percent complete of the add ranks operation.</p>
                    </div>

                    <div className="dt">remove\_ranks (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether removing ranks is (or was) part of this operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">remove\_ranks\_status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If this was a rank-removing operation, the removal-specific status of the operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>NOT\_STARTED</p>
                        </li>

                        <li>
                          <p>IN\_PROGRESS</p>
                        </li>

                        <li>
                          <p>INTERRUPTED</p>
                        </li>

                        <li>
                          <p>COMPLETED\_OK</p>
                        </li>

                        <li>
                          <p>ERROR</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">ranks\_being\_removed (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>The ranks being removed, or that have been removed if the operation is completed.</p>
                    </div>

                    <div className="dt">remove\_ranks\_percent\_complete (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Current percent complete of the remove ranks operation.</p>
                    </div>

                    <div className="dt">rebalance (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether data and/or shard rebalancing is (or was) part of this operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">rebalance\_unsharded\_data (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether rebalancing of unsharded data is (or was) part of this operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">rebalance\_unsharded\_data\_status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If this was an operation that included rebalancing unsharded data, the rebalancing-specific status of the operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>NOT\_STARTED</p>
                        </li>

                        <li>
                          <p>IN\_PROGRESS</p>
                        </li>

                        <li>
                          <p>INTERRUPTED</p>
                        </li>

                        <li>
                          <p>COMPLETED\_OK</p>
                        </li>

                        <li>
                          <p>ERROR</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">unsharded\_rebalance\_percent\_complete (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Percentage of unsharded tables that completed rebalancing, out of all unsharded tables to rebalance.</p>
                    </div>

                    <div className="dt">rebalance\_sharded\_data (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Whether rebalancing of sharded data is (or was) part of this operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">shard\_array\_version (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Version of the shard array that is (or was) being rebalanced to. Each change to the shard array results in the version number incrementing.</p>
                    </div>

                    <div className="dt">rebalance\_sharded\_data\_status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If this was an operation that included rebalancing sharded data, the rebalancing-specific status of the operation. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>NOT\_STARTED</p>
                        </li>

                        <li>
                          <p>IN\_PROGRESS</p>
                        </li>

                        <li>
                          <p>INTERRUPTED</p>
                        </li>

                        <li>
                          <p>COMPLETED\_OK</p>
                        </li>

                        <li>
                          <p>ERROR</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">num\_shards\_changing (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Number of shards that will change as part of rebalance.</p>
                    </div>

                    <div className="dt">sharded\_rebalance\_percent\_complete (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Percentage of shard keys, and their associated data if applicable, that have completed rebalancing.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_show_jobs"> <span className="sig-name descname"><span className="pre">admin\_show\_jobs</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Get a list of the current jobs in GPUdb.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>show\_async\_jobs</strong> – If <span className="em">true</span>, then the completed async jobs are also included in the response. By default, once the async jobs are completed they are no longer included in the jobs list. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>show\_worker\_info</strong> – If <span className="em">true</span>, then information is also returned from worker ranks. By default only status from the head rank is returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">job\_id (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The identifiers of the running or completed jobs.</p>
                    </div>

                    <div className="dt">status (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The current status of each job.</p>
                    </div>

                    <div className="dt">endpoint\_name (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The endpoint each job is executing (e.g. “/insert/records”).</p>
                    </div>

                    <div className="dt">time\_received (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The epoch time, in milliseconds, at which each job was received.</p>
                    </div>

                    <div className="dt">auth\_id (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The identifier of the submitting or execute-as user for each job.</p>
                    </div>

                    <div className="dt">source\_ip (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The IP address from which each job request originated.</p>
                    </div>

                    <div className="dt">query\_text (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The text of the query associated with each job, when applicable.</p>
                    </div>

                    <div className="dt">user\_data (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Arbitrary user-provided data associated with each job.</p>
                    </div>

                    <div className="dt">flags (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Flags associated with each job.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>job\_tag</strong> – The job tag specified by the user or if unspecified by user, an internally generated unique identifier for the job across clusters.</p>
                        </li>

                        <li>
                          <p><strong>worker\_info</strong> – Worker job information as JSON.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_show_shards"> <span className="sig-name descname"><span className="pre">admin\_show\_shards</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Show the mapping of shards to the corresponding rank and tom. The response message contains list of 16384 (total number of shards in the system) Rank and TOM numbers corresponding to each shard.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">version (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Current shard array version number.</p>
                    </div>

                    <div className="dt">rank (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>Array of ranks indexed by the shard number.</p>
                    </div>

                    <div className="dt">tom (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>Array of toms to which the corresponding shard belongs.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_shutdown"> <span className="sig-name descname"><span className="pre">admin\_shutdown</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">exit\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">authorization</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Exits the database server application.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">exit\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Reserved for future use. User can pass an empty string.</p>
                    </div>

                    <div className="dt">authorization (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>No longer used. User can pass an empty string.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">exit\_status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>‘OK’ upon (right before) successful exit.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_switchover"> <span className="sig-name descname"><span className="pre">admin\_switchover</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">processes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">destinations</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Manually switch over one or more processes to another host. Individual ranks or entire hosts may be moved to another host.</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">processes (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Indicates the process identifier to switch over to another host. Options are ‘hostN’ and ‘rankN’ where ‘N’ corresponds to the number associated with a host or rank in the <a className="reference external" href="/content/config/#config-main-network">Network</a> section of the gpudb.conf file; e.g., ‘host\[N].address’ or ‘rank\[N].host’. If ‘hostN’ is provided, all processes on that host will be moved to another host. Each entry in this array will be switched over to the corresponding host entry at the same index in input parameter <span className="em">destinations</span>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">destinations (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Indicates to which host to switch over each corresponding process given in input parameter <span className="em">processes</span>. Each index must be specified as ‘hostN’ where ‘N’ corresponds to the number associated with a host or rank in the <a className="reference external" href="/content/config/#config-main-network">Network</a> section of the gpudb.conf file; e.g., ‘host\[N].address’. Each entry in this array will receive the corresponding process entry at the same index in input parameter <span className="em">processes</span>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>dry\_run</strong> – If set to <span className="em">true</span>, only validation checks will be performed. Nothing is switched over. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_verify_db"> <span className="sig-name descname"><span className="pre">admin\_verify\_db</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Verify database is in a consistent state. When inconsistencies or errors are found, the verified\_ok flag in the response is set to false and the list of errors found is provided in the error\_list.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>rebuild\_on\_error</strong> – \[DEPRECATED] Use the Rebuild DB feature of GAdmin instead. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>verify\_nulls</strong> – When <span className="em">true</span>, verifies that null values are set to zero. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>verify\_persist</strong> – When <span className="em">true</span>, persistent objects will be compared against their state in memory and workers will be checked for orphaned table data in persist. To check for orphaned worker data, either set <span className="em">concurrent\_safe</span> in input parameter <span className="em">options</span> to <span className="em">true</span> or place the database offline. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>concurrent\_safe</strong> – When <span className="em">true</span>, allows this endpoint to be run safely with other concurrent database operations. Other operations may be slower while this is running. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>verify\_rank0</strong> – If <span className="em">true</span>, compare rank0 table metadata against workers’ metadata. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>delete\_orphaned\_tables</strong> – If <span className="em">true</span>, orphaned table directories found on workers for which there is no corresponding metadata will be deleted. It is recommended to run this while the database is offline OR set <span className="em">concurrent\_safe</span> in input parameter <span className="em">options</span> to <span className="em">true</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>verify\_orphaned\_tables\_only</strong> – If <span className="em">true</span>, only the presence of orphaned table directories will be checked, all persistence and table consistency checks will be skipped. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>table\_includes</strong> – Comma-separated list of table names to include when verifying table consistency on wokers. Cannot be used simultaneously with <span className="em">table\_excludes</span>.</p>
                        </li>

                        <li>
                          <p><strong>table\_excludes</strong> – Comma-separated list of table names to exclude when verifying table consistency on wokers. Cannot be used simultaneously with <span className="em">table\_includes</span>.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">verified\_ok (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>True if no errors were found, false otherwise. The default value is False.</p>
                    </div>

                    <div className="dt">error\_list (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of errors found while validating the database internal state. The default value is an empty list ( \[] ).</p>
                    </div>

                    <div className="dt">orphaned\_tables\_total\_size (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>If <span className="em">verify\_persist</span> is <span className="em">true</span>, <span className="em">verify\_orphaned\_tables\_only</span> is <span className="em">true</span> or <span className="em">delete\_orphaned\_tables</span> is <span className="em">true</span>, this is the sum in bytes of all orphaned tables found. Otherwise, -1.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_convex_hull"> <span className="sig-name descname"><span className="pre">aggregate\_convex\_hull</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates and returns the convex hull for the values in a table specified by input parameter <span className="em">table\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">x\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column containing the x coordinates of the points for the operation being performed.</p>
                    </div>

                    <div className="dt">y\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column containing the y coordinates of the points for the operation being performed.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">x\_vector (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>Array of x coordinates of the resulting convex set.</p>
                    </div>

                    <div className="dt">y\_vector (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>Array of y coordinates of the resulting convex set.</p>
                    </div>

                    <div className="dt">count (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Count of the number of points in the convex set.</p>
                    </div>

                    <div className="dt">is\_valid (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates whether a valid convex hull could be computed for the input.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_group_by"> <span className="sig-name descname"><span className="pre">aggregate\_group\_by</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates unique combinations (groups) of values for the given columns in a given table or view and computes aggregates on each unique combination. This is somewhat analogous to an SQL-style SELECT…GROUP BY.</p>
              <p>For aggregation details and examples, see <a className="reference external" href="/content/concepts/aggregation/">Aggregation</a>. For limitations, see <a className="reference external" href="/content/concepts/aggregation/#limitations">Aggregation Limitations</a>.</p>
              <p>Any column(s) can be grouped on, and all column types except unrestricted-length strings may be used for computing applicable aggregates.</p>
              <p>The results can be paged via the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters. For example, to get 10 groups with the largest counts the inputs would be: limit=10, options={"{"}“sort\_order”:”descending”, “sort\_by”:”value”{"}"}.</p>
              <p>Input parameter <span className="em">options</span> can be used to customize behavior of this call e.g. filtering or sorting the results.</p>
              <p>To group by columns ‘x’ and ‘y’ and compute the number of objects within each group, use: column\_names=\[‘x’,’y’,’count(\*)’].</p>
              <p>To also compute the sum of ‘z’ over each group, use: column\_names=\[‘x’,’y’,’count(\*)’,’sum(z)’].</p>
              <p>Available <a className="reference external" href="/content/concepts/expressions/#aggregate-expressions">aggregation functions</a> are: count(\*), sum, min, max, avg, mean, stddev, stddev\_pop, stddev\_samp, var, var\_pop, var\_samp, arg\_min, arg\_max and count\_distinct.</p>
              <p>Available grouping functions are <a className="reference external" href="/content/concepts/rollup/">Rollup</a>, <a className="reference external" href="/content/concepts/cube/">Cube</a>, and <a className="reference external" href="/content/concepts/grouping_sets/">Grouping Sets</a></p>
              <p>This service also provides support for <a className="reference external" href="/content/concepts/pivot/">Pivot</a> operations.</p>
              <p>Filtering on aggregates is supported via expressions using <a className="reference external" href="/content/concepts/expressions/#aggregate-expressions">aggregation functions</a> supplied to <span className="em">having</span>.</p>
              <p>The response is returned as a dynamic schema. For details see: <a className="reference external" href="/content/api/concepts/#dynamic-schemas">dynamic schemas documentation</a>.</p>
              <p>If a <span className="em">result\_table</span> name is specified in the input parameter <span className="em">options</span>, the results are stored in a new table with that name–no results are returned in the response. Both the table name and resulting column names must adhere to <a className="reference external" href="/content/concepts/tables/#table">standard naming conventions</a>; column/aggregation expressions will need to be aliased. If the source table’s <a className="reference external" href="/content/concepts/tables/#shard-keys">shard key</a> is used as the grouping column(s) and all result records are selected (input parameter <span className="em">offset</span> is 0 and input parameter <span className="em">limit</span> is -9999), the result table will be sharded, in all other cases it will be replicated. Sorting will properly function only if the result table is replicated or if there is only one processing node and should not be relied upon in other cases. Not available when any of the values of input parameter <span className="em">column\_names</span> is an unrestricted-length string.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of an existing table or view on which the operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of one or more column names, expressions, and aggregate expressions. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>binary</strong> – Indicates that the returned records should be binary encoded.</p>
                        </li>

                        <li>
                          <p><strong>json</strong> – Indicates that the returned records should be JSON-encoded.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">result\_table</span>. If <span className="em">result\_table\_persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_result\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema as part of <span className="em">result\_table</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <span className="em">result\_table</span>. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table prior to computing the aggregate group by.</p>
                        </li>

                        <li>
                          <p><strong>pipelined\_expression\_evaluation</strong> – Evaluate the group-by during last JoinedSet filter plan step. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>having</strong> – Filter expression to apply to the aggregated results.</p>
                        </li>

                        <li>
                          <p><strong>sort\_order</strong> – \[DEPRECATED–use order\_by instead] String indicating how the returned values should be sorted - ascending or descending. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>ascending</strong> – Indicates that the returned values should be sorted in ascending order.</p>
                            </li>

                            <li>
                              <p><strong>descending</strong> – Indicates that the returned values should be sorted in descending order.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘ascending’.</p>
                        </li>

                        <li>
                          <p><strong>sort\_by</strong> – \[DEPRECATED–use order\_by instead] String determining how the results are sorted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>key</strong> – Indicates that the returned values should be sorted by key, which corresponds to the grouping columns. If you have multiple grouping columns (and are sorting by key), it will first sort the first grouping column, then the second grouping column, etc.</p>
                            </li>

                            <li>
                              <p><strong>value</strong> – Indicates that the returned values should be sorted by value, which corresponds to the aggregates. If you have multiple aggregates (and are sorting by value), it will first sort by the first aggregate, then the second aggregate, etc.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘value’.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., ‘timestamp asc, x desc’. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for the result table’s columns.</p>
                        </li>

                        <li>
                          <p><strong>result\_table</strong> – The name of a table used to store the results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Column names (group-by and aggregate fields) need to be given aliases e.g. \[“FChar256 as fchar256”, “sum(FDouble) as sfd”]. If present, no results are returned in the response. This option is not available if one of the grouping attributes is an unrestricted string (i.e.; not charN) type.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_persist</strong> – If <span className="em">true</span>, then the result table specified in <span className="em">result\_table</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the result table will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_force\_replicated</strong> – Force the result table to be replicated (ignores any sharding). Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_generate\_pk</strong> – If <span className="em">true</span> then set a primary key for the result table. Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_generate\_soft\_pk</strong> – If <span className="em">true</span> then set a soft primary key for the result table. Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in <span className="em">result\_table</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>create\_indexes</strong> – Comma-separated list of columns on which to create indexes on the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use for the result table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – ID of view of which the result table will be a member. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>pivot</strong> – Pivot column.</p>
                        </li>

                        <li>
                          <p><strong>pivot\_values</strong> – Comma-separated list of the values in the <span className="em">pivot</span> column. The list provided will become the column header prefixes in the output.</p>
                        </li>

                        <li>
                          <p><strong>grouping\_sets</strong> – Customize the grouping attribute sets to compute the aggregates. These sets can include ROLLUP or CUBE operators. The attribute sets should be enclosed in parentheses and can include composite attributes. All attributes specified in the grouping sets must present in the group-by attributes.</p>
                        </li>

                        <li>
                          <p><strong>rollup</strong> – This option is used to specify the multilevel aggregates.</p>
                        </li>

                        <li>
                          <p><strong>cube</strong> – This option is used to specify the multidimensional aggregates.</p>
                        </li>

                        <li>
                          <p><strong>shard\_key</strong> – Comma-separated list of the columns to be sharded on; e.g. ‘column1, column2’. The columns specified must be present in input parameter <span className="em">column\_names</span>. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">binary\_encoded\_response (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>Avro binary encoded response.</p>
                    </div>

                    <div className="dt">json\_encoded\_response (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro JSON encoded response.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records. This may be an over-estimate if a limit was applied and there are additional records (i.e., when output parameter <span className="em">has\_more\_records</span> is true).</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_result\_table\_name</strong> – The fully qualified name of the table (i.e. including the schema) used to store the results.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>A <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> object using which the user can decode the binary data by using <a className="reference internal" href="/content/api/python/source/gpudbrecord#gpudb.GPUdbRecord.decode_binary_data" title="gpudb.GPUdbRecord.decode_binary_data"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdbRecord.decode\_binary\_data()</span></code></a>. If JSON encoding is used, then None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_group_by_and_decode"> <span className="sig-name descname"><span className="pre">aggregate\_group\_by\_and\_decode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">force\_primitive\_return\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">get\_column\_major</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates unique combinations (groups) of values for the given columns in a given table or view and computes aggregates on each unique combination. This is somewhat analogous to an SQL-style SELECT…GROUP BY.</p>
              <p>For aggregation details and examples, see <a className="reference external" href="/content/concepts/aggregation/">Aggregation</a>. For limitations, see <a className="reference external" href="/content/concepts/aggregation/#limitations">Aggregation Limitations</a>.</p>
              <p>Any column(s) can be grouped on, and all column types except unrestricted-length strings may be used for computing applicable aggregates.</p>
              <p>The results can be paged via the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters. For example, to get 10 groups with the largest counts the inputs would be: limit=10, options={"{"}“sort\_order”:”descending”, “sort\_by”:”value”{"}"}.</p>
              <p>Input parameter <span className="em">options</span> can be used to customize behavior of this call e.g. filtering or sorting the results.</p>
              <p>To group by columns ‘x’ and ‘y’ and compute the number of objects within each group, use: column\_names=\[‘x’,’y’,’count(\*)’].</p>
              <p>To also compute the sum of ‘z’ over each group, use: column\_names=\[‘x’,’y’,’count(\*)’,’sum(z)’].</p>
              <p>Available <a className="reference external" href="/content/concepts/expressions/#aggregate-expressions">aggregation functions</a> are: count(\*), sum, min, max, avg, mean, stddev, stddev\_pop, stddev\_samp, var, var\_pop, var\_samp, arg\_min, arg\_max and count\_distinct.</p>
              <p>Available grouping functions are <a className="reference external" href="/content/concepts/rollup/">Rollup</a>, <a className="reference external" href="/content/concepts/cube/">Cube</a>, and <a className="reference external" href="/content/concepts/grouping_sets/">Grouping Sets</a></p>
              <p>This service also provides support for <a className="reference external" href="/content/concepts/pivot/">Pivot</a> operations.</p>
              <p>Filtering on aggregates is supported via expressions using <a className="reference external" href="/content/concepts/expressions/#aggregate-expressions">aggregation functions</a> supplied to <span className="em">having</span>.</p>
              <p>The response is returned as a dynamic schema. For details see: <a className="reference external" href="/content/api/concepts/#dynamic-schemas">dynamic schemas documentation</a>.</p>
              <p>If a <span className="em">result\_table</span> name is specified in the input parameter <span className="em">options</span>, the results are stored in a new table with that name–no results are returned in the response. Both the table name and resulting column names must adhere to <a className="reference external" href="/content/concepts/tables/#table">standard naming conventions</a>; column/aggregation expressions will need to be aliased. If the source table’s <a className="reference external" href="/content/concepts/tables/#shard-keys">shard key</a> is used as the grouping column(s) and all result records are selected (input parameter <span className="em">offset</span> is 0 and input parameter <span className="em">limit</span> is -9999), the result table will be sharded, in all other cases it will be replicated. Sorting will properly function only if the result table is replicated or if there is only one processing node and should not be relied upon in other cases. Not available when any of the values of input parameter <span className="em">column\_names</span> is an unrestricted-length string.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of an existing table or view on which the operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of one or more column names, expressions, and aggregate expressions. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>binary</strong> – Indicates that the returned records should be binary encoded.</p>
                        </li>

                        <li>
                          <p><strong>json</strong> – Indicates that the returned records should be JSON-encoded.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">result\_table</span>. If <span className="em">result\_table\_persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_result\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema as part of <span className="em">result\_table</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <span className="em">result\_table</span>. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table prior to computing the aggregate group by.</p>
                        </li>

                        <li>
                          <p><strong>pipelined\_expression\_evaluation</strong> – Evaluate the group-by during last JoinedSet filter plan step. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>having</strong> – Filter expression to apply to the aggregated results.</p>
                        </li>

                        <li>
                          <p><strong>sort\_order</strong> – \[DEPRECATED–use order\_by instead] String indicating how the returned values should be sorted - ascending or descending. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>ascending</strong> – Indicates that the returned values should be sorted in ascending order.</p>
                            </li>

                            <li>
                              <p><strong>descending</strong> – Indicates that the returned values should be sorted in descending order.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘ascending’.</p>
                        </li>

                        <li>
                          <p><strong>sort\_by</strong> – \[DEPRECATED–use order\_by instead] String determining how the results are sorted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>key</strong> – Indicates that the returned values should be sorted by key, which corresponds to the grouping columns. If you have multiple grouping columns (and are sorting by key), it will first sort the first grouping column, then the second grouping column, etc.</p>
                            </li>

                            <li>
                              <p><strong>value</strong> – Indicates that the returned values should be sorted by value, which corresponds to the aggregates. If you have multiple aggregates (and are sorting by value), it will first sort by the first aggregate, then the second aggregate, etc.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘value’.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., ‘timestamp asc, x desc’. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for the result table’s columns.</p>
                        </li>

                        <li>
                          <p><strong>result\_table</strong> – The name of a table used to store the results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Column names (group-by and aggregate fields) need to be given aliases e.g. \[“FChar256 as fchar256”, “sum(FDouble) as sfd”]. If present, no results are returned in the response. This option is not available if one of the grouping attributes is an unrestricted string (i.e.; not charN) type.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_persist</strong> – If <span className="em">true</span>, then the result table specified in <span className="em">result\_table</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the result table will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_force\_replicated</strong> – Force the result table to be replicated (ignores any sharding). Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_generate\_pk</strong> – If <span className="em">true</span> then set a primary key for the result table. Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_generate\_soft\_pk</strong> – If <span className="em">true</span> then set a soft primary key for the result table. Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in <span className="em">result\_table</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>create\_indexes</strong> – Comma-separated list of columns on which to create indexes on the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use for the result table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – ID of view of which the result table will be a member. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>pivot</strong> – Pivot column.</p>
                        </li>

                        <li>
                          <p><strong>pivot\_values</strong> – Comma-separated list of the values in the <span className="em">pivot</span> column. The list provided will become the column header prefixes in the output.</p>
                        </li>

                        <li>
                          <p><strong>grouping\_sets</strong> – Customize the grouping attribute sets to compute the aggregates. These sets can include ROLLUP or CUBE operators. The attribute sets should be enclosed in parentheses and can include composite attributes. All attributes specified in the grouping sets must present in the group-by attributes.</p>
                        </li>

                        <li>
                          <p><strong>rollup</strong> – This option is used to specify the multilevel aggregates.</p>
                        </li>

                        <li>
                          <p><strong>cube</strong> – This option is used to specify the multidimensional aggregates.</p>
                        </li>

                        <li>
                          <p><strong>shard\_key</strong> – Comma-separated list of the columns to be sharded on; e.g. ‘column1, column2’. The columns specified must be present in input parameter <span className="em">column\_names</span>. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>The record type expected in the results, or None to determine the appropriate type automatically. If known, providing this may improve performance in binary mode. Not used in JSON mode. The default value is None.</p>
                    </div>

                    <div className="dt">force\_primitive\_return\_types (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If <cite>True</cite>, then <cite>OrderedDict</cite> objects will be returned, where string sub-type columns will have their values converted back to strings; for example, the Python <cite>datetime</cite> structs, used for datetime type columns would have their values returned as strings. If <cite>False</cite>, then <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned, which for string sub-types, will return native or custom structs; no conversion to string takes place. String conversions, when returning <cite>OrderedDicts</cite>, incur a speed penalty, and it is strongly recommended to use the <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> object option instead. If <cite>True</cite>, but none of the returned columns require a conversion, then the original <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned. Default value is True.</p>
                    </div>

                    <div className="dt">get\_column\_major (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates if the decoded records will be transposed to be column-major or returned as is (row-major). Default value is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records. This may be an over-estimate if a limit was applied and there are additional records (i.e., when output parameter <span className="em">has\_more\_records</span> is true).</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_result\_table\_name</strong> – The fully qualified name of the table (i.e. including the schema) used to store the results.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">records (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects which contain the decoded records.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_histogram"> <span className="sig-name descname"><span className="pre">aggregate\_histogram</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">start</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">end</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">interval</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Performs a histogram calculation given a table, a column, and an interval function. The input parameter <span className="em">interval</span> is used to produce bins of that size and the result, computed over the records falling within each bin, is returned. For each bin, the start value is inclusive, but the end value is exclusive–except for the very last bin for which the end value is also inclusive. The value returned for each bin is the number of records in it, except when a column name is provided as a <span className="em">value\_column</span>. In this latter case the sum of the values corresponding to the <span className="em">value\_column</span> is used as the result instead. The total number of bins requested cannot exceed 10,000.</p>
              <p>NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service a request that specifies a <span className="em">value\_column</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a column or an expression of one or more column names over which the histogram will be calculated.</p>
                    </div>

                    <div className="dt">start (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower end value of the histogram interval, inclusive.</p>
                    </div>

                    <div className="dt">end (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper end value of the histogram interval, inclusive.</p>
                    </div>

                    <div className="dt">interval (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The size of each bin within the start and end parameters.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>value\_column</strong> – The name of the column to use when calculating the bin values (values are summed). The column must be a numerical type (int, double, long, float).</p>
                        </li>

                        <li>
                          <p><strong>start</strong> – The start parameter for char types.</p>
                        </li>

                        <li>
                          <p><strong>end</strong> – The end parameter for char types.</p>
                        </li>

                        <li>
                          <p><strong>interval</strong> – The interval parameter for char types.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">counts (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>The array of calculated values that represents the histogram data points.</p>
                    </div>

                    <div className="dt">start (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">start</span>.</p>
                    </div>

                    <div className="dt">end (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">end</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_k_means"> <span className="sig-name descname"><span className="pre">aggregate\_k\_means</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">k</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">tolerance</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>This endpoint runs the k-means algorithm - a heuristic algorithm that attempts to do k-means clustering. An ideal k-means clustering algorithm selects k points such that the sum of the mean squared distances of each member of the set to the nearest of the k points is minimized. The k-means algorithm however does not necessarily produce such an ideal cluster. It begins with a randomly selected set of k points and then refines the location of the points iteratively and settles to a local minimum. Various parameters and options are provided to control the heuristic search.</p>
              <p>NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service this request.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of column names on which the operation would be performed. If n columns are provided then each of the k result points will have n dimensions corresponding to the n columns. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">k (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>The number of mean points to be determined by the algorithm.</p>
                    </div>

                    <div className="dt">tolerance (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Stop iterating when the distances between successive points is less than the given tolerance.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>whiten</strong> – When set to 1 each of the columns is first normalized by its stdv - default is not to whiten.</p>
                        </li>

                        <li>
                          <p><strong>max\_iters</strong> – Number of times to try to hit the tolerance limit before giving up - default is 10.</p>
                        </li>

                        <li>
                          <p><strong>num\_tries</strong> – Number of times to run the k-means algorithm with a different randomly selected starting points - helps avoid local minimum. Default is 1.</p>
                        </li>

                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">result\_table</span>. If <span className="em">result\_table\_persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_result\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table</strong> – The name of a table used to store the results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. If this option is specified, the results are not returned in the response.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_persist</strong> – If <span className="em">true</span>, then the result table specified in <span className="em">result\_table</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the result table will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in <span className="em">result\_table</span>.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">means (<span className="em">list of lists of floats</span>) –</div>

                    <div className="dd">
                      <p>The k-mean values found.</p>
                    </div>

                    <div className="dt">counts (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The number of elements in the cluster closest the corresponding k-means values.</p>
                    </div>

                    <div className="dt">rms\_dists (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>The root mean squared distance of the elements in the cluster for each of the k-means values.</p>
                    </div>

                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The total count of all the clusters - will be the size of the input table.</p>
                    </div>

                    <div className="dt">rms\_dist (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The sum of all the rms\_dists - the value the k-means algorithm is attempting to minimize.</p>
                    </div>

                    <div className="dt">tolerance (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The distance between the last two iterations of the algorithm before it quit.</p>
                    </div>

                    <div className="dt">num\_iters (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>The number of iterations the algorithm executed before it quit.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_result\_table\_name</strong> – The fully qualified name of the result table (i.e. including the schema) used to store the results.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_min_max"> <span className="sig-name descname"><span className="pre">aggregate\_min\_max</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates and returns the minimum and maximum values of a particular column in a table.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a column or an expression of one or more column on which the min-max will be calculated.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">min (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Minimum value of the input parameter <span className="em">column\_name</span>.</p>
                    </div>

                    <div className="dt">max (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Maximum value of the input parameter <span className="em">column\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>min\_string</strong> – The minimum value of input parameter <span className="em">column\_name</span>, stored as a byte vector.</p>
                        </li>

                        <li>
                          <p><strong>max\_string</strong> – The maximum value of input parameter <span className="em">column\_name</span>, stored as a byte vector.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_min_max_geometry"> <span className="sig-name descname"><span className="pre">aggregate\_min\_max\_geometry</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates and returns the minimum and maximum x- and y-coordinates of a particular geospatial geometry column in a table.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a geospatial geometry column on which the min-max will be calculated.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">min\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Minimum x-coordinate value of the input parameter <span className="em">column\_name</span>.</p>
                    </div>

                    <div className="dt">max\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Maximum x-coordinate value of the input parameter <span className="em">column\_name</span>.</p>
                    </div>

                    <div className="dt">min\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Minimum y-coordinate value of the input parameter <span className="em">column\_name</span>.</p>
                    </div>

                    <div className="dt">max\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Maximum y-coordinate value of the input parameter <span className="em">column\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_statistics"> <span className="sig-name descname"><span className="pre">aggregate\_statistics</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">stats</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates the requested statistics of the given column(s) in a given table.</p>
              <p>The available statistics are: <span className="em">count</span> (number of total objects), <span className="em">mean</span>, <span className="em">stdv</span> (standard deviation), <span className="em">variance</span>, <span className="em">skew</span>, <span className="em">kurtosis</span>, <span className="em">sum</span>, <span className="em">min</span>, <span className="em">max</span>, <span className="em">weighted\_average</span>, <span className="em">cardinality</span> (unique count), <span className="em">estimated\_cardinality</span>, <span className="em">percentile</span>, and <span className="em">percentile\_rank</span>.</p>
              <p>Estimated cardinality is calculated by using the hyperloglog approximation technique.</p>
              <p>Percentiles and percentile ranks are approximate and are calculated using the t-digest algorithm. They must include the desired <span className="em">percentile</span>/<span className="em">percentile\_rank</span>. To compute multiple percentiles each value must be specified separately (i.e. ‘percentile(75.0),percentile(99.0),percentile\_rank(1234.56),percentile\_rank(-5)’).</p>
              <p>A second, comma-separated value can be added to the <span className="em">percentile</span> statistic to calculate percentile resolution, e.g., a 50th percentile with 200 resolution would be ‘percentile(50,200)’.</p>
              <p>The weighted average statistic requires a weight column to be specified in <span className="em">weight\_column\_name</span>. The weighted average is then defined as the sum of the products of input parameter <span className="em">column\_name</span> times the <span className="em">weight\_column\_name</span> values divided by the sum of the <span className="em">weight\_column\_name</span> values.</p>
              <p>Additional columns can be used in the calculation of statistics via <span className="em">additional\_column\_names</span>. Values in these columns will be included in the overall aggregate calculation–individual aggregates will not be calculated per additional column. For instance, requesting the <span className="em">count</span> and <span className="em">mean</span> of input parameter <span className="em">column\_name</span> x and <span className="em">additional\_column\_names</span> y and z, where x holds the numbers 1-10, y holds 11-20, and z holds 21-30, would return the total number of x, y, and z values (30), and the single average value across all x, y, and z values (15.5).</p>
              <p>The response includes a list of key/value pairs of each statistic requested and its corresponding value.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the statistics operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the primary column for which the statistics are to be calculated.</p>
                    </div>

                    <div className="dt">stats (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Comma separated list of the statistics to calculate, e.g. “sum,mean”. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>count</strong> – Number of objects (independent of the given column(s)).</p>
                        </li>

                        <li>
                          <p><strong>mean</strong> – Arithmetic mean (average), equivalent to sum/count.</p>
                        </li>

                        <li>
                          <p><strong>stdv</strong> – Sample standard deviation (denominator is count-1).</p>
                        </li>

                        <li>
                          <p><strong>variance</strong> – Unbiased sample variance (denominator is count-1).</p>
                        </li>

                        <li>
                          <p><strong>skew</strong> – Skewness (third standardized moment).</p>
                        </li>

                        <li>
                          <p><strong>kurtosis</strong> – Kurtosis (fourth standardized moment).</p>
                        </li>

                        <li>
                          <p><strong>sum</strong> – Sum of all values in the column(s).</p>
                        </li>

                        <li>
                          <p><strong>min</strong> – Minimum value of the column(s).</p>
                        </li>

                        <li>
                          <p><strong>max</strong> – Maximum value of the column(s).</p>
                        </li>

                        <li>
                          <p><strong>weighted\_average</strong> – Weighted arithmetic mean (using the option <span className="em">weight\_column\_name</span> as the weighting column).</p>
                        </li>

                        <li>
                          <p><strong>cardinality</strong> – Number of unique values in the column(s).</p>
                        </li>

                        <li>
                          <p><strong>estimated\_cardinality</strong> – Estimate (via hyperloglog technique) of the number of unique values in the column(s).</p>
                        </li>

                        <li>
                          <p><strong>percentile</strong> – Estimate (via t-digest) of the given percentile of the column(s) (percentile(50.0) will be an approximation of the median). Add a second, comma-separated value to calculate percentile resolution, e.g., ‘percentile(75,150)’.</p>
                        </li>

                        <li>
                          <p><strong>percentile\_rank</strong> – Estimate (via t-digest) of the percentile rank of the given value in the column(s) (if the given value is the median of the column(s), percentile\_rank(\<median>) will return approximately 50.0).</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>additional\_column\_names</strong> – A list of comma separated column names over which statistics can be accumulated along with the primary column. All columns listed and input parameter <span className="em">column\_name</span> must be of the same type. Must not include the column specified in input parameter <span className="em">column\_name</span> and no column can be listed twice.</p>
                        </li>

                        <li>
                          <p><strong>weight\_column\_name</strong> – Name of column used as weighting attribute for the weighted average statistic.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">stats (<span className="em">dict of str to floats</span>) –</div>

                    <div className="dd">
                      <p>(statistic name, double value) pairs of the requested statistics, including the total count by default.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_statistics_by_range"> <span className="sig-name descname"><span className="pre">aggregate\_statistics\_by\_range</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">select\_expression</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">stats</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">start</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">end</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">interval</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Divides the given set into bins and calculates statistics of the values of a value-column in each bin. The bins are based on the values of a given binning-column. The statistics that may be requested are mean, stdv (standard deviation), variance, skew, kurtosis, sum, min, max, first, last and weighted average. In addition to the requested statistics the count of total samples in each bin is returned. This counts vector is just the histogram of the column used to divide the set members into bins. The weighted average statistic requires a weight column to be specified in <span className="em">weight\_column\_name</span>. The weighted average is then defined as the sum of the products of the value column times the weight column divided by the sum of the weight column.</p>
              <p>There are two methods for binning the set members. In the first, which can be used for numeric valued binning-columns, a min, max and interval are specified. The number of bins, nbins, is the integer upper bound of (max-min)/interval. Values that fall in the range \[min+n\*interval,min+(n+1)\*interval) are placed in the nth bin where n ranges from 0..nbin-2. The final bin is \[min+(nbin-1)\*interval,max]. In the second method, <span className="em">bin\_values</span> specifies a list of binning column values. Binning-columns whose value matches the nth member of the <span className="em">bin\_values</span> list are placed in the nth bin. When a list is provided, the binning-column must be of type string or int.</p>
              <p>NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service this request.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the ranged-statistics operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">select\_expression (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>For a non-empty expression statistics are calculated for those records for which the expression is true. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the binning-column used to divide the set samples into bins.</p>
                    </div>

                    <div className="dt">value\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the value-column for which statistics are to be computed.</p>
                    </div>

                    <div className="dt">stats (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A string of comma separated list of the statistics to calculate, e.g. ‘sum,mean’. Available statistics: mean, stdv (standard deviation), variance, skew, kurtosis, sum.</p>
                    </div>

                    <div className="dt">start (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The lower bound of the binning-column.</p>
                    </div>

                    <div className="dt">end (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The upper bound of the binning-column.</p>
                    </div>

                    <div className="dt">interval (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The interval of a bin. Set members fall into bin i if the binning-column falls in the range \[start+interval\*i, start+interval\*(i+1)).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>additional\_column\_names</strong> – A list of comma separated value-column names over which statistics can be accumulated along with the primary value\_column.</p>
                        </li>

                        <li>
                          <p><strong>bin\_values</strong> – A list of comma separated binning-column values. Values that match the nth bin\_values value are placed in the nth bin.</p>
                        </li>

                        <li>
                          <p><strong>weight\_column\_name</strong> – Name of the column used as weighting column for the weighted\_average statistic.</p>
                        </li>

                        <li>
                          <p><strong>order\_column\_name</strong> – Name of the column used for candlestick charting techniques.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">stats (<span className="em">dict of str to lists of floats</span>) –</div>

                    <div className="dd">
                      <p>A map with a key for each statistic in the stats input parameter having a value that is a vector of the corresponding value-column bin statistics. In a addition the key count has a value that is a histogram of the binning-column.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_unique"> <span className="sig-name descname"><span className="pre">aggregate\_unique</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Returns all the unique values from a particular column (specified by input parameter <span className="em">column\_name</span>) of a particular table or view (specified by input parameter <span className="em">table\_name</span>). If input parameter <span className="em">column\_name</span> is a numeric column, the values will be in output parameter <span className="em">binary\_encoded\_response</span>. Otherwise if input parameter <span className="em">column\_name</span> is a string column, the values will be in output parameter <span className="em">json\_encoded\_response</span>. The results can be paged via input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters.</p>
              <p>{"{"}“limit”:”10”,”sort\_order”:”descending”{"}"}</p>
              <p>The response is returned as a dynamic schema. For details see: <a className="reference external" href="/content/api/concepts/#dynamic-schemas">dynamic schemas documentation</a>.</p>
              <p>If a <span className="em">result\_table</span> name is specified in the input parameter <span className="em">options</span>, the results are stored in a new table with that name–no results are returned in the response. Both the table name and resulting column name must adhere to <a className="reference external" href="/content/concepts/tables/#table">standard naming conventions</a>; any column expression will need to be aliased. If the source table’s <a className="reference external" href="/content/concepts/tables/#shard-keys">shard key</a> is used as the input parameter <span className="em">column\_name</span>, the result table will be sharded, in all other cases it will be replicated. Sorting will properly function only if the result table is replicated or if there is only one processing node and should not be relied upon in other cases. Not available if the value of input parameter <span className="em">column\_name</span> is an unrestricted-length string.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of an existing table or view on which the operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column or an expression containing one or more column names on which the unique function would be applied.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>binary</strong> – Indicates that the returned records should be binary encoded.</p>
                        </li>

                        <li>
                          <p><strong>json</strong> – Indicates that the returned records should be JSON-encoded.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">result\_table</span>. If <span className="em">result\_table\_persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_result\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema as part of <span className="em">result\_table</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <span className="em">result\_table</span>. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table.</p>
                        </li>

                        <li>
                          <p><strong>sort\_order</strong> – String indicating how the returned values should be sorted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>ascending</p>
                            </li>

                            <li>
                              <p>descending</p>
                            </li>
                          </ul>

                          <p>The default value is ‘ascending’.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., ‘timestamp asc, x desc’. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table</strong> – The name of the table used to store the results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. If present, no results are returned in the response. Not available if input parameter <span className="em">column\_name</span> is an unrestricted-length string.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_persist</strong> – If <span className="em">true</span>, then the result table specified in <span className="em">result\_table</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the result table will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_force\_replicated</strong> – Force the result table to be replicated (ignores any sharding). Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_generate\_pk</strong> – If <span className="em">true</span> then set a primary key for the result table. Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in <span className="em">result\_table</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for the result table’s columns.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – ID of view of which the result table will be a member. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The same table name as was passed in the parameter list.</p>
                    </div>

                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">binary\_encoded\_response (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>Avro binary encoded response.</p>
                    </div>

                    <div className="dt">json\_encoded\_response (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro JSON encoded response.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_result\_table\_name</strong> – The fully qualified name of the table (i.e. including the schema) used to store the results.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>A <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> object using which the user can decode the binary data by using <a className="reference internal" href="/content/api/python/source/gpudbrecord#gpudb.GPUdbRecord.decode_binary_data" title="gpudb.GPUdbRecord.decode_binary_data"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdbRecord.decode\_binary\_data()</span></code></a>. If JSON encoding is used, then None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_unique_and_decode"> <span className="sig-name descname"><span className="pre">aggregate\_unique\_and\_decode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">force\_primitive\_return\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">get\_column\_major</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Returns all the unique values from a particular column (specified by input parameter <span className="em">column\_name</span>) of a particular table or view (specified by input parameter <span className="em">table\_name</span>). If input parameter <span className="em">column\_name</span> is a numeric column, the values will be in output parameter <span className="em">binary\_encoded\_response</span>. Otherwise if input parameter <span className="em">column\_name</span> is a string column, the values will be in output parameter <span className="em">json\_encoded\_response</span>. The results can be paged via input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters.</p>
              <p>{"{"}“limit”:”10”,”sort\_order”:”descending”{"}"}</p>
              <p>The response is returned as a dynamic schema. For details see: <a className="reference external" href="/content/api/concepts/#dynamic-schemas">dynamic schemas documentation</a>.</p>
              <p>If a <span className="em">result\_table</span> name is specified in the input parameter <span className="em">options</span>, the results are stored in a new table with that name–no results are returned in the response. Both the table name and resulting column name must adhere to <a className="reference external" href="/content/concepts/tables/#table">standard naming conventions</a>; any column expression will need to be aliased. If the source table’s <a className="reference external" href="/content/concepts/tables/#shard-keys">shard key</a> is used as the input parameter <span className="em">column\_name</span>, the result table will be sharded, in all other cases it will be replicated. Sorting will properly function only if the result table is replicated or if there is only one processing node and should not be relied upon in other cases. Not available if the value of input parameter <span className="em">column\_name</span> is an unrestricted-length string.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of an existing table or view on which the operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column or an expression containing one or more column names on which the unique function would be applied.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>binary</strong> – Indicates that the returned records should be binary encoded.</p>
                        </li>

                        <li>
                          <p><strong>json</strong> – Indicates that the returned records should be JSON-encoded.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">result\_table</span>. If <span className="em">result\_table\_persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_result\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema as part of <span className="em">result\_table</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <span className="em">result\_table</span>. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table.</p>
                        </li>

                        <li>
                          <p><strong>sort\_order</strong> – String indicating how the returned values should be sorted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>ascending</p>
                            </li>

                            <li>
                              <p>descending</p>
                            </li>
                          </ul>

                          <p>The default value is ‘ascending’.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., ‘timestamp asc, x desc’. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table</strong> – The name of the table used to store the results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. If present, no results are returned in the response. Not available if input parameter <span className="em">column\_name</span> is an unrestricted-length string.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_persist</strong> – If <span className="em">true</span>, then the result table specified in <span className="em">result\_table</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the result table will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_force\_replicated</strong> – Force the result table to be replicated (ignores any sharding). Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_generate\_pk</strong> – If <span className="em">true</span> then set a primary key for the result table. Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in <span className="em">result\_table</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for the result table’s columns.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – ID of view of which the result table will be a member. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>The record type expected in the results, or None to determine the appropriate type automatically. If known, providing this may improve performance in binary mode. Not used in JSON mode. The default value is None.</p>
                    </div>

                    <div className="dt">force\_primitive\_return\_types (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If <cite>True</cite>, then <cite>OrderedDict</cite> objects will be returned, where string sub-type columns will have their values converted back to strings; for example, the Python <cite>datetime</cite> structs, used for datetime type columns would have their values returned as strings. If <cite>False</cite>, then <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned, which for string sub-types, will return native or custom structs; no conversion to string takes place. String conversions, when returning <cite>OrderedDicts</cite>, incur a speed penalty, and it is strongly recommended to use the <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> object option instead. If <cite>True</cite>, but none of the returned columns require a conversion, then the original <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned. Default value is True.</p>
                    </div>

                    <div className="dt">get\_column\_major (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates if the decoded records will be transposed to be column-major or returned as is (row-major). Default value is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The same table name as was passed in the parameter list.</p>
                    </div>

                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_result\_table\_name</strong> – The fully qualified name of the table (i.e. including the schema) used to store the results.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">records (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects which contain the decoded records.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_unpivot"> <span className="sig-name descname"><span className="pre">aggregate\_unpivot</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">variable\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">pivoted\_columns</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Rotate the column values into rows values.</p>
              <p>For unpivot details and examples, see <a className="reference external" href="/content/concepts/unpivot/">Unpivot</a>. For limitations, see <a className="reference external" href="/content/concepts/unpivot/#limitations">Unpivot Limitations</a>.</p>
              <p>Unpivot is used to normalize tables that are built for cross tabular reporting purposes. The unpivot operator rotates the column values for all the pivoted columns. A variable column, value column and all columns from the source table except the unpivot columns are projected into the result table. The variable column and value columns in the result table indicate the pivoted column name and values respectively.</p>
              <p>The response is returned as a dynamic schema. For details see: <a className="reference external" href="/content/api/concepts/#dynamic-schemas">dynamic schemas documentation</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the operation will be performed. Must be an existing table/view, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of column names or expressions. A wildcard ‘\*’ can be used to include all the non-pivoted columns from the source table. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">variable\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the variable/parameter column name. The default value is ‘’.</p>
                    </div>

                    <div className="dt">value\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the value column name. The default value is ‘’.</p>
                    </div>

                    <div className="dt">pivoted\_columns (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of one or more values typically the column names of the input table. All the columns in the source table must have the same data type. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>binary</strong> – Indicates that the returned records should be binary encoded.</p>
                        </li>

                        <li>
                          <p><strong>json</strong> – Indicates that the returned records should be JSON-encoded.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">result\_table</span>. If <span className="em">result\_table\_persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_result\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema as part of <span className="em">result\_table</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <span className="em">result\_table</span>. If the schema is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>result\_table</strong> – The name of a table used to store the results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. If present, no results are returned in the response.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_persist</strong> – If <span className="em">true</span>, then the result table specified in <span className="em">result\_table</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the result table will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table prior to unpivot processing.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by; e.g. ‘timestamp asc, x desc’. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for the result table’s columns.</p>
                        </li>

                        <li>
                          <p><strong>limit</strong> – The number of records to keep. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in <span className="em">result\_table</span>.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – View this result table is part of. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>create\_indexes</strong> – Comma-separated list of columns on which to create indexes on the table specified in <span className="em">result\_table</span>. The columns specified must be present in output column names. If any alias is given for any column name, the alias must be used, rather than the original column name.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_force\_replicated</strong> – Force the result table to be replicated (ignores any sharding). Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Typically shows the result-table name if provided in the request (Ignore otherwise).</p>
                    </div>

                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">binary\_encoded\_response (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>Avro binary encoded response.</p>
                    </div>

                    <div className="dt">json\_encoded\_response (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro JSON encoded response.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_result\_table\_name</strong> – The fully qualified name of the table (i.e. including the schema) used to store the results.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>A <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> object using which the user can decode the binary data by using <a className="reference internal" href="/content/api/python/source/gpudbrecord#gpudb.GPUdbRecord.decode_binary_data" title="gpudb.GPUdbRecord.decode_binary_data"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdbRecord.decode\_binary\_data()</span></code></a>. If JSON encoding is used, then None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.aggregate_unpivot_and_decode"> <span className="sig-name descname"><span className="pre">aggregate\_unpivot\_and\_decode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">variable\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">pivoted\_columns</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">force\_primitive\_return\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">get\_column\_major</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Rotate the column values into rows values.</p>
              <p>For unpivot details and examples, see <a className="reference external" href="/content/concepts/unpivot/">Unpivot</a>. For limitations, see <a className="reference external" href="/content/concepts/unpivot/#limitations">Unpivot Limitations</a>.</p>
              <p>Unpivot is used to normalize tables that are built for cross tabular reporting purposes. The unpivot operator rotates the column values for all the pivoted columns. A variable column, value column and all columns from the source table except the unpivot columns are projected into the result table. The variable column and value columns in the result table indicate the pivoted column name and values respectively.</p>
              <p>The response is returned as a dynamic schema. For details see: <a className="reference external" href="/content/api/concepts/#dynamic-schemas">dynamic schemas documentation</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the operation will be performed. Must be an existing table/view, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of column names or expressions. A wildcard ‘\*’ can be used to include all the non-pivoted columns from the source table. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">variable\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the variable/parameter column name. The default value is ‘’.</p>
                    </div>

                    <div className="dt">value\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the value column name. The default value is ‘’.</p>
                    </div>

                    <div className="dt">pivoted\_columns (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of one or more values typically the column names of the input table. All the columns in the source table must have the same data type. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>binary</strong> – Indicates that the returned records should be binary encoded.</p>
                        </li>

                        <li>
                          <p><strong>json</strong> – Indicates that the returned records should be JSON-encoded.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">result\_table</span>. If <span className="em">result\_table\_persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_result\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema as part of <span className="em">result\_table</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <span className="em">result\_table</span>. If the schema is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>result\_table</strong> – The name of a table used to store the results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. If present, no results are returned in the response.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_persist</strong> – If <span className="em">true</span>, then the result table specified in <span className="em">result\_table</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the result table will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table prior to unpivot processing.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by; e.g. ‘timestamp asc, x desc’. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <span className="em">result\_table</span> option.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for the result table’s columns.</p>
                        </li>

                        <li>
                          <p><strong>limit</strong> – The number of records to keep. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in <span className="em">result\_table</span>.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – View this result table is part of. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>create\_indexes</strong> – Comma-separated list of columns on which to create indexes on the table specified in <span className="em">result\_table</span>. The columns specified must be present in output column names. If any alias is given for any column name, the alias must be used, rather than the original column name.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_force\_replicated</strong> – Force the result table to be replicated (ignores any sharding). Must be used in combination with the <span className="em">result\_table</span> option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>The record type expected in the results, or None to determine the appropriate type automatically. If known, providing this may improve performance in binary mode. Not used in JSON mode. The default value is None.</p>
                    </div>

                    <div className="dt">force\_primitive\_return\_types (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If <cite>True</cite>, then <cite>OrderedDict</cite> objects will be returned, where string sub-type columns will have their values converted back to strings; for example, the Python <cite>datetime</cite> structs, used for datetime type columns would have their values returned as strings. If <cite>False</cite>, then <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned, which for string sub-types, will return native or custom structs; no conversion to string takes place. String conversions, when returning <cite>OrderedDicts</cite>, incur a speed penalty, and it is strongly recommended to use the <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> object option instead. If <cite>True</cite>, but none of the returned columns require a conversion, then the original <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned. Default value is True.</p>
                    </div>

                    <div className="dt">get\_column\_major (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates if the decoded records will be transposed to be column-major or returned as is (row-major). Default value is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Typically shows the result-table name if provided in the request (Ignore otherwise).</p>
                    </div>

                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_result\_table\_name</strong> – The fully qualified name of the table (i.e. including the schema) used to store the results.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">records (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects which contain the decoded records.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_backup"> <span className="sig-name descname"><span className="pre">alter\_backup</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">backup\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">action</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasink\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters an existing database <a className="reference external" href="/content/admin/backup_restore/#database-backup">backup</a>, accessible via the <a className="reference external" href="/content/concepts/data_sinks/">data sink</a> specified by input parameter <span className="em">datasink\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the backup to be altered.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Operation to be applied. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>checksum</strong> – Calculate checksum for backed-up files.</p>
                        </li>

                        <li>
                          <p><strong>ddl\_only</strong> – Whether or not to only save DDL and not back up table data, when taking future snapshots; set input parameter <span className="em">value</span> to ‘true’ or ‘false’ for DDL only or DDL and table data, respectively.</p>
                        </li>

                        <li>
                          <p><strong>max\_incremental\_backups\_to\_keep</strong> – Maximum number of incremental snapshots to keep, when taking future snapshots; set input parameter <span className="em">value</span> to the number of snapshots to keep.</p>
                        </li>

                        <li>
                          <p><strong>merge</strong> – Merges all snapshots within a backup and creates a single full snapshot.</p>
                        </li>

                        <li>
                          <p><strong>purge</strong> – Deletes a snapshot from a backup; set input parameter <span className="em">value</span> to the snapshot ID to purge.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">value (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of the modification, depending on input parameter <span className="em">action</span>.</p>
                    </div>

                    <div className="dt">datasink\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Data sink through which the backup is accessible.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>comment</strong> – Comments to store with the backup.</p>
                        </li>

                        <li>
                          <p><strong>dry\_run</strong> – Whether or not to perform a dry run of a backup alteration. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">backup\_name</span>.</p>
                    </div>

                    <div className="dt">backup\_id (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>ID of the snapshot affected by the alter operation, if any.</p>
                    </div>

                    <div className="dt">total\_bytes (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total size of files affected by the alter operation.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records affected by the alter operation.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_credential"> <span className="sig-name descname"><span className="pre">alter\_credential</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">credential\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">credential\_updates\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alter the properties of an existing <a className="reference external" href="/content/concepts/credentials/">credential</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the credential to be altered. Must be an existing credential.</p>
                    </div>

                    <div className="dt">credential\_updates\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map containing the properties of the credential to be updated. Error if empty. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>type</strong> – New type for the credential. Allowed values are:</p>

                          <ul>
                            <li>
                              <p>aws\_access\_key</p>
                            </li>

                            <li>
                              <p>aws\_iam\_role</p>
                            </li>

                            <li>
                              <p>azure\_ad</p>
                            </li>

                            <li>
                              <p>azure\_oauth</p>
                            </li>

                            <li>
                              <p>azure\_sas</p>
                            </li>

                            <li>
                              <p>azure\_storage\_key</p>
                            </li>

                            <li>
                              <p>docker</p>
                            </li>

                            <li>
                              <p>gcs\_service\_account\_id</p>
                            </li>

                            <li>
                              <p>gcs\_service\_account\_keys</p>
                            </li>

                            <li>
                              <p>hdfs</p>
                            </li>

                            <li>
                              <p>kafka</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>identity</strong> – New user for the credential.</p>
                        </li>

                        <li>
                          <p><strong>secret</strong> – New password for the credential.</p>
                        </li>

                        <li>
                          <p><strong>schema\_name</strong> – Updates the schema name. If <span className="em">schema\_name</span> doesn’t exist, an error will be thrown. If <span className="em">schema\_name</span> is empty, then the user’s default schema will be used.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">credential\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_datasink"> <span className="sig-name descname"><span className="pre">alter\_datasink</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasink\_updates\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters the properties of an existing <a className="reference external" href="/content/concepts/data_sinks/">data sink</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data sink to be altered. Must be an existing data sink.</p>
                    </div>

                    <div className="dt">datasink\_updates\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map containing the properties of the data sink to be updated. Error if empty. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>destination</strong> – Destination for the output data in format ‘destination\_type://path\[:port]’.</p>
                          <p>Supported destination types are ‘azure’, ‘gcs’, ‘hdfs’, ‘http’, ‘https’, ‘jdbc’, ‘kafka’, and ‘s3’.</p>
                        </li>

                        <li>
                          <p><strong>connection\_timeout</strong> – Timeout in seconds for connecting to this sink.</p>
                        </li>

                        <li>
                          <p><strong>wait\_timeout</strong> – Timeout in seconds for waiting for a response from this sink.</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – Name of the <a className="reference external" href="/content/concepts/credentials/">credential</a> object to be used in this data sink.</p>
                        </li>

                        <li>
                          <p><strong>s3\_bucket\_name</strong> – Name of the Amazon S3 bucket to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>s3\_region</strong> – Name of the Amazon S3 region where the given bucket is located.</p>
                        </li>

                        <li>
                          <p><strong>s3\_verify\_ssl</strong> – Whether to verify SSL connections. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Connect with SSL verification.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Connect without verifying the SSL connection; for testing purposes, bypassing TLS errors, self-signed certificates, etc.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>s3\_use\_virtual\_addressing</strong> – Whether to use virtual addressing when referencing the Amazon S3 sink. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The requests URI should be specified in virtual-hosted-style format where the bucket name is part of the domain name in the URL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Use path-style URI for requests.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>s3\_aws\_role\_arn</strong> – Amazon IAM Role ARN which has required S3 permissions that can be assumed for the given S3 IAM user.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_customer\_algorithm</strong> – Customer encryption algorithm used encrypting data.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_customer\_key</strong> – Customer encryption key to encrypt or decrypt data.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_type</strong> – Server side encryption type.</p>
                        </li>

                        <li>
                          <p><strong>s3\_kms\_key\_id</strong> – KMS key.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_kerberos\_keytab</strong> – Kerberos keytab file location for the given HDFS user. This may be a KIFS file.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_delegation\_token</strong> – Delegation token for the given HDFS user.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_use\_kerberos</strong> – Use kerberos authentication for the given HDFS cluster. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>azure\_storage\_account\_name</strong> – Name of the Azure storage account to use as the data sink, this is valid only if tenant\_id is specified.</p>
                        </li>

                        <li>
                          <p><strong>azure\_container\_name</strong> – Name of the Azure storage container to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>azure\_tenant\_id</strong> – Active Directory tenant ID (or directory ID).</p>
                        </li>

                        <li>
                          <p><strong>azure\_sas\_token</strong> – Shared access signature token for Azure storage account to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>azure\_oauth\_token</strong> – OAuth token to access given storage container.</p>
                        </li>

                        <li>
                          <p><strong>azure\_use\_virtual\_addressing</strong> – Whether to use virtual addressing when referencing the Azure source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The requests URI should be specified in virtual-hosted-style format where the bucket name is part of the domain name in the URL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Use path-style URI for requests.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_bucket\_name</strong> – Name of the Google Cloud Storage bucket to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_project\_id</strong> – Name of the Google Cloud project to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_service\_account\_keys</strong> – Google Cloud service account keys to use for authenticating the data sink.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_driver\_jar\_path</strong> – JDBC driver jar file location. This may be a KIFS file.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_driver\_class\_name</strong> – Name of the JDBC driver class.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_url</strong> – The publicly-accessible full path URL to the kafka broker, e.g., ‘<a className="reference external" href="http://172.123.45.67:9300">[http://172.123.45.67:9300](http://172.123.45.67:9300)</a>’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_topic\_name</strong> – Name of the Kafka topic to use for this data sink, if it references a Kafka broker.</p>
                        </li>

                        <li>
                          <p><strong>anonymous</strong> – Create an anonymous connection to the storage provider–DEPRECATED: this is now the default. Specify use\_managed\_credentials for non-anonymous connection. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>use\_managed\_credentials</strong> – When no credentials are supplied, we use anonymous access by default. If this is set, we will use cloud provider user settings. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>use\_https</strong> – Use HTTPS to connect to datasink if true, otherwise use HTTP. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>max\_batch\_size</strong> – Maximum number of records per notification message. The default value is ‘1’.</p>
                        </li>

                        <li>
                          <p><strong>max\_message\_size</strong> – Maximum size in bytes of each notification message. The default value is ‘1000000’.</p>
                        </li>

                        <li>
                          <p><strong>json\_format</strong> – The desired format of JSON encoded notifications message. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>flat</strong> – A single record is returned per message.</p>
                            </li>

                            <li>
                              <p><strong>nested</strong> – Records are returned as an array per message.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘flat’.</p>
                        </li>

                        <li>
                          <p><strong>skip\_validation</strong> – Bypass validation of connection to this data sink. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>schema\_name</strong> – Updates the schema name. If <span className="em">schema\_name</span> doesn’t exist, an error will be thrown. If <span className="em">schema\_name</span> is empty, then the user’s default schema will be used.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">updated\_properties\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of values updated.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_datasource"> <span className="sig-name descname"><span className="pre">alter\_datasource</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasource\_updates\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters the properties of an existing <a className="reference external" href="/content/concepts/data_sources/">data source</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data source to be altered. Must be an existing data source.</p>
                    </div>

                    <div className="dt">datasource\_updates\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map containing the properties of the data source to be updated. Error if empty. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>location</strong> – Location of the remote storage in ‘storage\_provider\_type://\[storage\_path\[:storage\_port]]’ format.</p>
                          <p>Supported storage provider types are ‘azure’, ‘gcs’, ‘hdfs’, ‘jdbc’, ‘kafka’, ‘confluent’, and ‘s3’.</p>
                        </li>

                        <li>
                          <p><strong>user\_name</strong> – Name of the remote system user; may be an empty string.</p>
                        </li>

                        <li>
                          <p><strong>password</strong> – Password for the remote system user; may be an empty string.</p>
                        </li>

                        <li>
                          <p><strong>skip\_validation</strong> – Bypass validation of connection to remote source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>connection\_timeout</strong> – Timeout in seconds for connecting to this storage provider.</p>
                        </li>

                        <li>
                          <p><strong>wait\_timeout</strong> – Timeout in seconds for reading from this storage provider.</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – Name of the <a className="reference external" href="/content/concepts/credentials">credential</a> object to be used in data source.</p>
                        </li>

                        <li>
                          <p><strong>s3\_bucket\_name</strong> – Name of the Amazon S3 bucket to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>s3\_region</strong> – Name of the Amazon S3 region where the given bucket is located.</p>
                        </li>

                        <li>
                          <p><strong>s3\_verify\_ssl</strong> – Whether to verify SSL connections. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Connect with SSL verification.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Connect without verifying the SSL connection; for testing purposes, bypassing TLS errors, self-signed certificates, etc.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>s3\_use\_virtual\_addressing</strong> – Whether to use virtual addressing when referencing the Amazon S3 source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The requests URI should be specified in virtual-hosted-style format where the bucket name is part of the domain name in the URL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Use path-style URI for requests.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>s3\_aws\_role\_arn</strong> – Amazon IAM Role ARN which has required S3 permissions that can be assumed for the given S3 IAM user.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_customer\_algorithm</strong> – Customer encryption algorithm used encrypting data.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_customer\_key</strong> – Customer encryption key to encrypt or decrypt data.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_kerberos\_keytab</strong> – Kerberos keytab file location for the given HDFS user. This may be a KIFS file.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_delegation\_token</strong> – Delegation token for the given HDFS user.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_use\_kerberos</strong> – Use kerberos authentication for the given HDFS cluster. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>azure\_storage\_account\_name</strong> – Name of the Azure storage account to use as the data source, this is valid only if tenant\_id is specified.</p>
                        </li>

                        <li>
                          <p><strong>azure\_container\_name</strong> – Name of the Azure storage container to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>azure\_tenant\_id</strong> – Active Directory tenant ID (or directory ID).</p>
                        </li>

                        <li>
                          <p><strong>azure\_sas\_token</strong> – Shared access signature token for Azure storage account to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>azure\_oauth\_token</strong> – OAuth token to access given storage container.</p>
                        </li>

                        <li>
                          <p><strong>azure\_use\_virtual\_addressing</strong> – Whether to use virtual addressing when referencing the Azure source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The requests URI should be specified in virtual-hosted-style format where the bucket name is part of the domain name in the URL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Use path-style URI for requests.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_bucket\_name</strong> – Name of the Google Cloud Storage bucket to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_project\_id</strong> – Name of the Google Cloud project to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_service\_account\_keys</strong> – Google Cloud service account keys to use for authenticating the data source.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_driver\_jar\_path</strong> – JDBC driver jar file location. This may be a KIFS file.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_driver\_class\_name</strong> – Name of the JDBC driver class.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_url</strong> – The publicly-accessible full path URL to the Kafka broker, e.g., ‘<a className="reference external" href="http://172.123.45.67:9300">[http://172.123.45.67:9300](http://172.123.45.67:9300)</a>’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_topic\_name</strong> – Name of the Kafka topic to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>anonymous</strong> – Create an anonymous connection to the storage provider–DEPRECATED: this is now the default. Specify use\_managed\_credentials for non-anonymous connection. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>use\_managed\_credentials</strong> – When no credentials are supplied, we use anonymous access by default. If this is set, we will use cloud provider user settings. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>use\_https</strong> – Use HTTPS to connect to datasource if true, otherwise use HTTP. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>schema\_name</strong> – Updates the schema name. If <span className="em">schema\_name</span> doesn’t exist, an error will be thrown. If <span className="em">schema\_name</span> is empty, then the user’s default schema will be used.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_retries</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_timeout</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_credential</strong> – Confluent Schema Registry <a className="reference external" href="/content/concepts/credentials">credential</a> object name.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_location</strong> – Location of Confluent Schema Registry in ‘\[storage\_path\[:storage\_port]]’ format.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_port</strong> – Confluent Schema Registry port (optional).</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">updated\_properties\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of values updated.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_directory"> <span className="sig-name descname"><span className="pre">alter\_directory</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">directory\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">directory\_updates\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters an existing directory in <a className="reference external" href="/content/tools/kifs/">KiFS</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the directory in KiFS to be altered.</p>
                    </div>

                    <div className="dt">directory\_updates\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map containing the properties of the directory to be altered. Error if empty. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>data\_limit</strong> – The maximum capacity, in bytes, to apply to the directory. Set to -1 to indicate no upper limit.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">directory\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_environment"> <span className="sig-name descname"><span className="pre">alter\_environment</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">environment\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">action</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters an existing environment which can be referenced by a <a className="reference external" href="/content/concepts/udf/">user-defined function</a> (UDF).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">environment\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the environment to be altered.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Modification operation to be applied. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>install\_package</strong> – Install a python package from PyPI, an external data source or KiFS.</p>
                        </li>

                        <li>
                          <p><strong>install\_requirements</strong> – Install packages from a requirements file.</p>
                        </li>

                        <li>
                          <p><strong>uninstall\_package</strong> – Uninstall a python package.</p>
                        </li>

                        <li>
                          <p><strong>uninstall\_requirements</strong> – Uninstall packages from a requirements file.</p>
                        </li>

                        <li>
                          <p><strong>reset</strong> – Uninstalls all packages in the environment and resets it to the original state at time of creation.</p>
                        </li>

                        <li>
                          <p><strong>rebuild</strong> – Recreates the environment and re-installs all packages, upgrades the packages if necessary based on dependencies.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">value (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The value of the modification, depending on input parameter <span className="em">action</span>. For example, if input parameter <span className="em">action</span> is <span className="em">install\_package</span>, this would be the python package name.</p>
                      <p>If input parameter <span className="em">action</span> is <span className="em">install\_requirements</span>, this would be the path of a requirements file from which to install packages.</p>
                      <p>If an external data source is specified in <span className="em">datasource\_name</span>, this can be the path to a wheel file or source archive. Alternatively, if installing from a file (wheel or source archive), the value may be a reference to a file in <a className="reference external" href="/content/tools/kifs/">KiFS</a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>datasource\_name</strong> – Name of an existing external data source from which packages specified in input parameter <span className="em">value</span> can be loaded.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">environment\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">environment\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_resource_group"> <span className="sig-name descname"><span className="pre">alter\_resource\_group</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">tier\_attributes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">ranking</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">adjoining\_resource\_group</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters the properties of an existing resource group to facilitate resource management.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the group to be altered. Must be an existing resource group name or an empty string when used in conjunction with <span className="em">is\_default\_group</span>.</p>
                    </div>

                    <div className="dt">tier\_attributes (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional map containing tier names and their respective attribute group limits. The only valid attribute limit that can be set is max\_memory (in bytes) for the VRAM and RAM tiers.</p>
                      <p>For instance, to set max VRAM capacity to 1GB per rank per GPU and max RAM capacity to 10GB per rank, use: {"{"}‘VRAM’:{"{"}‘max\_memory’:’1000000000’{"}"}, ‘RAM’:{"{"}‘max\_memory’:’10000000000’{"}"}{"}"}. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>max\_memory</strong> – Maximum amount of memory usable at one time, per rank, per GPU, for the VRAM tier; or maximum amount of memory usable at one time, per rank, for the RAM tier.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">ranking (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If the resource group ranking is to be updated, this indicates the relative ranking among existing resource groups where this resource group will be placed. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><span className="em">\<blank></span> – Don’t change the ranking.</p>
                        </li>

                        <li>
                          <p><strong>first</strong> – Make this resource group the new first one in the ordering.</p>
                        </li>

                        <li>
                          <p><strong>last</strong> – Make this resource group the new last one in the ordering.</p>
                        </li>

                        <li>
                          <p><strong>before</strong> – Place this resource group before the one specified by input parameter <span className="em">adjoining\_resource\_group</span> in the ordering.</p>
                        </li>

                        <li>
                          <p><strong>after</strong> – Place this resource group after the one specified by input parameter <span className="em">adjoining\_resource\_group</span> in the ordering.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘’.</p>
                    </div>

                    <div className="dt">adjoining\_resource\_group (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If input parameter <span className="em">ranking</span> is <span className="em">before</span> or <span className="em">after</span>, this field indicates the resource group before or after which the current group will be placed; otherwise, leave blank. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>max\_cpu\_concurrency</strong> – Maximum number of simultaneous threads that will be used to execute a request, per rank, for this group. The minimum allowed value is ‘4’.</p>
                        </li>

                        <li>
                          <p><strong>max\_data</strong> – Maximum amount of data, per rank, in bytes, that can be used by all database objects within this group. Set to -1 to indicate no upper limit. The minimum allowed value is ‘-1’.</p>
                        </li>

                        <li>
                          <p><strong>max\_scheduling\_priority</strong> – Maximum priority of a scheduled task for this group. The minimum allowed value is ‘1’. The maximum allowed value is ‘100’.</p>
                        </li>

                        <li>
                          <p><strong>max\_tier\_priority</strong> – Maximum priority of a tiered object for this group. The minimum allowed value is ‘1’. The maximum allowed value is ‘10’.</p>
                        </li>

                        <li>
                          <p><strong>is\_default\_group</strong> – If <span className="em">true</span>, this request applies to the global default resource group. It is an error for this field to be <span className="em">true</span> when the input parameter <span className="em">name</span> field is also populated. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>persist</strong> – If <span className="em">true</span> and a system-level change was requested, the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_role"> <span className="sig-name descname"><span className="pre">alter\_role</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">action</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters a Role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the role to be altered. Must be an existing role.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Modification operation to be applied to the role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>set\_comment</strong> – Sets the comment for an internal role.</p>
                        </li>

                        <li>
                          <p><strong>set\_resource\_group</strong> – Sets the resource group for an internal role. The resource group must exist, otherwise, an empty string assigns the role to the default resource group.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">value (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The value of the modification, depending on input parameter <span className="em">action</span>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_schema"> <span className="sig-name descname"><span className="pre">alter\_schema</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">schema\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">action</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Used to change the name of a SQL-style <a className="reference external" href="/content/concepts/schemas/">schema</a>, specified in input parameter <span className="em">schema\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the schema to be altered.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Modification operation to be applied. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>add\_comment</strong> – Adds a comment describing the schema.</p>
                        </li>

                        <li>
                          <p><strong>rename\_schema</strong> – Renames a schema to input parameter <span className="em">value</span>. Has the same naming restrictions as <a className="reference external" href="/content/concepts/tables/">tables</a>.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">value (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The value of the modification, depending on input parameter <span className="em">action</span>. For now the only value of input parameter <span className="em">action</span> is <span className="em">rename\_schema</span>. In this case the value is the new name of the schema.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">schema\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_system_properties"> <span className="sig-name descname"><span className="pre">alter\_system\_properties</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">property\_updates\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>The <a className="reference internal" href="#gpudb.GPUdb.alter_system_properties" title="gpudb.GPUdb.alter_system_properties"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.alter\_system\_properties()</span></code></a> endpoint is primarily used to simplify the testing of the system and is not expected to be used during normal execution. Commands are given through the input parameter <span className="em">property\_updates\_map</span> whose keys are commands and values are strings representing integer values (for example ‘8000’) or boolean values (‘true’ or ‘false’).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">property\_updates\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map containing the properties of the system to be updated. Error if empty. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>concurrent\_kernel\_execution</strong> – Enables concurrent kernel execution if the value is <span className="em">true</span> and disables it if the value is <span className="em">false</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>subtask\_concurrency\_limit</strong> – Sets the maximum number of simultaneous threads allocated to a given request, on each rank. Note that thread allocation may also be limited by resource group limits and/or system load.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Sets the number of records per chunk to be used for all new tables.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Sets the target maximum data size for each column in a chunk to be used for all new tables.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for all new tables.</p>
                        </li>

                        <li>
                          <p><strong>execution\_mode</strong> – Sets the execution\_mode for kernel executions to the specified string value. Possible values are host, device, default (engine decides) or an integer value that indicates max chunk size to exec on host.</p>
                        </li>

                        <li>
                          <p><strong>external\_files\_directory</strong> – Sets the root directory path where external table data files are accessed from. Path must exist on the head node.</p>
                        </li>

                        <li>
                          <p><strong>request\_timeout</strong> – Number of minutes after which filtering (e.g., <a className="reference internal" href="#gpudb.GPUdb.filter" title="gpudb.GPUdb.filter"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.filter()</span></code></a>) and aggregating (e.g., <a className="reference internal" href="#gpudb.GPUdb.aggregate_group_by" title="gpudb.GPUdb.aggregate_group_by"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.aggregate\_group\_by()</span></code></a>) queries will timeout. The default value is ‘20’. The minimum allowed value is ‘0’. The maximum allowed value is ‘1440’.</p>
                        </li>

                        <li>
                          <p><strong>max\_get\_records\_size</strong> – The maximum number of records the database will serve for a given data retrieval call. The default value is ‘20000’. The minimum allowed value is ‘0’. The maximum allowed value is ‘1000000’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_audit</strong> – Enable or disable auditing.</p>
                        </li>

                        <li>
                          <p><strong>audit\_headers</strong> – Enable or disable auditing of request headers.</p>
                        </li>

                        <li>
                          <p><strong>audit\_body</strong> – Enable or disable auditing of request bodies.</p>
                        </li>

                        <li>
                          <p><strong>audit\_data</strong> – Enable or disable auditing of request data.</p>
                        </li>

                        <li>
                          <p><strong>audit\_response</strong> – Enable or disable auditing of response information.</p>
                        </li>

                        <li>
                          <p><strong>shadow\_agg\_size</strong> – Size of the shadow aggregate chunk cache in bytes. The default value is ‘10000000’. The minimum allowed value is ‘0’. The maximum allowed value is ‘2147483647’.</p>
                        </li>

                        <li>
                          <p><strong>shadow\_filter\_size</strong> – Size of the shadow filter chunk cache in bytes. The default value is ‘10000000’. The minimum allowed value is ‘0’. The maximum allowed value is ‘2147483647’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_overlapped\_equi\_join</strong> – Enable overlapped-equi-join filter. The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_one\_step\_compound\_equi\_join</strong> – Enable the one\_step compound-equi-join algorithm. The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_batch\_size</strong> – Maximum number of records to be ingested in a single batch. The default value is ‘1000’. The minimum allowed value is ‘1’. The maximum allowed value is ‘10000000’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_poll\_timeout</strong> – Maximum time (milliseconds) for each poll to get records from Kafka. The default value is ‘0’. The minimum allowed value is ‘0’. The maximum allowed value is ‘1000’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_wait\_time</strong> – Maximum time (seconds) to buffer records received from Kafka before ingestion. The default value is ‘30’. The minimum allowed value is ‘1’. The maximum allowed value is ‘120’.</p>
                        </li>

                        <li>
                          <p><strong>egress\_parquet\_compression</strong> – Parquet file compression type. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>uncompressed</p>
                            </li>

                            <li>
                              <p>snappy</p>
                            </li>

                            <li>
                              <p>gzip</p>
                            </li>
                          </ul>

                          <p>The default value is ‘snappy’.</p>
                        </li>

                        <li>
                          <p><strong>egress\_single\_file\_max\_size</strong> – Max file size (in MB) to allow saving to a single file. May be overridden by target limitations. The default value is ‘10000’. The minimum allowed value is ‘1’. The maximum allowed value is ‘200000’.</p>
                        </li>

                        <li>
                          <p><strong>max\_concurrent\_kernels</strong> – Sets the max\_concurrent\_kernels value of the conf. The minimum allowed value is ‘0’. The maximum allowed value is ‘256’.</p>
                        </li>

                        <li>
                          <p><strong>system\_metadata\_retention\_period</strong> – Sets the system\_metadata.retention\_period value of the conf. The minimum allowed value is ‘1’.</p>
                        </li>

                        <li>
                          <p><strong>tcs\_per\_tom</strong> – Size of the worker rank data calculation thread pool. This is primarily used for computation-based operations such as aggregates and record retrieval. The minimum allowed value is ‘2’. The maximum allowed value is ‘8192’.</p>
                        </li>

                        <li>
                          <p><strong>tps\_per\_tom</strong> – Size of the worker rank data processing thread pool. This includes operations such as inserts, updates, and deletes on table data. Multi-head inserts are not affected by this limit. The minimum allowed value is ‘2’. The maximum allowed value is ‘8192’.</p>
                        </li>

                        <li>
                          <p><strong>background\_worker\_threads</strong> – Size of the worker rank background thread pool. This includes background operations such as watermark evictions catalog table updates. The minimum allowed value is ‘1’. The maximum allowed value is ‘8192’.</p>
                        </li>

                        <li>
                          <p><strong>log\_debug\_job\_info</strong> – Outputs various job-related information to the rank logs. Used for troubleshooting.</p>
                        </li>

                        <li>
                          <p><strong>enable\_thread\_hang\_logging</strong> – Log a stack trace for any thread that runs longer than a defined threshold. Used for troubleshooting. The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>ai\_enable\_rag</strong> – Enable RAG. The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ai\_api\_provider</strong> – AI API provider type.</p>
                        </li>

                        <li>
                          <p><strong>ai\_api\_url</strong> – AI API URL.</p>
                        </li>

                        <li>
                          <p><strong>ai\_api\_key</strong> – AI API key.</p>
                        </li>

                        <li>
                          <p><strong>ai\_api\_connection\_timeout</strong> – AI API connection timeout in seconds.</p>
                        </li>

                        <li>
                          <p><strong>ai\_api\_embeddings\_model</strong> – AI API model name.</p>
                        </li>

                        <li>
                          <p><strong>telm\_persist\_query\_metrics</strong> – Enable or disable persisting of query metrics.</p>
                        </li>

                        <li>
                          <p><strong>telm\_force\_metrics\_duration</strong> – Capture metrics for any query exceeding this duration in seconds.</p>
                        </li>

                        <li>
                          <p><strong>postgres\_proxy\_idle\_connection\_timeout</strong> – Idle connection timeout in seconds.</p>
                        </li>

                        <li>
                          <p><strong>postgres\_proxy\_keep\_alive</strong> – Enable postgres proxy keep alive. The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>kifs\_directory\_data\_limit</strong> – The default maximum capacity to apply when creating a KiFS directory (bytes). The minimum allowed value is ‘-1’.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression algorithm</a> applied to any column without a column-level or table-level default compression specified at the time it was created.</p>
                        </li>

                        <li>
                          <p><strong>disk\_auto\_optimize\_timeout</strong> – Time interval in seconds after which the database will apply optimizations/transformations to persisted data, such as compression. The minimum allowed value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>ha\_consumer\_replay\_offset</strong> – Initializes HA replay from the given timestamp (as milliseconds since unix epoch). The minimum allowed value is ‘-1’.</p>
                        </li>

                        <li>
                          <p><strong>admin\_access\_only</strong> – Restricts access to system admin users only. The default value is ‘false’.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>evict\_to\_cold</strong> – If <span className="em">true</span> and evict\_columns is specified, the given objects will be evicted to cold storage (if such a tier exists). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>persist</strong> – If <span className="em">true</span> the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">updated\_properties\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of values updated; for speed tests, a map of values measured to the measurement.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_table"> <span className="sig-name descname"><span className="pre">alter\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">action</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Apply various modifications to a table or view. The available modifications include the following:</p>
              <p>Manage a table’s columns–a column can be added, removed, or have its <a className="reference external" href="/content/concepts/types/">type and properties</a> modified, including whether it is <a className="reference external" href="/content/concepts/dictionary_encoding/">dictionary encoded</a> or not.</p>
              <p>External tables cannot be modified except for their refresh method.</p>
              <p>Create or delete a <a className="reference external" href="/content/concepts/indexes/#column-index">column</a>, <a className="reference external" href="/content/concepts/indexes/#low-cardinality-index">low-cardinality index</a>, <a className="reference external" href="/content/concepts/indexes/#chunk-skip-index">chunk skip</a>, <a className="reference external" href="/content/concepts/indexes/#geospatial-index">geospatial</a>, <a className="reference external" href="/content/concepts/indexes/#cagra-index">CAGRA</a>, or <a className="reference external" href="/content/concepts/indexes/#hnsw-index">HNSW</a> index. This can speed up certain operations when using expressions containing equality or relational operators on indexed columns. This only applies to tables.</p>
              <p>Create or delete a <a className="reference external" href="/content/concepts/tables/#foreign-key">foreign key</a> on a particular column.</p>
              <p>Manage a <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range-partitioned</a> or a <a className="reference external" href="/content/concepts/tables/#partitioning-by-list-manual">manual list-partitioned</a> table’s partitions.</p>
              <p>Set (or reset) the <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> of a table or view.</p>
              <p>Refresh and manage the refresh mode of a <a className="reference external" href="/content/concepts/materialized_views/">materialized view</a> or an <a className="reference external" href="/content/concepts/external_tables/">external table</a>.</p>
              <p>Set the <a className="reference external" href="/content/concepts/ttl/">time-to-live (TTL)</a>. This can be applied to tables or views.</p>
              <p>Set the global access mode (i.e. locking) for a table. This setting trumps any role-based access controls that may be in place; e.g., a user with write access to a table marked read-only will not be able to insert records into it. The mode can be set to read-only, write-only, read/write, and no access.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Table on which the operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table or view.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Modification operation to be applied. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>create\_index</strong> – Creates a <a className="reference external" href="/content/concepts/indexes/#column-index">column (attribute) index</a>, <a className="reference external" href="/content/concepts/indexes/#low-cardinality-index">low-cardinality index</a>, <a className="reference external" href="/content/concepts/indexes/#chunk-skip-index">chunk skip index</a>, <a className="reference external" href="/content/concepts/indexes/#geospatial-index">geospatial index</a>, <a className="reference external" href="/content/concepts/indexes/#cagra-index">CAGRA index</a>, or <a className="reference external" href="/content/concepts/indexes/#hnsw-index">HNSW index</a> (depending on the specified <span className="em">index\_type</span>), on the column name specified in input parameter <span className="em">value</span>. If this column already has the specified index, an error will be returned.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_index</strong> – Refreshes an index identified by <span className="em">index\_type</span>, on the column name specified in input parameter <span className="em">value</span>. Currently applicable only to CAGRA indices.</p>
                        </li>

                        <li>
                          <p><strong>delete\_index</strong> – Deletes a <a className="reference external" href="/content/concepts/indexes/#column-index">column (attribute) index</a>, <a className="reference external" href="/content/concepts/indexes/#low-cardinality-index">low-cardinality index</a>, <a className="reference external" href="/content/concepts/indexes/#chunk-skip-index">chunk skip index</a>, <a className="reference external" href="/content/concepts/indexes/#geospatial-index">geospatial index</a>, <a className="reference external" href="/content/concepts/indexes/#cagra-index">CAGRA index</a>, or <a className="reference external" href="/content/concepts/indexes/#hnsw-index">HNSW index</a> (depending on the specified <span className="em">index\_type</span>), on the column name specified in input parameter <span className="em">value</span>. If this column does not have the specified index, an error will be returned.</p>
                        </li>

                        <li>
                          <p><strong>move\_to\_collection</strong> – \[DEPRECATED–please use <span className="em">move\_to\_schema</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Moves a table or view into a schema named input parameter <span className="em">value</span>. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>move\_to\_schema</strong> – Moves a table or view into a schema named input parameter <span className="em">value</span>. If the schema provided is nonexistent, an error will be thrown. If input parameter <span className="em">value</span> is empty, then the table or view will be placed in the user’s default schema.</p>
                        </li>

                        <li>
                          <p><strong>protected</strong> – No longer used. Previously set whether the given input parameter <span className="em">table\_name</span> should be protected or not. The input parameter <span className="em">value</span> would have been either ‘true’ or ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>rename\_table</strong> – Renames a table or view to input parameter <span className="em">value</span>. Has the same naming restrictions as <a className="reference external" href="/content/concepts/tables/">tables</a>.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">time-to-live</a> in minutes of the table or view specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>add\_comment</strong> – Adds the comment specified in input parameter <span className="em">value</span> to the table specified in input parameter <span className="em">table\_name</span>. Use <span className="em">column\_name</span> to set the comment for a column.</p>
                        </li>

                        <li>
                          <p><strong>add\_column</strong> – Adds the column specified in input parameter <span className="em">value</span> to the table specified in input parameter <span className="em">table\_name</span>. Use <span className="em">column\_type</span> and <span className="em">column\_properties</span> in input parameter <span className="em">options</span> to set the column’s type and properties, respectively.</p>
                        </li>

                        <li>
                          <p><strong>change\_column</strong> – Changes type and properties of the column specified in input parameter <span className="em">value</span>. Use <span className="em">column\_type</span> and <span className="em">column\_properties</span> in input parameter <span className="em">options</span> to set the column’s type and properties, respectively. Note that primary key and/or shard key columns cannot be changed. All unchanging column properties must be listed for the change to take place, e.g., to add dictionary encoding to an existing ‘char4’ column, both ‘char4’ and ‘dict’ must be specified in the input parameter <span className="em">options</span> map.</p>
                        </li>

                        <li>
                          <p><strong>delete\_column</strong> – Deletes the column specified in input parameter <span className="em">value</span> from the table specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>set\_default</strong> – Sets or replaces the default value expression for the column specified in input parameter <span className="em">value</span>. The new default is taken from <span className="em">add\_column\_expression</span>. Existing properties on the column are preserved.</p>
                        </li>

                        <li>
                          <p><strong>delete\_default</strong> – Removes the default value expression from the column specified in input parameter <span className="em">value</span>. Other column properties are preserved.</p>
                        </li>

                        <li>
                          <p><strong>create\_foreign\_key</strong> – Creates a <a className="reference external" href="/content/concepts/tables/#foreign-key">foreign key</a> specified in input parameter <span className="em">value</span> using the format ‘(source\_column\_name \[, …]) references target\_table\_name(primary\_key\_column\_name \[, …]) \[as foreign\_key\_name]’.</p>
                        </li>

                        <li>
                          <p><strong>delete\_foreign\_key</strong> – Deletes a <a className="reference external" href="/content/concepts/tables/#foreign-key">foreign key</a>. The input parameter <span className="em">value</span> should be the foreign\_key\_name specified when creating the key or the complete string used to define it.</p>
                        </li>

                        <li>
                          <p><strong>add\_partition</strong> – Adds the partition specified in input parameter <span className="em">value</span>, to either a <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range-partitioned</a> or <a className="reference external" href="/content/concepts/tables/#partitioning-by-list-manual">manual list-partitioned</a> table.</p>
                        </li>

                        <li>
                          <p><strong>remove\_partition</strong> – Removes the partition specified in input parameter <span className="em">value</span> (and relocates all of its data to the default partition) from either a <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range-partitioned</a> or <a className="reference external" href="/content/concepts/tables/#partitioning-by-list-manual">manual list-partitioned</a> table.</p>
                        </li>

                        <li>
                          <p><strong>delete\_partition</strong> – Deletes the partition specified in input parameter <span className="em">value</span> (and all of its data) from either a <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range-partitioned</a> or <a className="reference external" href="/content/concepts/tables/#partitioning-by-list-manual">manual list-partitioned</a> table.</p>
                        </li>

                        <li>
                          <p><strong>set\_global\_access\_mode</strong> – Sets the global access mode (i.e. locking) for the table specified in input parameter <span className="em">table\_name</span>. Specify the access mode in input parameter <span className="em">value</span>. Valid modes are ‘no\_access’, ‘read\_only’, ‘write\_only’ and ‘read\_write’.</p>
                        </li>

                        <li>
                          <p><strong>refresh</strong> – For a <a className="reference external" href="/content/concepts/materialized_views/">materialized view</a>, replays all the table creation commands required to create the view. For an <a className="reference external" href="/content/concepts/external_tables/">external table</a>, reloads all data in the table from its associated source files or <a className="reference external" href="/content/concepts/data_sources/">data source</a>.</p>
                        </li>

                        <li>
                          <p><strong>set\_refresh\_method</strong> – For a <a className="reference external" href="/content/concepts/materialized_views/">materialized view</a>, sets the method by which the view is refreshed to the method specified in input parameter <span className="em">value</span> - one of ‘manual’, ‘periodic’, or ‘on\_change’. For an <a className="reference external" href="/content/concepts/external_tables/">external table</a>, sets the method by which the table is refreshed to the method specified in input parameter <span className="em">value</span> - either ‘manual’ or ‘on\_start’.</p>
                        </li>

                        <li>
                          <p><strong>set\_refresh\_start\_time</strong> – Sets the time to start periodic refreshes of this <a className="reference external" href="/content/concepts/materialized_views/">materialized view</a> to the datetime string specified in input parameter <span className="em">value</span> with format ‘YYYY-MM-DD HH:MM:SS’. Subsequent refreshes occur at the specified time + N \* the refresh period.</p>
                        </li>

                        <li>
                          <p><strong>set\_refresh\_stop\_time</strong> – Sets the time to stop periodic refreshes of this <a className="reference external" href="/content/concepts/materialized_views/">materialized view</a> to the datetime string specified in input parameter <span className="em">value</span> with format ‘YYYY-MM-DD HH:MM:SS’.</p>
                        </li>

                        <li>
                          <p><strong>set\_refresh\_period</strong> – Sets the time interval in seconds at which to refresh this <a className="reference external" href="/content/concepts/materialized_views/">materialized view</a> to the value specified in input parameter <span className="em">value</span>. Also, sets the refresh method to periodic if not already set.</p>
                        </li>

                        <li>
                          <p><strong>set\_refresh\_span</strong> – Sets the future time-offset(in seconds) for the view refresh to stop.</p>
                        </li>

                        <li>
                          <p><strong>set\_refresh\_execute\_as</strong> – Sets the user name to refresh this <a className="reference external" href="/content/concepts/materialized_views/">materialized view</a> to the value specified in input parameter <span className="em">value</span>.</p>
                        </li>

                        <li>
                          <p><strong>remove\_text\_search\_attributes</strong> – Removes <a className="reference external" href="/content/concepts/full_text_search/">text search</a> attribute from all columns.</p>
                        </li>

                        <li>
                          <p><strong>remove\_shard\_keys</strong> – Removes the shard key property from all columns, so that the table will be considered randomly sharded. The data is not moved. The input parameter <span className="em">value</span> is ignored.</p>
                        </li>

                        <li>
                          <p><strong>set\_strategy\_definition</strong> – Sets the <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns to the one specified in input parameter <span className="em">value</span>, replacing the existing tier strategy in its entirety.</p>
                        </li>

                        <li>
                          <p><strong>cancel\_datasource\_subscription</strong> – Permanently unsubscribe a data source that is loading continuously as a stream. The data source can be Kafka / S3 / Azure / GCS.</p>
                        </li>

                        <li>
                          <p><strong>drop\_datasource\_subscription</strong> – Permanently delete a cancelled data source subscription.</p>
                        </li>

                        <li>
                          <p><strong>pause\_datasource\_subscription</strong> – Temporarily unsubscribe a data source that is loading continuously as a stream. The data source can be Kafka / S3 / Azure / GCS.</p>
                        </li>

                        <li>
                          <p><strong>resume\_datasource\_subscription</strong> – Resubscribe to a paused data source subscription. The data source can be Kafka / S3 / Azure / GCS.</p>
                        </li>

                        <li>
                          <p><strong>change\_owner</strong> – Change the owner resource group of the table.</p>
                        </li>

                        <li>
                          <p><strong>set\_load\_vectors\_policy</strong> – Set startup data loading scheme for the table; see description of ‘load\_vectors\_policy’ in <a className="reference internal" href="#gpudb.GPUdb.create_table" title="gpudb.GPUdb.create_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table()</span></code></a> for possible values for input parameter <span className="em">value</span>.</p>
                        </li>

                        <li>
                          <p><strong>set\_build\_pk\_index\_policy</strong> – Set startup primary key generation scheme for the table; see description of ‘build\_pk\_index\_policy’ in <a className="reference internal" href="#gpudb.GPUdb.create_table" title="gpudb.GPUdb.create_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table()</span></code></a> for possible values for input parameter <span className="em">value</span>.</p>
                        </li>

                        <li>
                          <p><strong>set\_build\_materialized\_view\_policy</strong> – Set startup rebuilding scheme for the materialized view; see description of ‘build\_materialized\_view\_policy’ in <a className="reference internal" href="#gpudb.GPUdb.create_materialized_view" title="gpudb.GPUdb.create_materialized_view"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_materialized\_view()</span></code></a> for possible values for input parameter <span className="em">value</span>.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">value (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The value of the modification, depending on input parameter <span className="em">action</span>. For example, if input parameter <span className="em">action</span> is <span className="em">add\_column</span>, this would be the column name; while the column’s definition would be covered by the <span className="em">column\_type</span>, <span className="em">column\_properties</span>, <span className="em">column\_default\_value</span>, and <span className="em">add\_column\_expression</span> in input parameter <span className="em">options</span>. If input parameter <span className="em">action</span> is <span className="em">ttl</span>, it would be the number of minutes for the new TTL. If input parameter <span className="em">action</span> is <span className="em">refresh</span>, this field would be blank.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p>action</p>
                        </li>

                        <li>
                          <p>column\_name</p>
                        </li>

                        <li>
                          <p>table\_name</p>
                        </li>

                        <li>
                          <p><strong>column\_default\_value</strong> – When adding a column, set a literal default value for existing records. For nullable columns, the default value will be null, regardless of data type. Also persisted as the column’s default for future inserts that omit the column.</p>
                        </li>

                        <li>
                          <p><strong>column\_properties</strong> – When adding or changing a column, set the column properties (strings, separated by a comma: data, text\_search, char8, int8 etc).</p>
                        </li>

                        <li>
                          <p><strong>column\_type</strong> – When adding or changing a column, set the column type (strings, separated by a comma: int, double, string, null etc).</p>
                        </li>

                        <li>
                          <p><strong>copy\_values\_from\_column</strong> – \[DEPRECATED] Please use <span className="em">add\_column\_expression</span> instead.</p>
                        </li>

                        <li>
                          <p><strong>rename\_column</strong> – When changing a column, specify new column name.</p>
                        </li>

                        <li>
                          <p><strong>validate\_change\_column</strong> – When changing a column, validate the change before applying it (or not). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Validate all values. A value too large (or too long) for the new type will prevent any change.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – When a value is too large or long, it will be truncated.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>update\_last\_access\_time</strong> – Indicates whether the <a className="reference external" href="/content/concepts/ttl/">time-to-live</a> (TTL) expiration countdown timer should be reset to the table’s TTL. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Reset the expiration countdown timer to the table’s configured TTL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Don’t reset the timer; expiration countdown will continue from where it is, as if the table had not been accessed.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>add\_column\_expression</strong> – When adding a column or setting a new default with input parameter <span className="em">action</span> set to <span className="em">set\_default</span>, the new default expression (GPUdb-syntax) for the column. Any valid expression may be used, including one containing references to existing columns in the same table. Persisted as the column’s default for future inserts that omit the column; for add\_column, also used to backfill existing rows.</p>
                        </li>

                        <li>
                          <p><strong>add\_column\_expression\_sql</strong> – Optional SQL-syntax form of <span className="em">add\_column\_expression</span>, used only when the SQL syntax differs from the GPUdb syntax. Persisted alongside the GPUdb form so SHOW CREATE TABLE / information\_schema can reproduce the original SQL.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – Parameter for specifying the <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns when input parameter <span className="em">action</span> is <span className="em">set\_strategy\_definition</span>, replacing the existing tier strategy in its entirety.</p>
                        </li>

                        <li>
                          <p><strong>index\_type</strong> – Type of index to create, when input parameter <span className="em">action</span> is <span className="em">create\_index</span>; to refresh, when input parameter <span className="em">action</span> is <span className="em">refresh\_index</span>; or to delete, when input parameter <span className="em">action</span> is <span className="em">delete\_index</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>column</strong> – Create or delete a <a className="reference external" href="/content/concepts/indexes/#column-index">column (attribute) index</a>.</p>
                            </li>

                            <li>
                              <p><strong>low\_cardinality</strong> – Create a <a className="reference external" href="/content/concepts/indexes/#low-cardinality-index">low-cardinality column (attribute) index</a>.</p>
                            </li>

                            <li>
                              <p><strong>chunk\_skip</strong> – Create or delete a <a className="reference external" href="/content/concepts/indexes/#chunk-skip-index">chunk skip index</a>.</p>
                            </li>

                            <li>
                              <p><strong>geospatial</strong> – Create or delete a <a className="reference external" href="/content/concepts/indexes/#geospatial-index">geospatial index</a>.</p>
                            </li>

                            <li>
                              <p><strong>cagra</strong> – Create or delete a <a className="reference external" href="/content/concepts/indexes/#cagra-index">CAGRA index</a> on a <a className="reference external" href="/content/vector_search/#vector-type">vector column</a>.</p>
                            </li>

                            <li>
                              <p><strong>hnsw</strong> – Create or delete an <a className="reference external" href="/content/concepts/indexes/#hnsw-index">HNSW index</a> on a <a className="reference external" href="/content/vector_search/#vector-type">vector column</a>.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘column’.</p>
                        </li>

                        <li>
                          <p><strong>index\_options</strong> – Options to use when creating an index, in the format “key: value \[, key: value \[, …]]”. Valid options vary by index type.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Table on which the operation was performed.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Modification operation that was performed.</p>
                    </div>

                    <div className="dt">value (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The value of the modification that was performed.</p>
                    </div>

                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Return the type\_id (when changing a table, a new type may be created).</p>
                    </div>

                    <div className="dt">type\_definition (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Return the type\_definition (when changing a table, a new type may be created).</p>
                    </div>

                    <div className="dt">properties (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Return the type properties (when changing a table, a new type may be created).</p>
                    </div>

                    <div className="dt">label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Return the type label (when changing a table, a new type may be created).</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_table_columns"> <span className="sig-name descname"><span className="pre">alter\_table\_columns</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_alterations</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Apply various modifications to columns in a table, view. The available modifications include the following:</p>
              <p>Create or delete an <a className="reference external" href="/content/concepts/indexes/#column-index">index</a> on a particular column. This can speed up certain operations when using expressions containing equality or relational operators on indexed columns. This only applies to tables.</p>
              <p>Manage a table’s columns–a column can be added, removed, or have its <a className="reference external" href="/content/concepts/types/">type and properties</a> modified, including whether it is <a className="reference external" href="/content/concepts/dictionary_encoding/">dictionary encoded</a> or not.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Table on which the operation will be performed. Must be an existing table or view, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">column\_alterations (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>List of alter table add/delete/change column requests - all for the same table. Each request is a map that includes ‘column\_name’, ‘action’ and the options specific for the action. Note that the same options as in alter table requests but in the same map as the column name and the action. For example: \[{"{"}‘column\_name’:’col\_1’,’action’:’change\_column’,’rename\_column’:’col\_2’{"}"},{"{"}‘column\_name’:’col\_1’,’action’:’add\_column’, ‘type’:’int’,’default\_value’:’1’{"}"}]. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Table on which the operation was performed.</p>
                    </div>

                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Return the type\_id (when changing a table, a new type may be created).</p>
                    </div>

                    <div className="dt">type\_definition (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Return the type\_definition (when changing a table, a new type may be created).</p>
                    </div>

                    <div className="dt">properties (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Return the type properties (when changing a table, a new type may be created).</p>
                    </div>

                    <div className="dt">label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Return the type label (when changing a table, a new type may be created).</p>
                    </div>

                    <div className="dt">column\_alterations (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>List of alter table add/delete/change column requests - all for the same table. Each request is a map that includes ‘column\_name’, ‘action’ and the options specific for the action. Note that the same options as in alter table requests but in the same map as the column name and the action. For example: \[{"{"}‘column\_name’:’col\_1’,’action’:’change\_column’,’rename\_column’:’col\_2’{"}"},{"{"}‘column\_name’:’col\_1’,’action’:’add\_column’, ‘type’:’int’,’default\_value’:’1’{"}"}].</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_table_metadata"> <span className="sig-name descname"><span className="pre">alter\_table\_metadata</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">metadata\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Updates (adds or changes) metadata for tables. The metadata key and values must both be strings. This is an easy way to annotate whole tables rather than single records within tables. Some examples of metadata are owner of the table, table creation timestamp etc.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the tables whose metadata will be updated, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. All specified tables must exist, or an error will be returned. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">metadata\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>A map which contains the metadata of the tables that are to be updated. Note that only one map is provided for all the tables; so the change will be applied to every table. If the provided map is empty, then all existing metadata for the table(s) will be cleared.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">metadata\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">metadata\_map</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_table_monitor"> <span className="sig-name descname"><span className="pre">alter\_table\_monitor</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">topic\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">monitor\_updates\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters a table monitor previously created with <a className="reference internal" href="#gpudb.GPUdb.create_table_monitor" title="gpudb.GPUdb.create_table_monitor"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table\_monitor()</span></code></a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">topic\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The topic ID returned by <a className="reference internal" href="#gpudb.GPUdb.create_table_monitor" title="gpudb.GPUdb.create_table_monitor"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table\_monitor()</span></code></a>.</p>
                    </div>

                    <div className="dt">monitor\_updates\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map containing the properties of the table monitor to be updated. Error if empty. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>schema\_name</strong> – Updates the schema name. If <span className="em">schema\_name</span> doesn’t exist, an error will be thrown. If <span className="em">schema\_name</span> is empty, then the user’s default schema will be used.</p>
                        </li>

                        <li>
                          <p><strong>max\_consecutive\_failures</strong> – Updates the maximum number of consecutive failures before suspending the stream. A value of ‘-1’ to disables auto-suspend. This value is by rank and not overall.</p>
                        </li>

                        <li>
                          <p><strong>notifications</strong> – Updates the state of the monitor. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>resume</p>
                            </li>

                            <li>
                              <p>suspend</p>
                            </li>
                          </ul>

                          <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">topic\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">topic\_id</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_tier"> <span className="sig-name descname"><span className="pre">alter\_tier</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters properties of an existing <a className="reference external" href="/content/rm/concepts/#storage-tiers">tier</a> to facilitate <a className="reference external" href="/content/rm/concepts/">resource management</a>.</p>
              <p>To disable <a className="reference external" href="/content/rm/concepts/#watermark-based-eviction">watermark-based eviction</a>, set both <span className="em">high\_watermark</span> and <span className="em">low\_watermark</span> to 100.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the tier to be altered. Must be an existing tier group name: vram, ram, disk\[n], persist, cold\[n].</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>capacity</strong> – Maximum size in bytes this tier may hold at once, per rank.</p>
                        </li>

                        <li>
                          <p><strong>high\_watermark</strong> – Threshold of usage of this tier’s resource that once exceeded, will trigger watermark-based eviction from this tier. The minimum allowed value is ‘0’. The maximum allowed value is ‘100’.</p>
                        </li>

                        <li>
                          <p><strong>low\_watermark</strong> – Threshold of resource usage that once fallen below after crossing the <span className="em">high\_watermark</span>, will cease watermark-based eviction from this tier. The minimum allowed value is ‘0’. The maximum allowed value is ‘100’.</p>
                        </li>

                        <li>
                          <p><strong>wait\_timeout</strong> – Timeout in seconds for reading from or writing to this resource. Applies to cold storage tiers only.</p>
                        </li>

                        <li>
                          <p><strong>persist</strong> – If <span className="em">true</span> the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>rank</strong> – Apply the requested change only to a specific rank. The minimum allowed value is ‘0’. The maximum allowed value is ‘10000’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_user"> <span className="sig-name descname"><span className="pre">alter\_user</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">action</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters a user.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user to be altered. Must be an existing user.</p>
                    </div>

                    <div className="dt">action (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Modification operation to be applied to the user. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>set\_activated</strong> – Is the user allowed to login.</p>
                        </li>

                        <li>
                          <p><strong>true</strong> – User may login.</p>
                        </li>

                        <li>
                          <p><strong>false</strong> – User may not login.</p>
                        </li>

                        <li>
                          <p><strong>set\_comment</strong> – Sets the comment for an internal user.</p>
                        </li>

                        <li>
                          <p><strong>set\_default\_schema</strong> – Set the default\_schema for an internal user. An empty string means the user will have no default schema.</p>
                        </li>

                        <li>
                          <p><strong>set\_password</strong> – Sets the password of the user. The user must be an internal user.</p>
                        </li>

                        <li>
                          <p><strong>set\_resource\_group</strong> – Sets the resource group for an internal user. The resource group must exist, otherwise, an empty string assigns the user to the default resource group.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">value (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The value of the modification, depending on input parameter <span className="em">action</span>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_video"> <span className="sig-name descname"><span className="pre">alter\_video</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">path</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters a video.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">path (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Fully-qualified <a className="reference external" href="/content/tools/kifs/">KiFS</a> path to the video to be altered.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the video.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">path (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Fully qualified KIFS path to the video file.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_wal"> <span className="sig-name descname"><span className="pre">alter\_wal</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Alters table write-ahead log (WAL) settings. Returns information about the requested table WAL modifications.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of tables to modify. An asterisk changes the system settings. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>max\_segment\_size</strong> – Maximum size of an individual segment file.</p>
                        </li>

                        <li>
                          <p><strong>segment\_count</strong> – Approximate number of segment files to split the WAL across. Must be at least two.</p>
                        </li>

                        <li>
                          <p><strong>sync\_policy</strong> – Maximum size of an individual segment file. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – Disables the WAL.</p>
                            </li>

                            <li>
                              <p><strong>background</strong> – WAL entries are periodically written instead of immediately after each operation.</p>
                            </li>

                            <li>
                              <p><strong>flush</strong> – Protects entries in the event of a database crash.</p>
                            </li>

                            <li>
                              <p><strong>fsync</strong> – Protects entries in the event of an OS crash.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>flush\_frequency</strong> – Specifies how frequently WAL entries are written with background sync. This is a global setting and can only be used with the system {"{"}options.table\_names{"}"} specifier ‘\*’.</p>
                        </li>

                        <li>
                          <p><strong>checksum</strong> – If <span className="em">true</span> each entry will be checked against a protective checksum. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>override\_non\_default</strong> – If <span className="em">true</span> tables with unique WAL settings will be overridden when applying a system level change. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>restore\_system\_settings</strong> – If <span className="em">true</span> tables with unique WAL settings will be reverted to the current global settings. Cannot be used in conjunction with any other option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>persist</strong> – If <span className="em">true</span> and a system-level change was requested, the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.append_records"> <span className="sig-name descname"><span className="pre">append\_records</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">source\_table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">field\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Append (or insert) all records from a source table (specified by input parameter <span className="em">source\_table\_name</span>) to a particular target table (specified by input parameter <span className="em">table\_name</span>). The field map (specified by input parameter <span className="em">field\_map</span>) holds the user specified map of target table column names with their mapped source column names.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The table name for the records to be appended, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">source\_table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The source table name to get records from, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table name.</p>
                    </div>

                    <div className="dt">field\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Contains the mapping of column names from the target table (specified by input parameter <span className="em">table\_name</span>) as the keys, and corresponding column names or expressions (e.g., ‘col\_name+1’) from the source table (specified by input parameter <span className="em">source\_table\_name</span>). Must be existing column names in source table and target table, and their types must be matched. For details on using expressions, see <a className="reference external" href="/content/concepts/expressions/">Expressions</a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>offset</strong> – A positive integer indicating the number of initial results to skip from input parameter <span className="em">source\_table\_name</span>. Default is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>limit</strong> – A positive integer indicating the maximum number of results to be returned from input parameter <span className="em">source\_table\_name</span>. Or END\_OF\_SET (-9999) to indicate that the max number of results should be returned. The default value is ‘-9999’.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the input parameter <span className="em">source\_table\_name</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by from source table (specified by input parameter <span className="em">source\_table\_name</span>), e.g., ‘timestamp asc, x desc’. The <span className="em">order\_by</span> columns do not have to be present in input parameter <span className="em">field\_map</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for inserting source table records (specified by input parameter <span className="em">source\_table\_name</span>) into a target table (specified by input parameter <span className="em">table\_name</span>) with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. If set to <span className="em">true</span>, any existing table record with primary key values that match those of a source table record being inserted will be replaced by that new record (the new data will be “upserted”). If set to <span className="em">false</span>, any existing table record with primary key values that match those of a source table record being inserted will remain unchanged, while the source record will be rejected and an error handled as determined by <span className="em">ignore\_existing\_pk</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Upsert new records when primary keys match existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject new records when primary keys match existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_inplace\_updates</strong> – Applies only when upserting (when <span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>). If set to <span className="em">true</span>, an existing record matched by primary key is modified in place. If set to <span className="em">false</span>, it is updated by deleting the existing record and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for inserting source table records (specified by input parameter <span className="em">source\_table\_name</span>) into a target table (specified by input parameter <span className="em">table\_name</span>) with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any source table record being inserted that is rejected for having primary key values that match those of an existing target table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any source table record for having primary key values matching an existing target table record will result in an error being raised. If the specified table does not have a primary key or if upsert mode is in effect (<span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>), then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore source table records whose primary key values collide with those of target table records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Raise an error for any source table record whose primary key values collide with those of a target table record.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>pk\_conflict\_predicate\_higher</strong> – The record with higher value for the column resolves the primary-key insert conflict. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>pk\_conflict\_predicate\_lower</strong> – The record with lower value for the column resolves the primary-key insert conflict. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_strings</strong> – If set to <span className="em">true</span>, it allows inserting longer strings into smaller charN string columns by truncating the longer strings to fit. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The name of the table to which the records were appended.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.check_table"> <span className="sig-name descname"><span className="pre">check\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Scans the requested tables as specified in input parameter <span className="em">table\_names</span> for integrity. Any table chunks which fail the check will be marked as corrupt. By default the database will automatically repair corrupt tables (via truncating). Note that since this reads every table column from disk it may be a potentially long-running operation. The option <span className="em">local\_only</span> can be used to skip any table files already written to a remote storage. Returns table corruption results.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of tables to query. An asterisk returns all tables. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>local\_only</strong> – If <span className="em">true</span> only locally persisted files will be checked. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>show\_detail</strong> – If <span className="em">true</span> reports individual chunk errors. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The names of the tables that were checked.</p>
                    </div>

                    <div className="dt">ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The chunk identifiers associated with each reported result.</p>
                    </div>

                    <div className="dt">locations (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The locations (rank/tom) where each chunk corruption was found.</p>
                    </div>

                    <div className="dt">errors (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A description of each corruption error detected or count of the errors, based on <span className="em">show\_detail</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.clear_statistics"> <span className="sig-name descname"><span className="pre">clear\_statistics</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Clears statistics (cardinality, mean value, etc.) for a column in a specified table.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a table, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column in input parameter <span className="em">table\_name</span> for which to clear statistics. The column must be from an existing table. An empty string clears statistics for all columns in the table. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">column\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.clear_table"> <span className="sig-name descname"><span className="pre">clear\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">authorization</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Clears (drops) one or all tables in the database cluster. The operation is synchronous meaning that the table will be cleared before the function returns. The response payload returns the status of the operation along with the name of the table that was cleared.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to be cleared, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table. Empty string clears all available tables, though this behavior is be prevented by default via gpudb.conf parameter ‘disable\_clear\_all’. The default value is ‘’.</p>
                    </div>

                    <div className="dt">authorization (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>No longer used. User can pass an empty string. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span> and if the table specified in input parameter <span className="em">table\_name</span> does not exist no error is returned. If <span className="em">false</span> and if the table specified in input parameter <span className="em">table\_name</span> does not exist then an error is returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span> for a given table, or ‘ALL CLEARED’ in case of clearing all tables.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.clear_table_monitor"> <span className="sig-name descname"><span className="pre">clear\_table\_monitor</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">topic\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deactivates a table monitor previously created with <a className="reference internal" href="#gpudb.GPUdb.create_table_monitor" title="gpudb.GPUdb.create_table_monitor"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table\_monitor()</span></code></a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">topic\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The topic ID returned by <a className="reference internal" href="#gpudb.GPUdb.create_table_monitor" title="gpudb.GPUdb.create_table_monitor"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table\_monitor()</span></code></a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>keep\_autogenerated\_sink</strong> – If <span className="em">true</span>, the auto-generated <a className="reference external" href="/content/concepts/data_sinks/">datasink</a> associated with this monitor, if there is one, will be retained for further use. If <span className="em">false</span>, then the auto-generated sink will be dropped if there are no other monitors referencing it. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>clear\_all\_references</strong> – If <span className="em">true</span>, all references that share the same input parameter <span className="em">topic\_id</span> will be cleared. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">topic\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">topic\_id</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.clear_tables"> <span className="sig-name descname"><span className="pre">clear\_tables</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Clears (drops) tables in the database cluster. The operation is synchronous meaning that the tables will be cleared before the function returns. The response payload returns the status of the operation for each table requested.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the tables to be cleared, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be existing tables. Empty list clears all available tables, though this behavior is be prevented by default via gpudb.conf parameter ‘disable\_clear\_all’. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span> and if a table specified in input parameter <span className="em">table\_names</span> does not exist no error is returned. If <span className="em">false</span> and if a table specified in input parameter <span className="em">table\_names</span> does not exist then an error is returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">tables (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>For each table in input parameter <span className="em">table\_names</span>, any error from the clear operation, or an empty string if successful.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.clear_trigger"> <span className="sig-name descname"><span className="pre">clear\_trigger</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">trigger\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Clears or cancels the trigger identified by the specified handle. The output returns the handle of the trigger cleared as well as indicating success or failure of the trigger deactivation.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">trigger\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>ID for the trigger to be deactivated.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">trigger\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">trigger\_id</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.collect_statistics"> <span className="sig-name descname"><span className="pre">collect\_statistics</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Collect statistics for a column(s) in a specified table.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a table, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table. A value of ‘\*’ collects statistics on every user table the caller may read (excluding system schemas, views, and temporary tables); when used, input parameter <span className="em">column\_names</span> must be ‘\*’.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of one or more column names in input parameter <span className="em">table\_name</span> for which to collect statistics (cardinality, mean value, etc.). A single entry of ‘\*’ expands to every collectable column on the table (geometry, vector, JSON, and array columns are skipped). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">column\_names</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_backup"> <span className="sig-name descname"><span className="pre">create\_backup</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">backup\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">backup\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">backup\_objects\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasink\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a database <a className="reference external" href="/content/admin/backup_restore/#database-backup">backup</a>, containing a snapshot of existing objects, at the remote file store accessible via the <a className="reference external" href="/content/concepts/data_sinks/">data sink</a> specified by input parameter <span className="em">datasink\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name for this backup. If the backup already exists, only an incremental or differential backup can be made, unless <span className="em">recreate</span> is set to <span className="em">true</span>.</p>
                    </div>

                    <div className="dt">backup\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Type of snapshot to create. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>differential</strong> – Snapshot of changes in the database objects and data since the last full snapshot.</p>
                        </li>

                        <li>
                          <p><strong>full</strong> – Snapshot of the given database objects and data.</p>
                        </li>

                        <li>
                          <p><strong>incremental</strong> – Snapshot of changes in the database objects and data since the last snapshot of any kind.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">backup\_objects\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of objects to be captured in the backup; must be specified when creating a full snapshot and left unspecified when creating an incremental or differential snapshot. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>all</strong> – All object types and data contained in the given <a className="reference external" href="/content/concepts/schemas/">schema(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>catalog</strong> – Data Lake catalog that is external to the database.</p>
                        </li>

                        <li>
                          <p><strong>context</strong> – <a className="reference external" href="/content/sql-gpt/concepts/#sql-gpt-context">Context(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – <a className="reference external" href="/content/concepts/credentials/">Credential(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>datasink</strong> – <a className="reference external" href="/content/concepts/data_sinks/">Data sink(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>datasource</strong> – <a className="reference external" href="/content/concepts/data_sources/">Data source(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>function\_environment</strong> – <a className="reference external" href="/content/udf/python/writing/#udf-python-func-env">Python UDF function environment(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>graph</strong> – <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graph(s)</a> definition.</p>
                        </li>

                        <li>
                          <p><strong>monitor</strong> – <a className="reference external" href="/content/concepts/table_monitors/">Table monitor(s)</a> / <a className="reference external" href="/content/sql/ddl/#create-stream">SQL stream(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>resource\_group</strong> – <a className="reference external" href="/content/rm/concepts/#resource-groups">Resource group(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>role</strong> – <a className="reference external" href="/content/security/sec_concepts/#roles">Role(s)</a>, role members (roles or users, recursively), and associated permissions.</p>
                        </li>

                        <li>
                          <p><strong>stored\_procedure</strong> – <a className="reference external" href="/content/sql/procedure/">SQL procedure(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>table</strong> – <a className="reference external" href="/content/concepts/tables/">Table(s)</a> and <a className="reference external" href="/content/sql/ddl/#create-view">SQL view(s)</a>. Active subscriptions on any tables to be backed up will be temporarily suspended while the backup is active.</p>
                        </li>

                        <li>
                          <p><strong>user</strong> – <a className="reference external" href="/content/security/sec_concepts/#security-concepts-users">User(s)</a> (internal and external) and associated permissions.</p>
                        </li>

                        <li>
                          <p><strong>user\_defined\_function</strong> – <a className="reference external" href="/content/udf_overview">UDF(s)</a>.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">datasink\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Data sink through which the backup will be stored.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>checksum</strong> – Whether or not to calculate checksums for backup files. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>comment</strong> – Comments to store with this backup.</p>
                        </li>

                        <li>
                          <p><strong>ddl\_only</strong> – Whether or not, for tables, to only backup DDL and not table data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – For tables, only back up DDL, not data.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – For tables, back up DDL and data.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>delete\_intermediate\_backups</strong> – Whether or not to delete any intermediate snapshots when the input parameter <span className="em">backup\_type</span> is set to <span className="em">differential</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>dry\_run</strong> – Whether or not to perform a dry run of a backup operation. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>max\_incremental\_backups\_to\_keep</strong> – Maximum number of incremental snapshots to keep. The default value is ‘-1’.</p>
                        </li>

                        <li>
                          <p><strong>recreate</strong> – Whether or not to replace an existing backup object with a new backup with a full snapshot, if one already exists. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">backup\_name</span>.</p>
                    </div>

                    <div className="dt">backup\_id (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>ID of the snapshot created.</p>
                    </div>

                    <div className="dt">copied\_bytes (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total size of all files copied for this snapshot.</p>
                    </div>

                    <div className="dt">copied\_files (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of files copied for this snapshot.</p>
                    </div>

                    <div className="dt">copied\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records in all files copied for this snapshot.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records that can be restored from this snapshot.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_catalog"> <span className="sig-name descname"><span className="pre">create\_catalog</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_format</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">location</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">credential</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasource</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a catalog, which contains the location and connection information for a deltalake catalog that is external to the database.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the catalog to be created.</p>
                    </div>

                    <div className="dt">table\_format (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Table format (iceberg, hudi, deltalake).</p>
                    </div>

                    <div className="dt">location (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Location of the catalog in ‘http\[s]://\[server\[:port]]]’ format.</p>
                    </div>

                    <div className="dt">type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue).</p>
                    </div>

                    <div className="dt">credential (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the <a className="reference external" href="/content/concepts/credentials">credential</a> object to be used in catalog.</p>
                    </div>

                    <div className="dt">datasource (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Password for the remote system user; may be an empty string.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>access\_delegation</strong> – Use access delegation for object store. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>datasource\_credentials</p>
                            </li>

                            <li>
                              <p>vended\_credentials</p>
                            </li>
                          </ul>

                          <p>The default value is ‘datasource\_credentials’.</p>
                        </li>

                        <li>
                          <p><strong>skip\_validation</strong> – Bypass validation of connection to remote source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_credential"> <span className="sig-name descname"><span className="pre">create\_credential</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">credential\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">identity</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">secret</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Create a new <a className="reference external" href="/content/concepts/credentials/">credential</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the credential to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match an existing credential name.</p>
                    </div>

                    <div className="dt">type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Type of the credential to be created. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>aws\_access\_key</p>
                        </li>

                        <li>
                          <p>aws\_iam\_role</p>
                        </li>

                        <li>
                          <p>azure\_ad</p>
                        </li>

                        <li>
                          <p>azure\_oauth</p>
                        </li>

                        <li>
                          <p>azure\_sas</p>
                        </li>

                        <li>
                          <p>azure\_storage\_key</p>
                        </li>

                        <li>
                          <p>confluent</p>
                        </li>

                        <li>
                          <p>docker</p>
                        </li>

                        <li>
                          <p>gcs\_service\_account\_id</p>
                        </li>

                        <li>
                          <p>gcs\_service\_account\_keys</p>
                        </li>

                        <li>
                          <p>hdfs</p>
                        </li>

                        <li>
                          <p>jdbc</p>
                        </li>

                        <li>
                          <p>kafka</p>
                        </li>

                        <li>
                          <p>nvidia\_api\_key</p>
                        </li>

                        <li>
                          <p>openai\_api\_key</p>
                        </li>

                        <li>
                          <p>rest</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">identity (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>User of the credential to be created.</p>
                    </div>

                    <div className="dt">secret (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Password of the credential to be created.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">credential\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_datasink"> <span className="sig-name descname"><span className="pre">create\_datasink</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">destination</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a <a className="reference external" href="/content/concepts/data_sinks/">data sink</a>, which contains the destination information for a data sink that is external to the database.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data sink to be created.</p>
                    </div>

                    <div className="dt">destination (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Destination for the output data in format ‘storage\_provider\_type://path\[:port]’.</p>
                      <p>Supported storage provider types are ‘azure’, ‘gcs’, ‘hdfs’, ‘http’, ‘https’, ‘jdbc’, ‘kafka’, and ‘s3’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>connection\_timeout</strong> – Timeout in seconds for connecting to this data sink.</p>
                        </li>

                        <li>
                          <p><strong>wait\_timeout</strong> – Timeout in seconds for waiting for a response from this data sink.</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – Name of the <a className="reference external" href="/content/concepts/credentials/">credential</a> object to be used in this data sink.</p>
                        </li>

                        <li>
                          <p><strong>s3\_bucket\_name</strong> – Name of the Amazon S3 bucket to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>s3\_region</strong> – Name of the Amazon S3 region where the given bucket is located.</p>
                        </li>

                        <li>
                          <p><strong>s3\_verify\_ssl</strong> – Whether to verify SSL connections. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Connect with SSL verification.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Connect without verifying the SSL connection; for testing purposes, bypassing TLS errors, self-signed certificates, etc.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>s3\_use\_virtual\_addressing</strong> – Whether to use virtual addressing when referencing the Amazon S3 sink. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The requests URI should be specified in virtual-hosted-style format where the bucket name is part of the domain name in the URL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Use path-style URI for requests.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>s3\_aws\_role\_arn</strong> – Amazon IAM Role ARN which has required S3 permissions that can be assumed for the given S3 IAM user.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_customer\_algorithm</strong> – Customer encryption algorithm used encrypting data.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_customer\_key</strong> – Customer encryption key to encrypt or decrypt data.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_type</strong> – Server side encryption type.</p>
                        </li>

                        <li>
                          <p><strong>s3\_kms\_key\_id</strong> – KMS key.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_kerberos\_keytab</strong> – Kerberos keytab file location for the given HDFS user. This may be a KIFS file.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_delegation\_token</strong> – Delegation token for the given HDFS user.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_use\_kerberos</strong> – Use kerberos authentication for the given HDFS cluster. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>azure\_storage\_account\_name</strong> – Name of the Azure storage account to use as the data sink, this is valid only if tenant\_id is specified.</p>
                        </li>

                        <li>
                          <p><strong>azure\_container\_name</strong> – Name of the Azure storage container to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>azure\_tenant\_id</strong> – Active Directory tenant ID (or directory ID).</p>
                        </li>

                        <li>
                          <p><strong>azure\_sas\_token</strong> – Shared access signature token for Azure storage account to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>azure\_oauth\_token</strong> – Oauth token to access given storage container.</p>
                        </li>

                        <li>
                          <p><strong>azure\_use\_virtual\_addressing</strong> – Whether to use virtual addressing when referencing the Azure source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The requests URI should be specified in virtual-hosted-style format where the bucket name is part of the domain name in the URL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Use path-style URI for requests.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_bucket\_name</strong> – Name of the Google Cloud Storage bucket to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_project\_id</strong> – Name of the Google Cloud project to use as the data sink.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_service\_account\_keys</strong> – Google Cloud service account keys to use for authenticating the data sink.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_driver\_jar\_path</strong> – JDBC driver jar file location.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_driver\_class\_name</strong> – Name of the JDBC driver class.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_topic\_name</strong> – Name of the Kafka topic to publish to if input parameter <span className="em">destination</span> is a Kafka broker.</p>
                        </li>

                        <li>
                          <p><strong>max\_batch\_size</strong> – Maximum number of records per notification message. The default value is ‘1’.</p>
                        </li>

                        <li>
                          <p><strong>max\_message\_size</strong> – Maximum size in bytes of each notification message. The default value is ‘1000000’.</p>
                        </li>

                        <li>
                          <p><strong>json\_format</strong> – The desired format of JSON encoded notifications message. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>flat</strong> – A single record is returned per message.</p>
                            </li>

                            <li>
                              <p><strong>nested</strong> – Records are returned as an array per message.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘flat’.</p>
                        </li>

                        <li>
                          <p><strong>use\_managed\_credentials</strong> – When no credentials are supplied, we use anonymous access by default. If this is set, we will use cloud provider user settings. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>use\_https</strong> – Use HTTPS to connect to datasink if true, otherwise use HTTP. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>skip\_validation</strong> – Bypass validation of connection to this data sink. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_datasource"> <span className="sig-name descname"><span className="pre">create\_datasource</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">location</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">user\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">password</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a <a className="reference external" href="/content/concepts/data_sources/">data source</a>, which contains the location and connection information for a data store that is external to the database.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data source to be created.</p>
                    </div>

                    <div className="dt">location (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Location of the remote storage in ‘storage\_provider\_type://\[storage\_path\[:storage\_port]]’ format.</p>
                      <p>Supported storage provider types are ‘azure’, ‘gcs’, ‘hdfs’, ‘jdbc’, ‘kafka’, ‘confluent’, and ‘s3’.</p>
                    </div>

                    <div className="dt">user\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the remote system user; may be an empty string.</p>
                    </div>

                    <div className="dt">password (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Password for the remote system user; may be an empty string.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>skip\_validation</strong> – Bypass validation of connection to remote source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>connection\_timeout</strong> – Timeout in seconds for connecting to this storage provider.</p>
                        </li>

                        <li>
                          <p><strong>wait\_timeout</strong> – Timeout in seconds for reading from this storage provider.</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – Name of the <a className="reference external" href="/content/concepts/credentials">credential</a> object to be used in data source.</p>
                        </li>

                        <li>
                          <p><strong>s3\_bucket\_name</strong> – Name of the Amazon S3 bucket to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>s3\_region</strong> – Name of the Amazon S3 region where the given bucket is located.</p>
                        </li>

                        <li>
                          <p><strong>s3\_verify\_ssl</strong> – Whether to verify SSL connections. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Connect with SSL verification.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Connect without verifying the SSL connection; for testing purposes, bypassing TLS errors, self-signed certificates, etc.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>s3\_use\_virtual\_addressing</strong> – Whether to use virtual addressing when referencing the Amazon S3 source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The requests URI should be specified in virtual-hosted-style format where the bucket name is part of the domain name in the URL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Use path-style URI for requests.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>s3\_aws\_role\_arn</strong> – Amazon IAM Role ARN which has required S3 permissions that can be assumed for the given S3 IAM user.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_customer\_algorithm</strong> – Customer encryption algorithm used encrypting data.</p>
                        </li>

                        <li>
                          <p><strong>s3\_encryption\_customer\_key</strong> – Customer encryption key to encrypt or decrypt data.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_kerberos\_keytab</strong> – Kerberos keytab file location for the given HDFS user. This may be a KIFS file.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_delegation\_token</strong> – Delegation token for the given HDFS user.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_use\_kerberos</strong> – Use kerberos authentication for the given HDFS cluster. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>azure\_storage\_account\_name</strong> – Name of the Azure storage account to use as the data source, this is valid only if tenant\_id is specified.</p>
                        </li>

                        <li>
                          <p><strong>azure\_container\_name</strong> – Name of the Azure storage container to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>azure\_tenant\_id</strong> – Active Directory tenant ID (or directory ID).</p>
                        </li>

                        <li>
                          <p><strong>azure\_sas\_token</strong> – Shared access signature token for Azure storage account to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>azure\_oauth\_token</strong> – OAuth token to access given storage container.</p>
                        </li>

                        <li>
                          <p><strong>azure\_use\_virtual\_addressing</strong> – Whether to use virtual addressing when referencing the Azure source. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The requests URI should be specified in virtual-hosted-style format where the bucket name is part of the domain name in the URL.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Use path-style URI for requests.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_bucket\_name</strong> – Name of the Google Cloud Storage bucket to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_project\_id</strong> – Name of the Google Cloud project to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>gcs\_service\_account\_keys</strong> – Google Cloud service account keys to use for authenticating the data source.</p>
                        </li>

                        <li>
                          <p><strong>is\_stream</strong> – To load from Azure/GCS/S3 as a stream continuously. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_topic\_name</strong> – Name of the Kafka topic to use as the data source.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_driver\_jar\_path</strong> – JDBC driver jar file location. This may be a KIFS file.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_driver\_class\_name</strong> – Name of the JDBC driver class.</p>
                        </li>

                        <li>
                          <p><strong>anonymous</strong> – Use anonymous connection to storage provider–DEPRECATED: this is now the default. Specify use\_managed\_credentials for non-anonymous connection. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>use\_managed\_credentials</strong> – When no credentials are supplied, we use anonymous access by default. If this is set, we will use cloud provider user settings. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>use\_https</strong> – Use HTTPS to connect to datasource if true, otherwise use HTTP. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_location</strong> – Location of Confluent Schema Registry in ‘\[storage\_path\[:storage\_port]]’ format.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_credential</strong> – Confluent Schema Registry <a className="reference external" href="/content/concepts/credentials">credential</a> object name.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_port</strong> – Confluent Schema Registry port (optional).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_retries</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_timeout</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_directory"> <span className="sig-name descname"><span className="pre">create\_directory</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">directory\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new directory in <a className="reference external" href="/content/tools/kifs/">KiFS</a>. The new directory serves as a location in which the user can upload files using <a className="reference internal" href="#gpudb.GPUdb.upload_files" title="gpudb.GPUdb.upload_files"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.upload\_files()</span></code></a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the directory in KiFS to be created.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_home\_directory</strong> – When set, a home directory is created for the user name provided in the value. The input parameter <span className="em">directory\_name</span> must be an empty string in this case. The user must exist.</p>
                        </li>

                        <li>
                          <p><strong>data\_limit</strong> – The maximum capacity, in bytes, to apply to the created directory. Set to -1 to indicate no upper limit. If empty, the system default limit is applied.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_exists</strong> – If <span className="em">true</span>, does not return an error if the directory already exists. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">directory\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_environment"> <span className="sig-name descname"><span className="pre">create\_environment</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">environment\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new environment which can be used by <a className="reference external" href="/content/concepts/udf/">user-defined functions</a> (UDF).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">environment\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the environment to be created.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">environment\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">environment\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_graph"> <span className="sig-name descname"><span className="pre">create\_graph</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">directed\_graph</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">nodes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">edges</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">weights</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">restrictions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new graph network using given nodes, edges, weights, and restrictions.</p>
              <p>IMPORTANT: It’s highly recommended that you review the <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graphs and Solvers</a> concepts documentation, the <a className="reference external" href="/content/guides/graph_rest_guide/">Graph REST Tutorial</a>, and/or some <a className="reference external" href="/content/guides/tags/graph">graph examples</a> before using this endpoint.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph resource to generate.</p>
                    </div>

                    <div className="dt">directed\_graph (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If set to <span className="em">true</span>, the graph will be directed. If set to <span className="em">false</span>, the graph will not be directed. Consult <a className="reference external" href="/content/graph_solver/network_graph_solver/#directed-graphs">Directed Graphs</a> for more details. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>

                      <p>The default value is True.</p>
                    </div>

                    <div className="dt">nodes (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Nodes represent fundamental topological units of a graph. Nodes must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS NODE\_ID’, expressions, e.g., ‘ST\_MAKEPOINT(column1, column2) AS NODE\_WKTPOINT’, or constant values, e.g., ‘{"{"}9, 10, 11{"}"} AS NODE\_ID’. If using constant values in an identifier combination, the number of values specified must match across the combination. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">edges (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Edges represent the required fundamental topological unit of a graph that typically connect nodes. Edges must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS EDGE\_ID’, expressions, e.g., ‘SUBSTR(column, 1, 6) AS EDGE\_NODE1\_NAME’, or constant values, e.g., “{"{"}‘family’, ‘coworker’{"}"} AS EDGE\_LABEL”. If using constant values in an identifier combination, the number of values specified must match across the combination. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">weights (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Weights represent a method of informing the graph solver of the cost of including a given edge in a solution. Weights must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS WEIGHTS\_EDGE\_ID’, expressions, e.g., ‘ST\_LENGTH(wkt) AS WEIGHTS\_VALUESPECIFIED’, or constant values, e.g., ‘{"{"}4, 15{"}"} AS WEIGHTS\_VALUESPECIFIED’. If using constant values in an identifier combination, the number of values specified must match across the combination. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">restrictions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Restrictions represent a method of informing the graph solver which edges and/or nodes should be ignored for the solution. Restrictions must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS RESTRICTIONS\_EDGE\_ID’, expressions, e.g., ‘column/2 AS RESTRICTIONS\_VALUECOMPARED’, or constant values, e.g., ‘{"{"}0, 0, 0, 1{"}"} AS RESTRICTIONS\_ONOFFCOMPARED’. If using constant values in an identifier combination, the number of values specified must match across the combination. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>merge\_tolerance</strong> – If node geospatial positions are input (e.g., WKTPOINT, X, Y), determines the minimum separation allowed between unique nodes. If nodes are within the tolerance of each other, they will be merged as a single node. The default value is ‘1.0E-5’.</p>
                        </li>

                        <li>
                          <p><strong>recreate</strong> – If set to <span className="em">true</span> and the graph (using input parameter <span className="em">graph\_name</span>) already exists, the graph is deleted and recreated. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>save\_persist</strong> – If set to <span className="em">true</span>, the graph will be saved in the persist directory (see the <a className="reference external" href="/content/config/#config-main-persistence">config reference</a> for more information). If set to <span className="em">false</span>, the graph will be removed when the graph server is shutdown. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>add\_table\_monitor</strong> – Adds a table monitor to every table used in the creation of the graph; this table monitor will trigger the graph to update dynamically upon inserts to the source table(s). Note that upon database restart, if <span className="em">save\_persist</span> is also set to <span className="em">true</span>, the graph will be fully reconstructed and the table monitors will be reattached. For more details on table monitors, see <a className="reference internal" href="#gpudb.GPUdb.create_table_monitor" title="gpudb.GPUdb.create_table_monitor"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table\_monitor()</span></code></a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>graph\_table</strong> – If specified, the created graph is also created as a table with the given name, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. The table will have the following identifier columns: ‘EDGE\_ID’, ‘EDGE\_NODE1\_ID’, ‘EDGE\_NODE2\_ID’. If left blank, no table is created. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>add\_turns</strong> – Adds dummy ‘pillowed’ edges around intersection nodes where there are more than three edges so that additional weight penalties can be imposed by the solve endpoints. (increases the total number of edges). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>is\_partitioned</strong> – Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>server\_id</strong> – Indicates which graph server(s) to send the request to. Default is to send to the server with the most available memory.</p>
                        </li>

                        <li>
                          <p><strong>use\_rtree</strong> – Use an range tree structure to accelerate and improve the accuracy of snapping, especially to edges. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>label\_delimiter</strong> – If provided the label string will be split according to this delimiter and each sub-string will be applied as a separate label onto the specified edge. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>allow\_multiple\_edges</strong> – Multigraph choice; allowing multiple edges with the same node pairs if set to true, otherwise, new edges with existing same node pairs will not be inserted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>embedding\_table</strong> – If table exists (should be generated by the match/graph match\_embedding solver), the vector embeddings for the newly inserted nodes will be appended into this table. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a successful creation on all servers.</p>
                    </div>

                    <div className="dt">num\_nodes (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of nodes created.</p>
                    </div>

                    <div className="dt">num\_edges (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of edges created.</p>
                    </div>

                    <div className="dt">edges\_ids (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>\[Deprecated] Edges given as pairs of node indices. Only populated if export\_create\_results internal option is set to true.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_job"> <span className="sig-name descname"><span className="pre">create\_job</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">endpoint</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">request\_encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">data</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">data\_str</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Create a job which will run asynchronously. The response returns a job ID, which can be used to query the status and result of the job. The status and the result of the job upon completion can be requested by <a className="reference internal" href="#gpudb.GPUdb.get_job" title="gpudb.GPUdb.get_job"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.get\_job()</span></code></a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">endpoint (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Indicates which endpoint to execute, e.g. ‘/alter/table’.</p>
                    </div>

                    <div className="dt">request\_encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The encoding of the request payload for the job. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>

                        <li>
                          <p>snappy</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">data (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>Binary-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated in input parameter <span className="em">endpoint</span>. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then input parameter <span className="em">request\_encoding</span> must be <span className="em">binary</span> or <span className="em">snappy</span>.</p>
                    </div>

                    <div className="dt">data\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>JSON-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated in input parameter <span className="em">endpoint</span>. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then input parameter <span className="em">request\_encoding</span> must be <span className="em">json</span>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>job\_tag</strong> – Tag to use for submitted job. The same tag could be used on backup cluster to retrieve response for the job. Tags can use letter, numbers, ‘\_’ and ‘-‘.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">job\_id (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>An identifier for the job created by this call.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>job\_tag</strong> – The job tag specified by the user or if unspecified by user, a unique identifier generated internally.</p>
                        </li>

                        <li>
                          <p><strong>query\_id</strong> – A unique identifier for this job generated for use in tracing telemetry data.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_join_table"> <span className="sig-name descname"><span className="pre">create\_join\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">join\_table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">expressions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a table that is the result of a SQL JOIN.</p>
              <p>For join details and examples see: <a className="reference external" href="/content/concepts/joins/">Joins</a>. For limitations, see <a className="reference external" href="/content/concepts/joins/#limitations-cautions">Join Limitations and Cautions</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">join\_table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the join table to be created, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>.</p>
                    </div>

                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The list of table names composing the join, each in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Corresponds to a SQL statement FROM clause. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of member table columns or column expressions to be included in the join. Columns can be prefixed with ‘table\_id.column\_name’, where ‘table\_id’ is the table name or alias. Columns can be aliased via the syntax ‘column\_name as alias’. Wild cards ‘\*’ can be used to include all columns across member tables or ‘table\_id.\*’ for all of a single table’s columns. Columns and column expressions composing the join must be uniquely named or aliased–therefore, the ‘\*’ wild card cannot be used if column names aren’t unique across all tables. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">expressions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>An optional list of expressions to combine and filter the joined tables. Corresponds to a SQL statement WHERE clause. For details see: <a className="reference external" href="/content/concepts/expressions/">expressions</a>. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">join\_table\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_join\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the join as part of input parameter <span className="em">join\_table\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the join. If the schema is non-existent, it will be automatically created. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>max\_query\_dimensions</strong> – No longer used.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the join table specified in input parameter <span className="em">join\_table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – View this projection is part of. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>no\_count</strong> – Return a count of 0 for the join table for logging and for <a className="reference internal" href="#gpudb.GPUdb.show_table" title="gpudb.GPUdb.show_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_table()</span></code></a>; optimization needed for large overlapped equi-join stencils. The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Maximum number of records per joined-chunk for this table. Defaults to the gpudb.conf file chunk size.</p>
                        </li>

                        <li>
                          <p><strong>enable\_virtual\_chunking</strong> – Collect chunks with accumulated size less than chunk\_size into a single chunk. The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>max\_virtual\_chunk\_size</strong> – Maximum number of records per virtual-chunk. When set, enables virtual chunking. Defaults to chunk\_size if virtual chunking otherwise enabled.</p>
                        </li>

                        <li>
                          <p><strong>min\_virtual\_chunk\_size</strong> – Minimum number of records per virtual-chunk. When set, enables virtual chunking. Defaults to chunk\_size if virtual chunking otherwise enabled.</p>
                        </li>

                        <li>
                          <p><strong>enable\_sparse\_virtual\_chunking</strong> – Materialize virtual chunks with only non-deleted values. The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_equi\_join\_lazy\_result\_store</strong> – Allow using the lazy result store to cache computation of one side of a multichunk equi-join. Reduces computation but also reduces parallelism to the number of chunks on the other side of the equi-join.</p>
                        </li>

                        <li>
                          <p><strong>enable\_predicate\_equi\_join\_lazy\_result\_store</strong> – Allow using the lazy result store to cache computation of one side of a multichunk predicate-equi-join. Reduces computation but also reduces parallelism to the number of chunks on the other side of the equi-join.</p>
                        </li>

                        <li>
                          <p><strong>enable\_pk\_equi\_join</strong> – Use equi-join to do primary key joins rather than using primary key index.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">join\_table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">join\_table\_name</span>.</p>
                    </div>

                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records in the join table filtered by the given select expression.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_join\_table\_name</strong> – The fully qualified name of the join table (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_materialized_view"> <span className="sig-name descname"><span className="pre">create\_materialized\_view</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Initiates the process of creating a materialized view, reserving the view’s name to prevent other views or tables from being created with that name.</p>
              <p>For materialized view details and examples, see <a className="reference external" href="/content/concepts/materialized_views/">Materialized Views</a>.</p>
              <p>The response contains output parameter <span className="em">view\_id</span>, which is used to tag each subsequent operation (projection, union, aggregation, filter, or join) that will compose the view.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to be created that is the top-level table of the materialized view, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the materialized view as part of input parameter <span className="em">table\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the newly created view. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>execute\_as</strong> – User name to use to run the refresh job.</p>
                        </li>

                        <li>
                          <p><strong>build\_materialized\_view\_policy</strong> – Sets startup materialized view rebuild scheme. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>always</strong> – Rebuild as many materialized views as possible before accepting requests.</p>
                            </li>

                            <li>
                              <p><strong>lazy</strong> – Rebuild the necessary materialized views at start, and load the remainder lazily.</p>
                            </li>

                            <li>
                              <p><strong>on\_demand</strong> – Rebuild materialized views as requests use them.</p>
                            </li>

                            <li>
                              <p><strong>system</strong> – Rebuild materialized views using the system-configured default.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘system’.</p>
                        </li>

                        <li>
                          <p><strong>persist</strong> – If <span className="em">true</span>, then the materialized view specified in input parameter <span className="em">table\_name</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the materialized view will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_mv\_input\_wrappers</strong> – If <span className="em">true</span>, each base table the view reads is accessed through a wrapper view so an in-progress out-of-place update cannot make a record momentarily disappear from the view, and a long refresh does not block updates to the base tables. Overrides the {"{"}gaia.enable\_mv\_input\_wrappers{"}"} configuration default when set. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_span</strong> – Sets the future time-offset(in seconds) at which periodic refresh stops.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_stop\_time</strong> – When <span className="em">refresh\_method</span> is <span className="em">periodic</span>, specifies the time at which a periodic refresh is stopped. Value is a datetime string with format ‘YYYY-MM-DD HH:MM:SS’.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_method</strong> – Method by which the join can be refreshed when the data in underlying member tables have changed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>manual</strong> – Refresh only occurs when manually requested by calling <a className="reference internal" href="#gpudb.GPUdb.alter_table" title="gpudb.GPUdb.alter_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.alter\_table()</span></code></a> with an ‘action’ of ‘refresh’.</p>
                            </li>

                            <li>
                              <p><strong>on\_query</strong> – Refresh any time the view is queried.</p>
                            </li>

                            <li>
                              <p><strong>on\_change</strong> – If possible, incrementally refresh (refresh just those records added) whenever an insert, update, delete or refresh of input table is done. A full refresh is done if an incremental refresh is not possible.</p>
                            </li>

                            <li>
                              <p><strong>periodic</strong> – Refresh table periodically at rate specified by <span className="em">refresh\_period</span>.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘manual’.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_period</strong> – When <span className="em">refresh\_method</span> is <span className="em">periodic</span>, specifies the period in seconds at which refresh occurs.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_start\_time</strong> – When <span className="em">refresh\_method</span> is <span className="em">periodic</span>, specifies the first time at which a refresh is to be done. Value is a datetime string with format ‘YYYY-MM-DD HH:MM:SS’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">view\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of view\_id.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_table\_name</strong> – The fully qualified name of the result table (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_proc"> <span className="sig-name descname"><span className="pre">create\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">proc\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">execution\_mode</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'distributed'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">files</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">command</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">args</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates an instance (proc) of the <a className="reference external" href="/content/concepts/udf/">user-defined functions</a> (UDF) specified by the given command, options, and files, and makes it available for execution.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the proc to be created. Must not be the name of a currently existing proc.</p>
                    </div>

                    <div className="dt">execution\_mode (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The execution mode of the proc. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>distributed</strong> – Input table data will be divided into data segments that are distributed across all nodes in the cluster, and the proc command will be invoked once per data segment in parallel. Output table data from each invocation will be saved to the same node as the corresponding input data.</p>
                        </li>

                        <li>
                          <p><strong>nondistributed</strong> – The proc command will be invoked only once per execution, and will not have direct access to any tables named as input or output table parameters in the call to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a>. It will, however, be able to access the database using native API calls.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘distributed’.</p>
                    </div>

                    <div className="dt">files (<span className="em">dict of str to bytes</span>) –</div>

                    <div className="dd">
                      <p>A map of the files that make up the proc. The keys of the map are file names, and the values are the binary contents of the files. The file names may include subdirectory names (e.g. ‘subdir/file’) but must not resolve to a directory above the root for the proc.</p>
                      <p>Files may be loaded from existing files in KiFS. Those file names should be prefixed with the uri kifs\:// and the values in the map should be empty. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">command (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The command (excluding arguments) that will be invoked when the proc is executed. It will be invoked from the directory containing the proc input parameter <span className="em">files</span> and may be any command that can be resolved from that directory. It need not refer to a file actually in that directory; for example, it could be ‘java’ if the proc is a Java application; however, any necessary external programs must be preinstalled on every database node. If the command refers to a file in that directory, it must be preceded with ‘./’ as per Linux convention. If not specified, and exactly one file is provided in input parameter <span className="em">files</span>, that file will be invoked. The default value is ‘’.</p>
                    </div>

                    <div className="dt">args (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>An array of command-line arguments that will be passed to input parameter <span className="em">command</span> when the proc is executed. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>max\_concurrency\_per\_node</strong> – The maximum number of concurrent instances of the proc that will be executed per node. 0 allows unlimited concurrency. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>set\_environment</strong> – A python environment to use when executing the proc. Must be an existing environment, else an error will be returned. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">proc\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_projection"> <span className="sig-name descname"><span className="pre">create\_projection</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">projection\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new <a className="reference external" href="/content/concepts/projections/">projection</a> of an existing table. A projection represents a subset of the columns (potentially including derived columns) of a table.</p>
              <p>For projection details and examples, see <a className="reference external" href="/content/concepts/projections/">Projections</a>. For limitations, see <a className="reference external" href="/content/concepts/projections/#limitations-and-cautions">Projection Limitations and Cautions</a>.</p>
              <p><a className="reference external" href="/content/concepts/window/">Window functions</a>, which can perform operations like moving averages, are available through this endpoint as well as <a className="reference internal" href="#gpudb.GPUdb.get_records_by_column" title="gpudb.GPUdb.get_records_by_column"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.get\_records\_by\_column()</span></code></a>.</p>
              <p>A projection can be created with a different <a className="reference external" href="/content/concepts/tables/#shard-keys">shard key</a> than the source table. By specifying <span className="em">shard\_key</span>, the projection will be sharded according to the specified columns, regardless of how the source table is sharded. The source table can even be unsharded or replicated.</p>
              <p>If input parameter <span className="em">table\_name</span> is empty, selection is performed against a single-row virtual table. This can be useful in executing temporal (<a className="reference external" href="/content/concepts/expressions/#date-time-functions">NOW()</a>), identity (<a className="reference external" href="/content/concepts/expressions/#user-security-functions">USER()</a>), or constant-based functions (<a className="reference external" href="/content/concepts/expressions/#scalar-functions">GEODIST(-77.11, 38.88, -71.06, 42.36)</a>).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the existing table on which the projection is to be applied, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. An empty table name creates a projection from a single-row virtual table, where columns specified should be constants or constant expressions.</p>
                    </div>

                    <div className="dt">projection\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the projection to be created, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of columns from input parameter <span className="em">table\_name</span> to be included in the projection. Can include derived columns. Can be specified as aliased via the syntax ‘column\_name as alias’. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">projection\_name</span>. If <span className="em">persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_projection\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the projection as part of input parameter <span className="em">projection\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the projection. If the schema is non-existent, it will be automatically created. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – An optional filter <a className="reference external" href="/content/concepts/expressions/">expression</a> to be applied to the source table prior to the projection. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>is\_replicated</strong> – If <span className="em">true</span> then the projection will be replicated even if the source table is not. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>offset</strong> – The number of initial results to skip (this can be useful for paging through the results). The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>limit</strong> – The number of records to keep. The default value is ‘-9999’.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by; e.g. ‘timestamp asc, x desc’. The columns specified must be present in input parameter <span className="em">column\_names</span>. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for this projection.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for this projection.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for this projection.</p>
                        </li>

                        <li>
                          <p><strong>create\_indexes</strong> – Comma-separated list of columns on which to create indexes on the projection. The columns specified must be present in input parameter <span className="em">column\_names</span>. If any alias is given for any column name, the alias must be used, rather than the original column name.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the projection specified in input parameter <span className="em">projection\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>shard\_key</strong> – Comma-separated list of the columns to be sharded on; e.g. ‘column1, column2’. The columns specified must be present in input parameter <span className="em">column\_names</span>. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>persist</strong> – If <span className="em">true</span>, then the projection specified in input parameter <span className="em">projection\_name</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the projection will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>preserve\_dict\_encoding</strong> – If <span className="em">true</span>, then columns that were dict encoded in the source table will be dict encoded in the projection. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>retain\_partitions</strong> – Determines whether the created projection will retain the partitioning scheme from the source table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – ID of view of which this projection is a member. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for the projection’s columns.</p>
                        </li>

                        <li>
                          <p><strong>join\_window\_functions</strong> – If set, window functions which require a reshard will be computed separately and joined back together, if the width of the projection is greater than the join\_window\_functions\_threshold. The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>join\_window\_functions\_threshold</strong> – If the projection is greater than this width (in bytes), then window functions which require a reshard will be computed separately and joined back together. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>qualify\_filter</strong> – An optional filter <a className="reference external" href="/content/concepts/expressions/">expression</a> applied to the projection after window function evaluation, equivalent to a SQL QUALIFY clause. May reference window function aliases as well as any other column in the projection. Rows for which the expression evaluates to false (or NULL) are removed from the projection. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">projection\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">projection\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>count</strong> – Number of records in the final table.</p>
                        </li>

                        <li>
                          <p><strong>qualified\_projection\_name</strong> – The fully qualified name of the projection (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_resource_group"> <span className="sig-name descname"><span className="pre">create\_resource\_group</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">tier\_attributes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">ranking</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">adjoining\_resource\_group</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new resource group to facilitate resource management.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the group to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match existing resource group name.</p>
                    </div>

                    <div className="dt">tier\_attributes (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional map containing tier names and their respective attribute group limits. The only valid attribute limit that can be set is max\_memory (in bytes) for the VRAM and RAM tiers.</p>
                      <p>For instance, to set max VRAM capacity to 1GB per rank per GPU and max RAM capacity to 10GB per rank, use: {"{"}‘VRAM’:{"{"}‘max\_memory’:’1000000000’{"}"}, ‘RAM’:{"{"}‘max\_memory’:’10000000000’{"}"}{"}"}. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>max\_memory</strong> – Maximum amount of memory usable at one time, per rank, per GPU, for the VRAM tier; or maximum amount of memory usable at one time, per rank, for the RAM tier.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">ranking (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Indicates the relative ranking among existing resource groups where this new resource group will be placed. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>first</strong> – Make this resource group the new first one in the ordering.</p>
                        </li>

                        <li>
                          <p><strong>last</strong> – Make this resource group the new last one in the ordering.</p>
                        </li>

                        <li>
                          <p><strong>before</strong> – Place this resource group before the one specified by input parameter <span className="em">adjoining\_resource\_group</span> in the ordering.</p>
                        </li>

                        <li>
                          <p><strong>after</strong> – Place this resource group after the one specified by input parameter <span className="em">adjoining\_resource\_group</span> in the ordering.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">adjoining\_resource\_group (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If input parameter <span className="em">ranking</span> is <span className="em">before</span> or <span className="em">after</span>, this field indicates the resource group before or after which the current group will be placed; otherwise, leave blank. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>max\_cpu\_concurrency</strong> – Maximum number of simultaneous threads that will be used to execute a request, per rank, for this group. The minimum allowed value is ‘4’.</p>
                        </li>

                        <li>
                          <p><strong>max\_data</strong> – Maximum amount of data, per rank, in bytes, that can be used by all database objects within this group. Set to -1 to indicate no upper limit. The minimum allowed value is ‘-1’.</p>
                        </li>

                        <li>
                          <p><strong>max\_scheduling\_priority</strong> – Maximum priority of a scheduled task for this group. The minimum allowed value is ‘1’. The maximum allowed value is ‘100’.</p>
                        </li>

                        <li>
                          <p><strong>max\_tier\_priority</strong> – Maximum priority of a tiered object for this group. The minimum allowed value is ‘1’. The maximum allowed value is ‘10’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_role"> <span className="sig-name descname"><span className="pre">create\_role</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new role.</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the role to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>resource\_group</strong> – Name of an existing resource group to associate with this user.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_schema"> <span className="sig-name descname"><span className="pre">create\_schema</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">schema\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a SQL-style <a className="reference external" href="/content/concepts/schemas/">schema</a>. Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the schema to be created. Has the same naming restrictions as <a className="reference external" href="/content/concepts/tables/">tables</a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_exists</strong> – If <span className="em">true</span>, prevents an error from occurring if the schema already exists. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">schema\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_table"> <span className="sig-name descname"><span className="pre">create\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">type\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new table with the given type (definition of columns). The type is specified in input parameter <span className="em">type\_id</span> as either a numerical type ID (as returned by <a className="reference internal" href="#gpudb.GPUdb.create_type" title="gpudb.GPUdb.create_type"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_type()</span></code></a>) or as a list of columns, each specified as a list of the column name, data type, and any column attributes.</p>
              <p>Example of a type definition with some parameters:</p>

              <div className="highlight-default notranslate">
                ```
                [
                    ["id", "int8", "primary_key"],
                    ["dept_id", "int8", "primary_key", "shard_key"],
                    ["manager_id", "int8", "nullable"],
                    ["first_name", "char32"],
                    ["last_name", "char64"],
                    ["salary", "decimal"],
                    ["hire_date", "date"]
                ]
                ```
              </div>

              <p>Each column definition consists of the column name (which should meet the standard <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">column naming criteria</a>), the column’s <a className="reference external" href="/content/concepts/types/#types-chart">specific type</a> (int, long, float, double, string, bytes, or any of the properties map values from <a className="reference internal" href="#gpudb.GPUdb.create_type" title="gpudb.GPUdb.create_type"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_type()</span></code></a>), and any <a className="reference external" href="/content/concepts/types/#types-data-handling">data handling</a>, <a className="reference external" href="/content/concepts/types/#types-data-keys">data key</a>, or <a className="reference external" href="/content/concepts/types/#types-data-replace">data replacement</a> properties.</p>
              <p>A table may optionally be designated to use a <a className="reference external" href="/content/concepts/tables/#replication">replicated</a> distribution scheme, or be assigned: <a className="reference external" href="/content/concepts/tables/#foreign-keys">foreign keys</a> to other tables, a <a className="reference external" href="/content/concepts/tables/#partitioning">partitioning</a> scheme, and/or a <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to be created, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Error for requests with existing table of the same name and type ID may be suppressed by using the <span className="em">no\_error\_if\_exists</span> option.</p>
                    </div>

                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The type for the table, specified as either an existing table’s numerical type ID (as returned by <a className="reference internal" href="#gpudb.GPUdb.create_type" title="gpudb.GPUdb.create_type"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_type()</span></code></a>) or a type definition (as described above).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_exists</strong> – If <span className="em">true</span>, prevents an error from occurring if the table already exists and is of the given type. If a table with the same ID but a different type exists, it is still an error. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">table\_name</span>. If <span className="em">is\_result\_table</span> is <span className="em">true</span>, then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema as part of input parameter <span className="em">table\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the newly created table. If the schema is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>is\_collection</strong> – \[DEPRECATED–please use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create a schema instead] Indicates whether to create a schema instead of a table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>is\_replicated</strong> – Affects the <a className="reference external" href="/content/concepts/tables/#distribution">distribution scheme</a> for the table’s data. If <span className="em">true</span> and the given type has no explicit <a className="reference external" href="/content/concepts/tables/#shard-key">shard key</a> defined, the table will be <a className="reference external" href="/content/concepts/tables/#replication">replicated</a>. If <span className="em">false</span>, the table will be <a className="reference external" href="/content/concepts/tables/#sharding">sharded</a> according to the shard key specified in the given input parameter <span className="em">type\_id</span>, or <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly sharded</a>, if no shard key is specified. Note that a type containing a shard key cannot be used to create a replicated table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_keys</strong> – Semicolon-separated list of <a className="reference external" href="/content/concepts/tables/#foreign-keys">foreign keys</a>, of the format ‘(source\_column\_name \[, …]) references target\_table\_name(primary\_key\_column\_name \[, …]) \[as foreign\_key\_name]’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_shard\_key</strong> – Foreign shard key of the format ‘source\_column references shard\_by\_column from target\_table(primary\_key\_column)’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>is\_result\_table</strong> – Indicates whether the table is a <a className="reference external" href="/content/concepts/tables_memory_only/">memory-only table</a>. A result table cannot contain columns with text\_search <a className="reference external" href="/content/concepts/types/#data-handling">data-handling</a>, and it will not be retained if the server is restarted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for this table’s columns.</p>
                        </li>

                        <li>
                          <p><strong>load\_vectors\_policy</strong> – Set startup data loading scheme for the table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>always</strong> – Load as much vector data as possible into memory before accepting requests.</p>
                            </li>

                            <li>
                              <p><strong>lazy</strong> – Load the necessary vector data at start, and load the remainder lazily.</p>
                            </li>

                            <li>
                              <p><strong>on\_demand</strong> – Load vector data as requests use it.</p>
                            </li>

                            <li>
                              <p><strong>system</strong> – Load vector data using the system-configured default.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘system’.</p>
                        </li>

                        <li>
                          <p><strong>build\_pk\_index\_policy</strong> – Set startup primary-key index generation scheme for the table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>always</strong> – Generate as much primary key index data as possible before accepting requests.</p>
                            </li>

                            <li>
                              <p><strong>lazy</strong> – Generate the necessary primary key index data at start, and load the remainder lazily.</p>
                            </li>

                            <li>
                              <p><strong>on\_demand</strong> – Generate primary key index data as requests use it.</p>
                            </li>

                            <li>
                              <p><strong>system</strong> – Generate primary key index data using the system-configured default.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘system’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">type\_id</span>.</p>
                    </div>

                    <div className="dt">is\_collection (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>\[DEPRECATED–this will always return false] Indicates if the created entity is a schema.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_table\_name</strong> – The fully qualified name of the new table (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_table_external"> <span className="sig-name descname"><span className="pre">create\_table\_external</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">filepaths</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">modify\_columns</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">create\_table\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new <a className="reference external" href="/content/concepts/external_tables/">external table</a>, which is a local database object whose source data is located externally to the database. The source data can be located either in <a className="reference external" href="/content/tools/kifs/">KiFS</a>; on the cluster, accessible to the database; or remotely, accessible via a pre-defined external <a className="reference external" href="/content/concepts/data_sources/">data source</a>.</p>
              <p>The external table can have its structure defined explicitly, via input parameter <span className="em">create\_table\_options</span>, which contains many of the options from <a className="reference internal" href="#gpudb.GPUdb.create_table" title="gpudb.GPUdb.create_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table()</span></code></a>; or defined implicitly, inferred from the source data.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to be created, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>.</p>
                    </div>

                    <div className="dt">filepaths (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of file paths from which data will be sourced;</p>
                      <p>For paths in <a className="reference external" href="/content/tools/kifs/">KiFS</a>, use the URI prefix of kifs\:// followed by the path to a file or directory. File matching by prefix is supported, e.g. kifs\://dir/file would match dir/file\_1 and dir/file\_2. When prefix matching is used, the path must start with a full, valid KiFS directory name.</p>
                      <p>If an external data source is specified in <span className="em">datasource\_name</span>, these file paths must resolve to accessible files at that data source location. Prefix matching is supported. If the data source is hdfs, prefixes must be aligned with directories, i.e. partial file names will not match.</p>
                      <p>If no data source is specified, the files are assumed to be local to the database and must all be accessible to the gpudb user, residing on the path (or relative to the path) specified by the external files directory in the Kinetica <a className="reference external" href="/content/config/#config-main-external-files">configuration file</a>. Wildcards (\*) can be used to specify a group of files. Prefix matching is supported, the prefixes must be aligned with directories.</p>
                      <p>If the first path ends in .tsv, the text delimiter will be defaulted to a tab character. If the first path ends in .psv, the text delimiter will be defaulted to a pipe character (|). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">modify\_columns (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Not implemented yet. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">create\_table\_options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Options from <a className="reference internal" href="#gpudb.GPUdb.create_table" title="gpudb.GPUdb.create_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table()</span></code></a>, allowing the structure of the table to be defined independently of the data source. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>type\_id</strong> – ID of a currently registered <a className="reference external" href="/content/concepts/types/">type</a>.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_exists</strong> – If <span className="em">true</span>, prevents an error from occurring if the table already exists and is of the given type. If a table with the same name but a different type exists, it is still an error. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>is\_replicated</strong> – Affects the <a className="reference external" href="/content/concepts/tables/#distribution">distribution scheme</a> for the table’s data. If <span className="em">true</span> and the given table has no explicit <a className="reference external" href="/content/concepts/tables/#shard-key">shard key</a> defined, the table will be <a className="reference external" href="/content/concepts/tables/#replication">replicated</a>. If <span className="em">false</span>, the table will be <a className="reference external" href="/content/concepts/tables/#sharding">sharded</a> according to the shard key specified in the given <span className="em">type\_id</span>, or <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly sharded</a>, if no shard key is specified. Note that a type containing a shard key cannot be used to create a replicated table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_keys</strong> – Semicolon-separated list of <a className="reference external" href="/content/concepts/tables/#foreign-keys">foreign keys</a>, of the format ‘(source\_column\_name \[, …]) references target\_table\_name(primary\_key\_column\_name \[, …]) \[as foreign\_key\_name]’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_shard\_key</strong> – Foreign shard key of the format ‘source\_column references shard\_by\_column from target\_table(primary\_key\_column)’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently, only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>is\_result\_table</strong> – Indicates whether the table is a <a className="reference external" href="/content/concepts/tables_memory_only/">memory-only table</a>. A result table cannot contain columns with text\_search <a className="reference external" href="/content/concepts/types/#data-handling">data-handling</a>, and it will not be retained if the server is restarted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for this table’s columns.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>bad\_record\_table\_name</strong> – Name of a table to which records that were rejected are written. The bad-record-table has the following columns: line\_number (long), line\_rejected (string), error\_message (string). When <span className="em">error\_handling</span> is <span className="em">abort</span>, bad records table is not populated.</p>
                        </li>

                        <li>
                          <p><strong>bad\_record\_table\_limit</strong> – A positive integer indicating the maximum number of records that can be written to the bad-record-table. The default value is ‘10000’.</p>
                        </li>

                        <li>
                          <p><strong>bad\_record\_table\_limit\_per\_input</strong> – For subscriptions, a positive integer indicating the maximum number of records that can be written to the bad-record-table per file/payload. Default value will be <span className="em">bad\_record\_table\_limit</span> and total size of the table per rank is limited to <span className="em">bad\_record\_table\_limit</span>.</p>
                        </li>

                        <li>
                          <p><strong>batch\_size</strong> – Number of records to insert per batch when inserting data. The default value is ‘50000’.</p>
                        </li>

                        <li>
                          <p><strong>column\_formats</strong> – For each target column specified, applies the column-property-bound format to the source data loaded into that column. Each column format will contain a mapping of one or more of its column properties to an appropriate format for each property. Currently supported column properties include date, time, and datetime. The parameter value must be formatted as a JSON string of maps of column names to maps of column properties to their corresponding column formats, e.g., ‘{"{"} “order\_date” : {"{"} “date” : “%Y.%m.%d” {"}"}, “order\_time” : {"{"} “time” : “%H:%M:%S” {"}"} {"}"}’.</p>
                          <p>See <span className="em">default\_column\_formats</span> for valid format syntax.</p>
                        </li>

                        <li>
                          <p><strong>columns\_to\_load</strong> – Specifies a comma-delimited list of columns from the source data to load. If more than one file is being loaded, this list applies to all files.</p>
                          <p>Column numbers can be specified discretely or as a range. For example, a value of ‘5,7,1..3’ will insert values from the fifth column in the source data into the first column in the target table, from the seventh column in the source data into the second column in the target table, and from the first through third columns in the source data into the third through fifth columns in the target table.</p>
                          <p>If the source data contains a header, column names matching the file header names may be provided instead of column numbers. If the target table doesn’t exist, the table will be created with the columns in this order. If the target table does exist with columns in a different order than the source data, this list can be used to match the order of the target table. For example, a value of ‘C, B, A’ will create a three column table with column C, followed by column B, followed by column A; or will insert those fields in that order into a table created with columns in that order. If the target table exists, the column names must match the source data field names for a name-mapping to be successful.</p>
                          <p>Mutually exclusive with <span className="em">columns\_to\_skip</span>.</p>
                        </li>

                        <li>
                          <p><strong>columns\_to\_skip</strong> – Specifies a comma-delimited list of columns from the source data to skip. Mutually exclusive with <span className="em">columns\_to\_load</span>.</p>
                        </li>

                        <li>
                          <p><strong>compression\_type</strong> – Source data compression type. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – No compression.</p>
                            </li>

                            <li>
                              <p><strong>auto</strong> – Auto detect compression type.</p>
                            </li>

                            <li>
                              <p><strong>gzip</strong> – gzip file compression.</p>
                            </li>

                            <li>
                              <p><strong>bzip2</strong> – bzip2 file compression.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘auto’.</p>
                        </li>

                        <li>
                          <p><strong>datasource\_name</strong> – Name of an existing external data source from which data file(s) specified in input parameter <span className="em">filepaths</span> will be loaded.</p>
                        </li>

                        <li>
                          <p><strong>default\_column\_formats</strong> – Specifies the default format to be applied to source data loaded into columns with the corresponding column property. Currently supported column properties include date, time, and datetime. This default column-property-bound format can be overridden by specifying a column property and format for a given target column in <span className="em">column\_formats</span>. For each specified annotation, the format will apply to all columns with that annotation unless a custom <span className="em">column\_formats</span> for that annotation is specified.</p>
                          <p>The parameter value must be formatted as a JSON string that is a map of column properties to their respective column formats, e.g., ‘{"{"} “date” : “%Y.%m.%d”, “time” : “%H:%M:%S” {"}"}’. Column formats are specified as a string of control characters and plain text. The supported control characters are ‘Y’, ‘m’, ‘d’, ‘H’, ‘M’, ‘S’, and ‘s’, which follow the Linux ‘strptime()’ specification, as well as ‘s’, which specifies seconds and fractional seconds (though the fractional component will be truncated past milliseconds).</p>
                          <p>Formats for the ‘date’ annotation must include the ‘Y’, ‘m’, and ‘d’ control characters. Formats for the ‘time’ annotation must include the ‘H’, ‘M’, and either ‘S’ or ‘s’ (but not both) control characters. Formats for the ‘datetime’ annotation meet both the ‘date’ and ‘time’ control character requirements. For example, ‘{"{"}“datetime” : “%m/%d/%Y %H:%M:%S” {"}"}’ would be used to interpret text as “05/04/2000 12:12:11”.</p>
                        </li>

                        <li>
                          <p><strong>datalake\_catalog</strong> – Name of an existing datalake(iceberg) catalog used in loading files.</p>
                        </li>

                        <li>
                          <p><strong>datalake\_path</strong> – Path of datalake(iceberg) object.</p>
                        </li>

                        <li>
                          <p><strong>datalake\_snapshot</strong> – Snapshot ID of datalake(iceberg) object.</p>
                        </li>

                        <li>
                          <p><strong>error\_handling</strong> – Specifies how errors should be handled upon insertion. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>permissive</strong> – Records with missing columns are populated with nulls if possible; otherwise, the malformed records are skipped.</p>
                            </li>

                            <li>
                              <p><strong>ignore\_bad\_records</strong> – Malformed records are skipped.</p>
                            </li>

                            <li>
                              <p><strong>abort</strong> – Stops current insertion and aborts entire operation when an error is encountered. Primary key collisions are considered abortable errors in this mode.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘abort’.</p>
                        </li>

                        <li>
                          <p><strong>external\_table\_type</strong> – Specifies whether the external table holds a local copy of the external data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>materialized</strong> – Loads a copy of the external data into the database, refreshed on demand.</p>
                            </li>

                            <li>
                              <p><strong>logical</strong> – External data will not be loaded into the database; the data will be retrieved from the source upon servicing each query against the external table.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘materialized’.</p>
                        </li>

                        <li>
                          <p><strong>file\_type</strong> – Specifies the type of the file(s) whose records will be inserted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>avro</strong> – Avro file format.</p>
                            </li>

                            <li>
                              <p><strong>delimited\_text</strong> – Delimited text file format; e.g., CSV, TSV, PSV, etc.</p>
                            </li>

                            <li>
                              <p><strong>gdb</strong> – Esri/GDB file format.</p>
                            </li>

                            <li>
                              <p><strong>json</strong> – JSON file format.</p>
                            </li>

                            <li>
                              <p><strong>parquet</strong> – Apache Parquet file format.</p>
                            </li>

                            <li>
                              <p><strong>shapefile</strong> – ShapeFile file format.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘delimited\_text’.</p>
                        </li>

                        <li>
                          <p><strong>flatten\_columns</strong> – Specifies how to handle nested columns. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Break up nested columns to multiple columns.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat nested columns as JSON columns instead of flattening.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>gdal\_configuration\_options</strong> – Comma separated list of gdal conf options, for the specific requests: key=value.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by <span className="em">error\_handling</span>. If the specified table does not have a primary key or if upsert mode is in effect (<span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>), then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore new records whose primary key values collide with those of existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat as errors any new records whose primary key values collide with those of existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ingestion\_mode</strong> – Whether to do a full load, dry run, or perform a type inference on the source data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>full</strong> – Run a type inference on the source data (if needed) and ingest.</p>
                            </li>

                            <li>
                              <p><strong>dry\_run</strong> – Does not load data, but walks through the source data and determines the number of valid records, taking into account the current mode of <span className="em">error\_handling</span>.</p>
                            </li>

                            <li>
                              <p><strong>type\_inference\_only</strong> – Infer the type of the source data and return, without ingesting any data. The inferred type is returned in the response.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘full’.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_fetch\_size</strong> – The JDBC fetch size, which determines how many rows to fetch per round trip. The default value is ‘50000’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_consumers\_per\_rank</strong> – Number of Kafka consumer threads per rank (valid range 1-6). The default value is ‘1’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_group\_id</strong> – The group id to be used when consuming data from a Kafka topic (valid only for Kafka datasource subscriptions).</p>
                        </li>

                        <li>
                          <p><strong>kafka\_offset\_reset\_policy</strong> – Policy to determine whether the Kafka data consumption starts either at earliest offset or latest offset. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>earliest</p>
                            </li>

                            <li>
                              <p>latest</p>
                            </li>
                          </ul>

                          <p>The default value is ‘earliest’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_optimistic\_ingest</strong> – Enable optimistic ingestion where Kafka topic offsets and table data are committed independently to achieve parallelism. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_subscription\_cancel\_after</strong> – Sets the Kafka subscription lifespan (in minutes). Expired subscription will be cancelled automatically.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_type\_inference\_fetch\_timeout</strong> – Maximum time to collect Kafka messages before type inferencing on the set of them.</p>
                        </li>

                        <li>
                          <p><strong>layer</strong> – Geo files layer(s) name(s): comma separated.</p>
                        </li>

                        <li>
                          <p><strong>loading\_mode</strong> – Scheme for distributing the extraction and loading of data from the source data file(s). This option applies only when loading files that are local to the database. Allowed values are:</p>

                          <ul>
                            <li>
                              <p><strong>head</strong> – The head node loads all data. All files must be available to the head node.</p>
                            </li>

                            <li>
                              <p><strong>distributed\_shared</strong> – The head node coordinates loading data by worker processes across all nodes from shared files available to all workers.</p>
                              <p>NOTE:</p>
                              <p>Instead of existing on a shared source, the files can be duplicated on a source local to each host to improve performance, though the files must appear as the same data set from the perspective of all hosts performing the load.</p>
                            </li>

                            <li>
                              <p><strong>distributed\_local</strong> – A single worker process on each node loads all files that are available to it. This option works best when each worker loads files from its own file system, to maximize performance. In order to avoid data duplication, either each worker performing the load needs to have visibility to a set of files unique to it (no file is visible to more than one node) or the target table needs to have a primary key (which will allow the worker to automatically deduplicate data).</p>
                              <p>NOTE:</p>
                              <p>If the target table doesn’t exist, the table structure will be determined by the head node. If the head node has no files local to it, it will be unable to determine the structure and the request will fail.</p>
                              <p>If the head node is configured to have no worker processes, no data strictly accessible to the head node will be loaded.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘head’.</p>
                        </li>

                        <li>
                          <p><strong>local\_time\_offset</strong> – Apply an offset to Avro local timestamp columns.</p>
                        </li>

                        <li>
                          <p><strong>max\_records\_to\_load</strong> – Limit the number of records to load in this request: if this number is larger than <span className="em">batch\_size</span>, then the number of records loaded will be limited to the next whole number of <span className="em">batch\_size</span> (per working thread).</p>
                        </li>

                        <li>
                          <p><strong>name\_columns\_from\_file</strong> – Specifies a comma-delimited list of column names to be used as the source-data column names. If the file has a header row (i.e., <span className="em">text\_has\_header</span> is <span className="em">true</span>), these names override the file’s header names. If the file has no header row, these names are used as the source-data column names. Either way, the i-th name in this list applies to the i-th column in the file, enabling name-based matching against the target table’s columns (and use with <span className="em">columns\_to\_load</span> / <span className="em">columns\_to\_skip</span>).</p>
                        </li>

                        <li>
                          <p><strong>num\_tasks\_per\_rank</strong> – Number of tasks for reading file per rank. Default will be system configuration parameter, external\_file\_reader\_num\_tasks.</p>
                        </li>

                        <li>
                          <p><strong>poll\_interval</strong> – If <span className="em">true</span>, the number of seconds between attempts to load external files into the table. If zero, polling will be continuous as long as data is found. If no data is found, the interval will steadily increase to a maximum of 60 seconds. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>primary\_keys</strong> – Comma separated list of column names to set as primary keys, when not specified in the type.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_method</strong> – Method by which the table can be refreshed from its source data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>manual</strong> – Refresh only occurs when manually requested by invoking the refresh action of <a className="reference internal" href="#gpudb.GPUdb.alter_table" title="gpudb.GPUdb.alter_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.alter\_table()</span></code></a> on this table.</p>
                            </li>

                            <li>
                              <p><strong>on\_start</strong> – Refresh table on database startup and when manually requested by invoking the refresh action of <a className="reference internal" href="#gpudb.GPUdb.alter_table" title="gpudb.GPUdb.alter_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.alter\_table()</span></code></a> on this table.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘manual’.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_retries</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_timeout</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_max\_consecutive\_connection\_failures</strong> – Max records to skip due to SR connection failures, before failing.</p>
                        </li>

                        <li>
                          <p><strong>max\_consecutive\_invalid\_schema\_failure</strong> – Max records to skip due to schema related errors, before failing.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_schema\_name</strong> – Name of the Avro schema in the schema registry to use when reading Avro records.</p>
                        </li>

                        <li>
                          <p><strong>shard\_keys</strong> – Comma separated list of column names to set as shard keys, when not specified in the type.</p>
                        </li>

                        <li>
                          <p><strong>skip\_lines</strong> – Skip a number of lines from the beginning of the file.</p>
                        </li>

                        <li>
                          <p><strong>start\_offsets</strong> – Starting offsets by partition to fetch from kafka. A comma separated list of partition:offset pairs.</p>
                        </li>

                        <li>
                          <p><strong>subscribe</strong> – Continuously poll the data source to check for new data and load it into the table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>table\_insert\_mode</strong> – Insertion scheme to use when inserting records from multiple shapefiles. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>single</strong> – Insert all records into a single table.</p>
                            </li>

                            <li>
                              <p><strong>table\_per\_file</strong> – Insert records from each file into a new table corresponding to that file.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘single’.</p>
                        </li>

                        <li>
                          <p><strong>text\_comment\_string</strong> – Specifies the character string that should be interpreted as a comment line prefix in the source data. All lines in the data starting with the provided string are ignored.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘#’.</p>
                        </li>

                        <li>
                          <p><strong>text\_delimiter</strong> – Specifies the character delimiting field values in the source data and field names in the header (if present).</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘,’.</p>
                        </li>

                        <li>
                          <p><strong>text\_escape\_character</strong> – Specifies the character that is used to escape other characters in the source data.</p>
                          <p>An ‘a’, ‘b’, ‘f’, ‘n’, ‘r’, ‘t’, or ‘v’ preceded by an escape character will be interpreted as the ASCII bell, backspace, form feed, line feed, carriage return, horizontal tab, and vertical tab, respectively. For example, the escape character followed by an ‘n’ will be interpreted as a newline within a field value.</p>
                          <p>The escape character can also be used to escape the quoting character, and will be treated as an escape character whether it is within a quoted field value or not.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only.</p>
                        </li>

                        <li>
                          <p><strong>text\_has\_header</strong> – Indicates whether the source data contains a header row.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>text\_header\_property\_delimiter</strong> – Specifies the delimiter for <a className="reference external" href="/content/concepts/types/#column-properties">column properties</a> in the header row (if present). Cannot be set to same value as <span className="em">text\_delimiter</span>.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘|’.</p>
                        </li>

                        <li>
                          <p><strong>text\_null\_string</strong> – Specifies the character string that should be interpreted as a null value in the source data.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘\N’.</p>
                        </li>

                        <li>
                          <p><strong>text\_quote\_character</strong> – Specifies the character that should be interpreted as a field value quoting character in the source data. The character must appear at beginning and end of field value to take effect. Delimiters within quoted fields are treated as literals and not delimiters. Within a quoted field, two consecutive quote characters will be interpreted as a single literal quote character, effectively escaping it. To not have a quote character, specify an empty string.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘”’.</p>
                        </li>

                        <li>
                          <p><strong>text\_search\_columns</strong> – Add ‘text\_search’ property to internally inferenced string columns. Comma separated list of column names or ‘\*’ for all columns. To add ‘text\_search’ property only to string columns greater than or equal to a minimum size, also set the <span className="em">text\_search\_min\_column\_length</span></p>
                        </li>

                        <li>
                          <p><strong>text\_search\_min\_column\_length</strong> – Set the minimum column size for strings to apply the ‘text\_search’ property to. Used only when <span className="em">text\_search\_columns</span> has a value.</p>
                        </li>

                        <li>
                          <p><strong>transformations</strong> – Comma-separated expressions, one per target table column. Each expression is evaluated per record. Empty entries (two consecutive commas) mean no transformation for that column – the value is resolved from the input record, table default, NULL, or an error. Expressions may reference input columns by name or by position ($1 for the first input column, $2 for the second, etc.). The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>trim\_space</strong> – If set to <span className="em">true</span>, remove leading or trailing space from fields. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_strings</strong> – If set to <span className="em">true</span>, truncate string values that are longer than the column’s type size. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_table</strong> – If set to <span className="em">true</span>, truncates the table specified by input parameter <span className="em">table\_name</span> prior to loading the file(s). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p>type\_inference\_max\_records\_read</p>
                        </li>

                        <li>
                          <p><strong>type\_inference\_mode</strong> – Optimize type inferencing for either speed or accuracy. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>accuracy</strong> – Scans data to get exactly-typed and sized columns for all data scanned.</p>
                            </li>

                            <li>
                              <p><strong>speed</strong> – Scans data and picks the widest possible column types so that ‘all’ values will fit with minimum data scanned.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘speed’.</p>
                        </li>

                        <li>
                          <p><strong>remote\_query</strong> – Remote SQL query from which data will be sourced.</p>
                        </li>

                        <li>
                          <p><strong>remote\_query\_filter\_column</strong> – Name of column to be used for splitting <span className="em">remote\_query</span> into multiple sub-queries using the data distribution of given column.</p>
                        </li>

                        <li>
                          <p><strong>remote\_query\_increasing\_column</strong> – Column on subscribed remote query result that will increase for new records (e.g., TIMESTAMP).</p>
                        </li>

                        <li>
                          <p><strong>remote\_query\_partition\_column</strong> – Alias name for <span className="em">remote\_query\_filter\_column</span>.</p>
                        </li>

                        <li>
                          <p><strong>enable\_inplace\_updates</strong> – Applies only when upserting (when update\_on\_existing\_pk is true). If set to true (the default), an existing record matched by primary key is modified in place. If set to false, the matched record is updated by deleting it and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. If set to <span className="em">true</span>, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be ‘upserted’). If set to <span className="em">false</span>, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by <span className="em">ignore\_existing\_pk</span> and <span className="em">error\_handling</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Upsert new records when primary keys match existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject new records when primary keys match existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>ID of the currently registered table structure <a className="reference external" href="/content/concepts/types/">type</a> for this external table.</p>
                    </div>

                    <div className="dt">type\_definition (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A JSON string describing the columns of the created external table.</p>
                    </div>

                    <div className="dt">type\_label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The user-defined description associated with the table’s structure.</p>
                    </div>

                    <div className="dt">type\_properties (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>A mapping of each external table column name to an array of column properties associated with that column.</p>
                    </div>

                    <div className="dt">count\_inserted (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records inserted into the external table.</p>
                    </div>

                    <div className="dt">count\_skipped (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records skipped, when not running in <span className="em">abort</span> error handling mode.</p>
                    </div>

                    <div className="dt">count\_updated (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>\[Not yet implemented] Number of records updated within the external table.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">files (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The list of source files used to create the external table.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_table_monitor"> <span className="sig-name descname"><span className="pre">create\_table\_monitor</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a monitor that watches for a single table modification event type (insert, update, or delete) on a particular table (identified by input parameter <span className="em">table\_name</span>) and forwards event notifications to subscribers via ZMQ. After this call completes, subscribe to the returned output parameter <span className="em">topic\_id</span> on the ZMQ table monitor port (default 9002). Each time an operation of the given type on the table completes, a multipart message is published for that topic; the first part contains only the topic ID, and each subsequent part contains one binary-encoded Avro object that corresponds to the event and can be decoded using output parameter <span className="em">type\_schema</span>. The monitor will continue to run (regardless of whether or not there are any subscribers) until deactivated with <a className="reference internal" href="#gpudb.GPUdb.clear_table_monitor" title="gpudb.GPUdb.clear_table_monitor"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.clear\_table\_monitor()</span></code></a>.</p>
              <p>For more information on table monitors, see <a className="reference external" href="/content/concepts/table_monitors/">Table Monitors</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to monitor, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>event</strong> – Type of modification event on the target table to be monitored by this table monitor. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>insert</strong> – Get notifications of new record insertions. The new row images are forwarded to the subscribers.</p>
                            </li>

                            <li>
                              <p><strong>update</strong> – Get notifications of update operations. The modified row count information is forwarded to the subscribers.</p>
                            </li>

                            <li>
                              <p><strong>delete</strong> – Get notifications of delete operations. The deleted row count information is forwarded to the subscribers.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘insert’.</p>
                        </li>

                        <li>
                          <p><strong>monitor\_id</strong> – ID to use for this monitor instead of a randomly generated one.</p>
                        </li>

                        <li>
                          <p><strong>datasink\_name</strong> – Name of an existing <a className="reference external" href="/content/concepts/data_sinks/">data sink</a> to send change data notifications to.</p>
                        </li>

                        <li>
                          <p><strong>max\_consecutive\_failures</strong> – Maximum number of consecutive failed notification attempts before suspending the stream. A value of -1 (default) disables auto-suspend. This value is by rank and not overall.</p>
                        </li>

                        <li>
                          <p><strong>failed\_notifications\_table\_name</strong> – Name of a <a className="reference external" href="/content/concepts/tables/">table</a> to which failed stream notifications are written when the stream is suspended. The database will attempt to send notifications persisted in this table when the stream is resumed. The table has the following columns: rank (long), job\_id (long), uuid (uuid), timestamp (timestamp), error\_msg (string), payload (bytes). Leave this option empty to disable persisting failed notification events.</p>
                        </li>

                        <li>
                          <p><strong>destination</strong> – Destination for the output data in format ‘destination\_type://path\[:port]’. Supported destination types are ‘http’, ‘https’ and ‘kafka’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_topic\_name</strong> – Name of the Kafka topic to publish to if <span className="em">destination</span> in input parameter <span className="em">options</span> is specified and is a Kafka broker.</p>
                        </li>

                        <li>
                          <p><strong>increasing\_column</strong> – Column on subscribed table that will increase for new records (e.g., TIMESTAMP).</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to limit records for notification.</p>
                        </li>

                        <li>
                          <p><strong>join\_table\_names</strong> – A comma-separated list of tables (optionally with aliases) to include in the join. The monitored table input parameter <span className="em">table\_name</span> must be included, representing only the newly inserted rows (deltas) since the last notification. Other tables can be any existing tables or views. Aliases can be used with the ‘table\_name as alias’ syntax.</p>
                        </li>

                        <li>
                          <p><strong>join\_column\_names</strong> – A comma-separated list of columns or expressions to include from the joined tables. Column references can use table names or aliases defined in ‘join\_table\_names’. Each column can optionally be aliased using ‘as’. The selected columns will also appear in the notification output.</p>
                        </li>

                        <li>
                          <p><strong>join\_expressions</strong> – Filter or join expressions to apply when combining the tables. Expressions are standard SQL-style conditions and can reference any table or alias listed in ‘join\_table\_names’. This corresponds to the WHERE clause of the underlying join, and can include conditions to filter the delta rows.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_method</strong> – Method controlling when the table monitor reports changes to the input parameter <span className="em">table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>on\_change</strong> – Report changes as they occur.</p>
                            </li>

                            <li>
                              <p><strong>periodic</strong> – Report changes periodically at rate specified by <span className="em">refresh\_period</span>.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘on\_change’.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_period</strong> – When <span className="em">refresh\_method</span> is <span className="em">periodic</span>, specifies the period in seconds at which changes are reported.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_start\_time</strong> – When <span className="em">refresh\_method</span> is <span className="em">periodic</span>, specifies the first time at which changes are reported. Value is a datetime string with format ‘YYYY-MM-DD HH:MM:SS’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">topic\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The ZMQ topic ID to subscribe to for table events.</p>
                    </div>

                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_schema (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>JSON Avro schema of the table, for use in decoding published records.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>ttl</strong> – For insert\_table/delete\_table events, the ttl of the table.</p>
                        </li>

                        <li>
                          <p><strong>insert\_topic\_id</strong> – The topic id for ‘insert’ <span className="em">event</span> in input parameter <span className="em">options</span>.</p>
                        </li>

                        <li>
                          <p><strong>update\_topic\_id</strong> – The topic id for ‘update’ <span className="em">event</span> in input parameter <span className="em">options</span>.</p>
                        </li>

                        <li>
                          <p><strong>delete\_topic\_id</strong> – The topic id for ‘delete’ <span className="em">event</span> in input parameter <span className="em">options</span>.</p>
                        </li>

                        <li>
                          <p><strong>insert\_type\_schema</strong> – The JSON Avro schema of the table in output parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>update\_type\_schema</strong> – The JSON Avro schema for ‘update’ events.</p>
                        </li>

                        <li>
                          <p><strong>delete\_type\_schema</strong> – The JSON Avro schema for ‘delete’ events.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_trigger_by_area"> <span className="sig-name descname"><span className="pre">create\_trigger\_by\_area</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">request\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_vector</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_vector</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Sets up an area trigger mechanism for two column\_names for one or more tables. (This function is essentially the two-dimensional version of <a className="reference internal" href="#gpudb.GPUdb.create_trigger_by_range" title="gpudb.GPUdb.create_trigger_by_range"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_trigger\_by\_range()</span></code></a>.) Once the trigger has been activated, any record added to the listed tables(s) via <a className="reference internal" href="#gpudb.GPUdb.insert_records" title="gpudb.GPUdb.insert_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.insert\_records()</span></code></a> with the chosen columns’ values falling within the specified region will trip the trigger. All such records will be queued at the trigger port (by default ‘9001’ but able to be retrieved via <a className="reference internal" href="#gpudb.GPUdb.show_system_status" title="gpudb.GPUdb.show_system_status"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_system\_status()</span></code></a>) for any listening client to collect. Active triggers can be cancelled by using the <a className="reference internal" href="#gpudb.GPUdb.clear_trigger" title="gpudb.GPUdb.clear_trigger"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.clear\_trigger()</span></code></a> endpoint or by clearing all relevant tables.</p>
              <p>The output returns the trigger handle as well as indicating success or failure of the trigger activation.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">request\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>User-created ID for the trigger. The ID can be alphanumeric, contain symbols, and must contain at least one character.</p>
                    </div>

                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the tables on which the trigger will be activated and maintained, each in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">x\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a numeric column on which the trigger is activated. Usually ‘x’ for geospatial data points.</p>
                    </div>

                    <div className="dt">x\_vector (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>The respective coordinate values for the region on which the trigger is activated. This usually translates to the x-coordinates of a geospatial region. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">y\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a second numeric column on which the trigger is activated. Usually ‘y’ for geospatial data points.</p>
                    </div>

                    <div className="dt">y\_vector (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>The respective coordinate values for the region on which the trigger is activated. This usually translates to the y-coordinates of a geospatial region. Must be the same length as xvals. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">trigger\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">request\_id</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_trigger_by_range"> <span className="sig-name descname"><span className="pre">create\_trigger\_by\_range</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">request\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Sets up a simple range trigger for a column\_name for one or more tables. Once the trigger has been activated, any record added to the listed tables(s) via <a className="reference internal" href="#gpudb.GPUdb.insert_records" title="gpudb.GPUdb.insert_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.insert\_records()</span></code></a> with the chosen column\_name’s value falling within the specified range will trip the trigger. All such records will be queued at the trigger port (by default ‘9001’ but able to be retrieved via <a className="reference internal" href="#gpudb.GPUdb.show_system_status" title="gpudb.GPUdb.show_system_status"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_system\_status()</span></code></a>) for any listening client to collect. Active triggers can be cancelled by using the <a className="reference internal" href="#gpudb.GPUdb.clear_trigger" title="gpudb.GPUdb.clear_trigger"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.clear\_trigger()</span></code></a> endpoint or by clearing all relevant tables.</p>
              <p>The output returns the trigger handle as well as indicating success or failure of the trigger activation.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">request\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>User-created ID for the trigger. The ID can be alphanumeric, contain symbols, and must contain at least one character.</p>
                    </div>

                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Tables on which the trigger will be active, each in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a numeric column\_name on which the trigger is activated.</p>
                    </div>

                    <div className="dt">min (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The lower bound (inclusive) for the trigger range.</p>
                    </div>

                    <div className="dt">max (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The upper bound (inclusive) for the trigger range.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">trigger\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">request\_id</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_type"> <span className="sig-name descname"><span className="pre">create\_type</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">type\_definition</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">label</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">properties</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new type describing the columns of a table. The type definition is specified as a list of columns, each specified as a list of the column name, data type, and any column attributes.</p>
              <p>Example of a type definition with some parameters:</p>

              <div className="highlight-default notranslate">
                ```
                [
                    ["id", "int8", "primary_key"],
                    ["dept_id", "int8", "primary_key", "shard_key"],
                    ["manager_id", "int8", "nullable"],
                    ["first_name", "char32"],
                    ["last_name", "char64"],
                    ["salary", "decimal"],
                    ["hire_date", "date"]
                ]
                ```
              </div>

              <p>Each column definition consists of the column name (which should meet the standard <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">column naming criteria</a>), the column’s <a className="reference external" href="/content/concepts/types/#types-chart">specific type</a> (int, long, float, double, string, bytes, or any of the possible values for input parameter <span className="em">properties</span>), and any <a className="reference external" href="/content/concepts/types/#types-data-handling">data handling</a>, <a className="reference external" href="/content/concepts/types/#types-data-keys">data key</a>, or <a className="reference external" href="/content/concepts/types/#types-data-replace">data replacement</a> properties.</p>
              <p>Note that some properties are mutually exclusive–i.e. they cannot be specified for any given column simultaneously. One example of mutually exclusive properties are <span className="em">primary\_key</span> and <span className="em">nullable</span>.</p>
              <p>A single <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a> and/or single <a className="reference external" href="/content/concepts/tables/#shard-keys">shard key</a> can be set across one or more columns. If a primary key is specified, then a uniqueness constraint is enforced, in that only a single object can exist with a given primary key column value (or set of values for the key columns, if using a composite primary key). When <a className="reference internal" href="#gpudb.GPUdb.insert_records" title="gpudb.GPUdb.insert_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">inserting</span></code></a> data into a table with a primary key, depending on the parameters in the request, incoming objects with primary key values that match existing objects will either overwrite (i.e. update) the existing object or will be skipped and not added into the set.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">type\_definition (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>JSON string defining the columns of the type to be registered, as described above.</p>
                    </div>

                    <div className="dt">label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A user-defined description string which can be used to differentiate between tables and types with otherwise identical schemas.</p>
                    </div>

                    <div className="dt">properties (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>\[DEPRECATED–please use these property values in the input parameter <span className="em">type\_definition</span> directly, as described at the top, instead] Each key-value pair specifies the properties to use for a given column where the key is the column name. All keys used must be relevant column names for the given table. Specifying any property overrides the default properties for that column (which is based on the column’s data type). Allowed values are:</p>

                      <ul>
                        <li>
                          <p><strong>data</strong> – Default property for all numeric and string type columns; makes the column available for GPU queries.</p>
                        </li>

                        <li>
                          <p><strong>text\_search</strong> – Valid only for select ‘string’ columns. Enables full text search–see <a className="reference external" href="/content/concepts/full_text_search/">Full Text Search</a> for details and applicable string column types.</p>
                        </li>

                        <li>
                          <p><strong>timestamp</strong> – Valid only for ‘long’ columns. Indicates that this field represents a timestamp and will be provided in milliseconds since the Unix epoch: 00:00:00 Jan 1 1970. Dates represented by a timestamp must fall between the year 1000 and the year 2900.</p>
                        </li>

                        <li>
                          <p><strong>ulong</strong> – Valid only for ‘string’ columns. It represents an unsigned long integer data type. The string can only be interpreted as an unsigned long data type with minimum value of zero, and maximum value of 18446744073709551615.</p>
                        </li>

                        <li>
                          <p><strong>uuid</strong> – Valid only for ‘string’ columns. It represents an uuid data type. Internally, it is stored as a 128-bit integer.</p>
                        </li>

                        <li>
                          <p><strong>decimal</strong> – Valid only for ‘string’ columns. It represents a SQL type NUMERIC(19, 4) data type. There can be up to 15 digits before the decimal point and up to four digits in the fractional part. The value can be positive or negative (indicated by a minus sign at the beginning). This property is mutually exclusive with the <span className="em">text\_search</span> property.</p>
                        </li>

                        <li>
                          <p><strong>date</strong> – Valid only for ‘string’ columns. Indicates that this field represents a date and will be provided in the format ‘YYYY-MM-DD’. The allowable range is 1000-01-01 through 2900-01-01. This property is mutually exclusive with the <span className="em">text\_search</span> property.</p>
                        </li>

                        <li>
                          <p><strong>time</strong> – Valid only for ‘string’ columns. Indicates that this field represents a time-of-day and will be provided in the format ‘HH:MM:SS.mmm’. The allowable range is 00:00:00.000 through 23:59:59.999. This property is mutually exclusive with the <span className="em">text\_search</span> property.</p>
                        </li>

                        <li>
                          <p><strong>datetime</strong> – Valid only for ‘string’ columns. Indicates that this field represents a datetime and will be provided in the format ‘YYYY-MM-DD HH:MM:SS.mmm’. The allowable range is 1000-01-01 00:00:00.000 through 2900-01-01 23:59:59.999. This property is mutually exclusive with the <span className="em">text\_search</span> property.</p>
                        </li>

                        <li>
                          <p><strong>char1</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 1 character.</p>
                        </li>

                        <li>
                          <p><strong>char2</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 2 characters.</p>
                        </li>

                        <li>
                          <p><strong>char4</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 4 characters.</p>
                        </li>

                        <li>
                          <p><strong>char8</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 8 characters.</p>
                        </li>

                        <li>
                          <p><strong>char16</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 16 characters.</p>
                        </li>

                        <li>
                          <p><strong>char32</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 32 characters.</p>
                        </li>

                        <li>
                          <p><strong>char64</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 64 characters.</p>
                        </li>

                        <li>
                          <p><strong>char128</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 128 characters.</p>
                        </li>

                        <li>
                          <p><strong>char256</strong> – This property provides optimized memory, disk and query performance for string columns. Strings with this property must be no longer than 256 characters.</p>
                        </li>

                        <li>
                          <p><strong>boolean</strong> – This property provides optimized memory and query performance for int columns. Ints with this property must be between 0 and 1(inclusive)</p>
                        </li>

                        <li>
                          <p><strong>int8</strong> – This property provides optimized memory and query performance for int columns. Ints with this property must be between -128 and +127 (inclusive)</p>
                        </li>

                        <li>
                          <p><strong>int16</strong> – This property provides optimized memory and query performance for int columns. Ints with this property must be between -32768 and +32767 (inclusive)</p>
                        </li>

                        <li>
                          <p><strong>ipv4</strong> – This property provides optimized memory, disk and query performance for string columns representing IPv4 addresses (i.e. 192.168.1.1). Strings with this property must be of the form: A.B.C.D where A, B, C and D are in the range of 0-255.</p>
                        </li>

                        <li>
                          <p><strong>array</strong> – Valid only for ‘string’ columns. Indicates that this field contains an array. The value type and (optionally) the item count should be specified in parenthesis; e.g., ‘array(int, 10)’ for a 10-integer array. Both ‘array(int)’ and ‘array(int, -1)’ will designate an unlimited-length integer array, though no bounds checking is performed on arrays of any length.</p>
                        </li>

                        <li>
                          <p><strong>json</strong> – Valid only for ‘string’ columns. Indicates that this field contains values in JSON format.</p>
                        </li>

                        <li>
                          <p><strong>vector</strong> – Valid only for ‘bytes’ columns. Indicates that this field contains a vector of floats. The length should be specified in parenthesis, e.g., ‘vector(1000)’.</p>
                        </li>

                        <li>
                          <p><strong>wkt</strong> – Valid only for ‘string’ and ‘bytes’ columns. Indicates that this field contains geospatial geometry objects in Well-Known Text (WKT) or Well-Known Binary (WKB) format.</p>
                        </li>

                        <li>
                          <p><strong>primary\_key</strong> – This property indicates that this column will be part of (or the entire) <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>.</p>
                        </li>

                        <li>
                          <p><strong>soft\_primary\_key</strong> – This property indicates that this column will be part of (or the entire) <a className="reference external" href="/content/concepts/tables/#soft-primary-keys">soft primary key</a>.</p>
                        </li>

                        <li>
                          <p><strong>shard\_key</strong> – This property indicates that this column will be part of (or the entire) <a className="reference external" href="/content/concepts/tables/#shard-keys">shard key</a>.</p>
                        </li>

                        <li>
                          <p><strong>nullable</strong> – This property indicates that this column is nullable. However, setting this property is insufficient for making the column nullable. The user must declare the type of the column as a union between its regular type and ‘null’ in the Avro schema for the record type in input parameter <span className="em">type\_definition</span>. For example, if a column is of type integer and is nullable, then the entry for the column in the Avro schema must be: \[‘int’, ‘null’].</p>
                          <p>The C++, C#, Java, and Python APIs have built-in convenience for bypassing setting the Avro schema by hand. For those languages, one can use this property as usual and not have to worry about the Avro schema for the record.</p>
                        </li>

                        <li>
                          <p><strong>compress</strong> – This property indicates that this column should be <a className="reference external" href="/content/concepts/column_compression/">compressed</a> with the given codec and optional level; e.g., ‘compress(snappy)’ for Snappy compression and ‘compress(zstd(7))’ for zstd level 7 compression. This property is primarily used in order to save disk space.</p>
                        </li>

                        <li>
                          <p><strong>dict</strong> – This property indicates that this column should be <a className="reference external" href="/content/concepts/dictionary_encoding/">dictionary encoded</a>. It can only be used in conjunction with restricted string (charN), int, long or date columns. Dictionary encoding is best for columns where the cardinality (the number of unique values) is expected to be low. This property can save a large amount of memory.</p>
                        </li>

                        <li>
                          <p><strong>init\_with\_now</strong> – For ‘date’, ‘time’, ‘datetime’, or ‘timestamp’ column types, replace empty strings and invalid timestamps with ‘NOW()’ upon insert.</p>
                        </li>

                        <li>
                          <p><strong>init\_with\_uuid</strong> – For ‘uuid’ type, replace empty strings and invalid UUID values with randomly-generated UUIDs upon insert.</p>
                        </li>

                        <li>
                          <p><strong>update\_with\_now</strong> – For ‘date’, ‘time’, ‘datetime’, or ‘timestamp’ column types, update the field with ‘NOW()’ upon any update.</p>
                        </li>

                        <li>
                          <p><strong>update\_with\_user</strong> – For ‘charN’ or ‘string’ column types, update the field with the current user’s name upon any update.</p>
                        </li>

                        <li>
                          <p><strong>default</strong> – Sets a default value expression for this column, e.g. ‘default(0)’, ‘default(‘’pending’’)’, or ‘default(NOW())’. When the column is omitted from an insert via request\_schema\_str, the expression is evaluated and the result is used as the column value.</p>
                        </li>

                        <li>
                          <p><strong>default\_sql</strong> – Sets a default value expression for this column with SQL syntax, e.g. ‘default(0)’, ‘default(‘’pending’’)’, or ‘default(NOW())’. Only used for showing the expression when generating SQL DDL.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for this type’s columns.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>An identifier representing the created type. This type\_id can be used in subsequent calls to <a className="reference internal" href="#gpudb.GPUdb.create_table" title="gpudb.GPUdb.create_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">create</span> <span className="pre">a</span> <span className="pre">table</span></code></a>.</p>
                    </div>

                    <div className="dt">type\_definition (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">type\_definition</span>.</p>
                    </div>

                    <div className="dt">label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">label</span>.</p>
                    </div>

                    <div className="dt">properties (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">properties</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_union"> <span className="sig-name descname"><span className="pre">create\_union</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">input\_column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">output\_column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Merges data from one or more tables with comparable data types into a new table.</p>
              <p>The following merges are supported:</p>
              <p>UNION (DISTINCT/ALL) - For data set union details and examples, see <a className="reference external" href="/content/concepts/unions/">Union</a>. For limitations, see <a className="reference external" href="/content/concepts/unions/#limitations-and-cautions">Union Limitations and Cautions</a>.</p>
              <p>INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see <a className="reference external" href="/content/concepts/intersect/">Intersect</a>. For limitations, see <a className="reference external" href="/content/concepts/intersect/#limitations">Intersect Limitations</a>.</p>
              <p>EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see <a className="reference external" href="/content/concepts/except/">Except</a>. For limitations, see <a className="reference external" href="/content/concepts/except/#limitations">Except Limitations</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to be created, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>.</p>
                    </div>

                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The list of table names to merge, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must contain the names of one or more existing tables. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">input\_column\_names (<span className="em">list of lists of str</span>) –</div>

                    <div className="dd">
                      <p>The list of columns from each of the corresponding input tables. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">output\_column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The list of names of the columns to be stored in the output table. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">table\_name</span>. If <span className="em">persist</span> is <span className="em">false</span> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_table\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the projection as part of input parameter <span className="em">table\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of the schema for the output table. If the schema provided is non-existent, it will be automatically created. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>mode</strong> – The mode describes what rows of the tables being unioned will be retained. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>union\_all</strong> – Retains all rows from the specified tables.</p>
                            </li>

                            <li>
                              <p><strong>union</strong> – Retains all unique rows from the specified tables (synonym for <span className="em">union\_distinct</span>).</p>
                            </li>

                            <li>
                              <p><strong>union\_distinct</strong> – Retains all unique rows from the specified tables.</p>
                            </li>

                            <li>
                              <p><strong>except</strong> – Retains all unique rows from the first table that do not appear in the second table (only works on 2 tables).</p>
                            </li>

                            <li>
                              <p><strong>except\_all</strong> – Retains all rows(including duplicates) from the first table that do not appear in the second table (only works on 2 tables).</p>
                            </li>

                            <li>
                              <p><strong>intersect</strong> – Retains all unique rows that appear in both of the specified tables (only works on 2 tables).</p>
                            </li>

                            <li>
                              <p><strong>intersect\_all</strong> – Retains all rows(including duplicates) that appear in both of the specified tables (only works on 2 tables).</p>
                            </li>
                          </ul>

                          <p>The default value is ‘union\_all’.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for this output table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for this output table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for this output table.</p>
                        </li>

                        <li>
                          <p><strong>create\_indexes</strong> – Comma-separated list of columns on which to create indexes on the output table. The columns specified must be present in input parameter <span className="em">output\_column\_names</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use for the output table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the output table specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>persist</strong> – If <span className="em">true</span>, then the output table specified in input parameter <span className="em">table\_name</span> will be persisted and will not expire unless a <span className="em">ttl</span> is specified. If <span className="em">false</span>, then the output table will be an in-memory table and will expire unless a <span className="em">ttl</span> is specified otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – ID of view of which this output table is a member. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>force\_replicated</strong> – If <span className="em">true</span>, then the output table specified in input parameter <span className="em">table\_name</span> will be replicated even if the source tables are not. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for this table’s columns.</p>
                        </li>

                        <li>
                          <p><strong>no\_count</strong> – Return a count of 0 for the union table response to avoid the cost of counting; optimization needed for many chunk virtual unions. The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>count</strong> – Number of records in the final table.</p>
                        </li>

                        <li>
                          <p><strong>qualified\_table\_name</strong> – The fully qualified name of the result table (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_user_external"> <span className="sig-name descname"><span className="pre">create\_user\_external</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new external user (a user whose credentials are managed by an external LDAP).</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user to be created. Must exactly match the user’s name in the external LDAP, prefixed with a @. Must not be the same name as an existing user.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>activated</strong> – Is the user allowed to login. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – User may login.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – User may not login.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>create\_home\_directory</strong> – When <span className="em">true</span>, a home directory in KiFS is created for this user. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>default\_schema</strong> – Default schema to associate with this user.</p>
                        </li>

                        <li>
                          <p><strong>directory\_data\_limit</strong> – The maximum capacity to apply to the created directory if <span className="em">create\_home\_directory</span> is <span className="em">true</span>. Set to -1 to indicate no upper limit. If empty, the system default limit is applied.</p>
                        </li>

                        <li>
                          <p><strong>resource\_group</strong> – Name of an existing resource group to associate with this user.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_user_internal"> <span className="sig-name descname"><span className="pre">create\_user\_internal</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">password</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a new internal user (a user whose credentials are managed by the database system).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.</p>
                    </div>

                    <div className="dt">password (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Initial password of the user to be created. May be an empty string for no password.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>activated</strong> – Is the user allowed to login. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – User may login.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – User may not login.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>create\_home\_directory</strong> – When <span className="em">true</span>, a home directory in KiFS is created for this user. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>default\_schema</strong> – Default schema to associate with this user.</p>
                        </li>

                        <li>
                          <p><strong>directory\_data\_limit</strong> – The maximum capacity to apply to the created directory if <span className="em">create\_home\_directory</span> is <span className="em">true</span>. Set to -1 to indicate no upper limit. If empty, the system default limit is applied.</p>
                        </li>

                        <li>
                          <p><strong>resource\_group</strong> – Name of an existing resource group to associate with this user.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.create_video"> <span className="sig-name descname"><span className="pre">create\_video</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">attribute</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">begin</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">duration\_seconds</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">end</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">frames\_per\_second</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">style</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">path</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">style\_parameters</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Creates a job to generate a sequence of raster images that visualize data over a specified time.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">attribute (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The animated attribute to map to the video’s frames. Must be present in the LAYERS specified for the visualization. This is often a time-related field but may be any numeric type.</p>
                    </div>

                    <div className="dt">begin (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The start point for the video. Accepts an expression evaluable over the input parameter <span className="em">attribute</span>.</p>
                    </div>

                    <div className="dt">duration\_seconds (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Seconds of video to produce.</p>
                    </div>

                    <div className="dt">end (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The end point for the video. Accepts an expression evaluable over the input parameter <span className="em">attribute</span>.</p>
                    </div>

                    <div className="dt">frames\_per\_second (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The presentation frame rate of the encoded video in frames per second.</p>
                    </div>

                    <div className="dt">style (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The name of the visualize mode; should correspond to the schema used for the input parameter <span className="em">style\_parameters</span> field. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>chart</p>
                        </li>

                        <li>
                          <p>raster</p>
                        </li>

                        <li>
                          <p>classbreak</p>
                        </li>

                        <li>
                          <p>contour</p>
                        </li>

                        <li>
                          <p>heatmap</p>
                        </li>

                        <li>
                          <p>labels</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">path (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Fully-qualified <a className="reference external" href="/content/tools/kifs/">KiFS</a> path. Write access is required. A file must not exist at that path, unless <span className="em">replace\_if\_exists</span> is <span className="em">true</span>.</p>
                    </div>

                    <div className="dt">style\_parameters (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A string containing the JSON-encoded visualize request. Must correspond to the visualize mode specified in the input parameter <span className="em">style</span> field.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl">TTL</a> of the video.</p>
                        </li>

                        <li>
                          <p><strong>window</strong> – Specified using the data-type corresponding to the input parameter <span className="em">attribute</span>. For a window of size W, a video frame rendered for time t will visualize data in the interval \[t-W,t]. The minimum window size is the interval between successive frames. The minimum value is the default. If a value less than the minimum value is specified, it is replaced with the minimum window size. Larger values will make changes throughout the video appear more smooth while smaller values will capture fast variations in the data.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_exists</strong> – If <span className="em">true</span>, does not return an error if the video already exists. Ignored if <span className="em">replace\_if\_exists</span> is <span className="em">true</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>false</p>
                            </li>

                            <li>
                              <p>true</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>replace\_if\_exists</strong> – If <span className="em">true</span>, deletes any existing video with the same path before creating a new video. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>false</p>
                            </li>

                            <li>
                              <p>true</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">job\_id (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>An identifier for the created job.</p>
                    </div>

                    <div className="dt">path (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Fully qualified KIFS path to the video file.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete_directory"> <span className="sig-name descname"><span className="pre">delete\_directory</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">directory\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes a directory from <a className="reference external" href="/content/tools/kifs/">KiFS</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the directory in KiFS to be deleted. The directory must contain no files, unless <span className="em">recursive</span> is <span className="em">true</span>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>recursive</strong> – If <span className="em">true</span>, will delete directory and all files residing in it. If false, directory must be empty for deletion. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span>, no error is returned if specified directory does not exist. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">directory\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete_files"> <span className="sig-name descname"><span className="pre">delete\_files</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">file\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes one or more files from <a className="reference external" href="/content/tools/kifs/">KiFS</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">file\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>An array of names of files to be deleted. File paths may contain wildcard characters after the KiFS directory delimiter.</p>
                      <p>Accepted wildcard characters are asterisk (\*) to represent any string of zero or more characters, and question mark (?) to indicate a single character. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span>, no error is returned if a specified file does not exist. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">file\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the files deleted from KiFS.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete_graph"> <span className="sig-name descname"><span className="pre">delete\_graph</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes an existing graph from the graph server and/or persist.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph to be deleted.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>delete\_persist</strong> – If set to <span className="em">true</span>, the graph is removed from the server and persist. If set to <span className="em">false</span>, the graph is removed from the server but is left in persist. The graph can be reloaded from persist if it is recreated with the same ‘graph\_name’. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>server\_id</strong> – Indicates which graph server(s) to send the request to. Default is to send to get information about all the servers.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a successful deletion.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete_proc"> <span className="sig-name descname"><span className="pre">delete\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">proc\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes a proc. Any currently running instances of the proc will be killed.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the proc to be deleted. Must be the name of a currently existing proc.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">proc\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete_records"> <span className="sig-name descname"><span className="pre">delete\_records</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">expressions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes record(s) matching the provided criteria from the given table. The record selection criteria can either be one or more input parameter <span className="em">expressions</span> (matching multiple records), a single record identified by <span className="em">record\_id</span> options, or all records when using <span className="em">delete\_all\_records</span>. Note that the three selection criteria are mutually exclusive. This operation cannot be run on a view. The operation is synchronous meaning that a response will not be available until the request is completely processed and all the matching records are deleted.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table from which to delete records, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must contain the name of an existing table; not applicable to views.</p>
                    </div>

                    <div className="dt">expressions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of the actual predicates, one for each select; format should follow the guidelines provided <a className="reference external" href="/content/concepts/expressions/">here</a>. Specifying one or more input parameter <span className="em">expressions</span> is mutually exclusive to specifying <span className="em">record\_id</span> in the input parameter <span className="em">options</span>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>global\_expression</strong> – An optional global expression to reduce the search space of the input parameter <span className="em">expressions</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>record\_id</strong> – A record ID identifying a single record, obtained at the time of <a className="reference internal" href="#gpudb.GPUdb.insert_records" title="gpudb.GPUdb.insert_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">insertion</span> <span className="pre">of</span> <span className="pre">the</span> <span className="pre">record</span></code></a> or by calling <a className="reference internal" href="#gpudb.GPUdb.get_records_from_collection" title="gpudb.GPUdb.get_records_from_collection"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.get\_records\_from\_collection()</span></code></a> with the <span className="em">return\_record\_ids</span> option. This option cannot be used to delete records from <a className="reference external" href="/content/concepts/tables/#replication">replicated</a> tables.</p>
                        </li>

                        <li>
                          <p><strong>delete\_all\_records</strong> – If set to <span className="em">true</span>, all records in the table will be deleted. If set to <span className="em">false</span>, then the option is effectively ignored. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">count\_deleted (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records deleted across all expressions.</p>
                    </div>

                    <div className="dt">counts\_deleted (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Total number of records deleted per expression.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete_resource_group"> <span className="sig-name descname"><span className="pre">delete\_resource\_group</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes a resource group.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the resource group to be deleted.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>cascade\_delete</strong> – If <span className="em">true</span>, delete any existing entities owned by this group. Otherwise this request will return an error of any such entities exist. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete_role"> <span className="sig-name descname"><span className="pre">delete\_role</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes an existing role.</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the role to be deleted. Must be an existing role.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.delete_user"> <span className="sig-name descname"><span className="pre">delete\_user</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes an existing user.</p>

              <div className="admonition note">
                <p className="admonition-title">Note</p>
                <p>This method should be used for on-premise deployments only.</p>
              </div>

              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user to be deleted. Must be an existing user.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.download_files"> <span className="sig-name descname"><span className="pre">download\_files</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">file\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">read\_offsets</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">read\_lengths</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Downloads one or more files from <a className="reference external" href="/content/tools/kifs/">KiFS</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">file\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>An array of the file names to download from KiFS. File paths may contain wildcard characters after the KiFS directory delimiter.</p>
                      <p>Accepted wildcard characters are asterisk (\*) to represent any string of zero or more characters, and question mark (?) to indicate a single character. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">read\_offsets (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>An array of starting byte offsets from which to read each respective file in input parameter <span className="em">file\_names</span>. Must either be empty or the same length as input parameter <span className="em">file\_names</span>. If empty, files are downloaded in their entirety. If not empty, input parameter <span className="em">read\_lengths</span> must also not be empty. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">read\_lengths (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Array of number of bytes to read from each respective file in input parameter <span className="em">file\_names</span>. Must either be empty or the same length as input parameter <span className="em">file\_names</span>. If empty, files are downloaded in their entirety. If not empty, input parameter <span className="em">read\_offsets</span> must also not be empty. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>file\_encoding</strong> – Encoding to be applied to the output file data. When using JSON serialization it is recommended to specify this as <span className="em">base64</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>base64</strong> – Apply base64 encoding to the output file data.</p>
                            </li>

                            <li>
                              <p><strong>none</strong> – Do not apply any encoding to the output file data.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">file\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the files downloaded from KiFS.</p>
                    </div>

                    <div className="dt">file\_data (<span className="em">list of bytes</span>) –</div>

                    <div className="dd">
                      <p>Data for the respective downloaded files listed in output parameter <span className="em">file\_names</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.drop_backup"> <span className="sig-name descname"><span className="pre">drop\_backup</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">backup\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasink\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Deletes one or more existing database <a className="reference external" href="/content/admin/backup_restore/#database-backup">backups</a> and contained snapshots, accessible via the <a className="reference external" href="/content/concepts/data_sinks/">data sink</a> specified by input parameter <span className="em">datasink\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the backup to be deleted. An empty string or ‘\*’ will delete all existing backups. Any text followed by a ‘\*’ will delete backups whose name starts with that text. When deleting multiple backups, <span className="em">delete\_all\_backups</span> must be set to <span className="em">true</span>.</p>
                    </div>

                    <div className="dt">datasink\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Data sink through which the backup is accessible.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>dry\_run</strong> – Whether or not to perform a dry run of a backup deletion. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>delete\_all\_backups</strong> – Allow multiple backups to be deleted if <span className="em">true</span> and multiple backup names are found matching input parameter <span className="em">backup\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – Whether or not to suppress the error if the specified backup does not exist. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">backup\_name</span>.</p>
                    </div>

                    <div className="dt">backup\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of backups that were deleted.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.drop_catalog"> <span className="sig-name descname"><span className="pre">drop\_catalog</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Drops an existing catalog. Any external tables that depend on the catalog must be dropped before it can be dropped.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the catalog to be dropped. Must be an existing catalog.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.drop_credential"> <span className="sig-name descname"><span className="pre">drop\_credential</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">credential\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Drop an existing <a className="reference external" href="/content/concepts/credentials/">credential</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the credential to be dropped. Must be an existing credential.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">credential\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.drop_datasink"> <span className="sig-name descname"><span className="pre">drop\_datasink</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Drops an existing <a className="reference external" href="/content/concepts/data_sinks/">data sink</a>.</p>
              <p>By default, if any <a className="reference external" href="/content/concepts/table_monitors">table monitors</a> use this sink as a destination, the request will be blocked unless option <span className="em">clear\_table\_monitors</span> is <span className="em">true</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data sink to be dropped. Must be an existing data sink.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>clear\_table\_monitors</strong> – If <span className="em">true</span>, any <a className="reference external" href="/content/concepts/table_monitors/">table monitors</a> that use this data sink will be cleared. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.drop_datasource"> <span className="sig-name descname"><span className="pre">drop\_datasource</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Drops an existing <a className="reference external" href="/content/concepts/data_sources/">data source</a>. Any external tables that depend on the data source must be dropped before it can be dropped.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data source to be dropped. Must be an existing data source.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.drop_environment"> <span className="sig-name descname"><span className="pre">drop\_environment</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">environment\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Drop an existing <a className="reference external" href="/content/concepts/udf/">user-defined function</a> (UDF) environment.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">environment\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the environment to be dropped. Must be an existing environment.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span> and if the environment specified in input parameter <span className="em">environment\_name</span> does not exist, no error is returned. If <span className="em">false</span> and if the environment specified in input parameter <span className="em">environment\_name</span> does not exist, then an error is returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">environment\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">environment\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.drop_schema"> <span className="sig-name descname"><span className="pre">drop\_schema</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">schema\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Drops an existing SQL-style <a className="reference external" href="/content/concepts/schemas/">schema</a>, specified in input parameter <span className="em">schema\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the schema to be dropped. Must be an existing schema.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span> and if the schema specified in input parameter <span className="em">schema\_name</span> does not exist, no error is returned. If <span className="em">false</span> and if the schema specified in input parameter <span className="em">schema\_name</span> does not exist, then an error is returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>cascade</strong> – If <span className="em">true</span>, all tables within the schema will be dropped. If <span className="em">false</span>, the schema will be dropped only if empty. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">schema\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.execute_proc"> <span className="sig-name descname"><span className="pre">execute\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">proc\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">params</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">bin\_params</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">input\_table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">input\_column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">output\_table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Executes a proc. This endpoint is asynchronous and does not wait for the proc to complete before returning.</p>
              <p>If the proc being executed is distributed, input parameter <span className="em">input\_table\_names</span> and input parameter <span className="em">input\_column\_names</span> may be passed to the proc to use for reading data, and input parameter <span className="em">output\_table\_names</span> may be passed to the proc to use for writing data.</p>
              <p>If the proc being executed is non-distributed, these table parameters will be ignored.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the proc to execute. Must be the name of a currently existing proc.</p>
                    </div>

                    <div className="dt">params (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>A map containing named parameters to pass to the proc. Each key/value pair specifies the name of a parameter and its value. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">bin\_params (<span className="em">dict of str to bytes</span>) –</div>

                    <div className="dd">
                      <p>A map containing named binary parameters to pass to the proc. Each key/value pair specifies the name of a parameter and its value. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">input\_table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the tables containing data to be passed to the proc. Each name specified must be the name of a currently existing table, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. If no table names are specified, no data will be passed to the proc. This parameter is ignored if the proc has a non-distributed execution mode. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">input\_column\_names (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Map of table names from input parameter <span className="em">input\_table\_names</span> to lists of names of columns from those tables that will be passed to the proc. Each column name specified must be the name of an existing column in the corresponding table. If a table name from input parameter <span className="em">input\_table\_names</span> is not included, all columns from that table will be passed to the proc. This parameter is ignored if the proc has a non-distributed execution mode. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">output\_table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the tables to which output data from the proc will be written, each in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. If a specified table does not exist, it will automatically be created with the same schema as the corresponding table (by order) from input parameter <span className="em">input\_table\_names</span>, excluding any primary and shard keys. If a specified table is a non-persistent result table, it must not have primary or shard keys. If no table names are specified, no output data can be returned from the proc. This parameter is ignored if the proc has a non-distributed execution mode. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>cache\_input</strong> – No longer supported; option will be ignored. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>use\_cached\_input</strong> – No longer supported; option will be ignored. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>run\_tag</strong> – A string that, if not empty, can be used in subsequent calls to <a className="reference internal" href="#gpudb.GPUdb.show_proc_status" title="gpudb.GPUdb.show_proc_status"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_proc\_status()</span></code></a> or <a className="reference internal" href="#gpudb.GPUdb.kill_proc" title="gpudb.GPUdb.kill_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.kill\_proc()</span></code></a> to identify the proc instance. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>max\_output\_lines</strong> – The maximum number of lines of output from stdout and stderr to return via <a className="reference internal" href="#gpudb.GPUdb.show_proc_status" title="gpudb.GPUdb.show_proc_status"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_proc\_status()</span></code></a>. If the number of lines output exceeds the maximum, earlier lines are discarded. The default value is ‘100’.</p>
                        </li>

                        <li>
                          <p><strong>execute\_at\_startup</strong> – If <span className="em">true</span>, an instance of the proc will run when the database is started instead of running immediately. The output parameter <span className="em">run\_id</span> can be retrieved using <a className="reference internal" href="#gpudb.GPUdb.show_proc" title="gpudb.GPUdb.show_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_proc()</span></code></a> and used in <a className="reference internal" href="#gpudb.GPUdb.show_proc_status" title="gpudb.GPUdb.show_proc_status"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_proc\_status()</span></code></a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>execute\_at\_startup\_as</strong> – Sets the alternate user name to execute this proc instance as when <span className="em">execute\_at\_startup</span> is <span className="em">true</span>. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">run\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The run ID of the running proc instance. This may be passed to <a className="reference internal" href="#gpudb.GPUdb.show_proc_status" title="gpudb.GPUdb.show_proc_status"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_proc\_status()</span></code></a> to obtain status information, or <a className="reference internal" href="#gpudb.GPUdb.kill_proc" title="gpudb.GPUdb.kill_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.kill\_proc()</span></code></a> to kill the proc instance.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>deferred\_tables</strong> – \<DEVELOPER></p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.execute_sql"> <span className="sig-name descname"><span className="pre">execute\_sql</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">statement</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">request\_schema\_str</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">data</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Execute a SQL statement (query, DML, or DDL).</p>
              <p>See <a className="reference external" href="/content/sql/">SQL Support</a> for the complete set of supported SQL commands.</p>
              <p>When a caller wants all the results from a large query (e.g., more than <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> records), they can make multiple calls to this endpoint using the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters to page through the results. Normally, this will execute the input parameter <span className="em">statement</span> query each time. To avoid re-executing the query each time and to keep the results in the same order, the caller should specify a <span className="em">paging\_table</span> name to hold the results of the query between calls and specify the <span className="em">paging\_table</span> on subsequent calls. When this is done, the caller should clear the paging table and any other tables in the <span className="em">result\_table\_list</span> (both returned in the response) when they are done paging through the results. Output parameter <span className="em">paging\_table</span> (and <span className="em">result\_table\_list</span>) will be empty if no paging table was created (e.g., when all the query results were returned in the first call).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">statement (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>SQL statement (query, DML, or DDL) to be executed.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; either ‘binary’ or ‘json’. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">request\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of input parameter <span className="em">data</span>. The default value is ‘’.</p>
                    </div>

                    <div className="dt">data (<span className="em">list of bytes</span>) –</div>

                    <div className="dd">
                      <p>An array of binary-encoded data for the records to be binded to the SQL query. Or use <span className="em">query\_parameters</span> to pass the data in JSON format. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>cost\_based\_optimization</strong> – If <span className="em">false</span>, disables the cost-based optimization of the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>distributed\_joins</strong> – If <span className="em">true</span>, enables the use of distributed joins in servicing the given query. Any query requiring a distributed join will succeed, though hints can be used in the query to change the distribution of the source data to allow the query to succeed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>distributed\_operations</strong> – If <span className="em">true</span>, enables the use of distributed operations in servicing the given query. Any query requiring a distributed join will succeed, though hints can be used in the query to change the distribution of the source data to allow the query to succeed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for inserting into or updating a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when primary key record collisions are rejected (<span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any record insert/update that is rejected for resulting in a primary key collision with an existing table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any insert/update for resulting in a primary key collision will cause an error to be reported. If the specified table does not have a primary key or if <span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore inserts/updates that result in primary key collisions with existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat as errors any inserts/updates that result in primary key collisions with existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>late\_materialization</strong> – If <span className="em">true</span>, Joins/Filters results will always be materialized ( saved to result tables format). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>paging\_table</strong> – When specified (or <span className="em">paging\_table\_ttl</span> is set), the system will create a paging table to hold the results of the query, when the output has more records than are in the response (i.e., when output parameter <span className="em">has\_more\_records</span> is <span className="em">true</span>). If the specified paging table exists, the records from the paging table are returned without re-evaluating the query. It is the caller’s responsibility to clear the output parameter <span className="em">paging\_table</span> and other tables in the <span className="em">result\_table\_list</span> (both returned in the response) when they are done with this query.</p>
                        </li>

                        <li>
                          <p><strong>paging\_table\_ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the paging table. -1 indicates no timeout. Setting this option will cause a paging table to be generated when needed. The output parameter <span className="em">paging\_table</span> and other tables in the <span className="em">result\_table\_list</span> (both returned in the response) will be automatically cleared after the TTL expires, if set to a positive number. However, it is still recommended that the caller clear these tables when they are done with this query.</p>
                        </li>

                        <li>
                          <p><strong>parallel\_execution</strong> – If <span className="em">false</span>, disables the parallel step execution of the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>plan\_cache</strong> – If <span className="em">false</span>, disables plan caching for the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>prepare\_mode</strong> – If <span className="em">true</span>, compiles a query into an execution plan and saves it in query cache. Query execution is not performed and an empty response will be returned to user. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>preserve\_dict\_encoding</strong> – If <span className="em">true</span>, then columns that were dict encoded in the source table will be dict encoded in the projection table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>query\_parameters</strong> – Query parameters in JSON array or arrays (for inserting multiple rows). This can be used instead of input parameter <span className="em">data</span> and input parameter <span className="em">request\_schema\_str</span>.</p>
                        </li>

                        <li>
                          <p><strong>results\_caching</strong> – If <span className="em">false</span>, disables caching of the results of the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>rule\_based\_optimization</strong> – If <span className="em">false</span>, disables rule-based rewrite optimizations for the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>ssq\_optimization</strong> – If <span className="em">false</span>, scalar subqueries will be translated into joins. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the intermediate result tables used in query execution.</p>
                        </li>

                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for inserting into or updating a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. If set to <span className="em">true</span>, any existing table record with primary key values that match those of a record being inserted or updated will be replaced by that record. If set to <span className="em">false</span>, any such primary key collision will result in the insert/update being rejected and the error handled as determined by <span className="em">ignore\_existing\_pk</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Replace the collided-into record with the record inserted or updated when a new/modified record causes a primary key collision with an existing record.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject the insert or update when it results in a primary key collision with an existing record.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>validate\_change\_column</strong> – When changing a column using alter table, validate the change before applying it. If <span className="em">true</span>, then validate all values. A value too large (or too long) for the new type will prevent any change. If <span className="em">false</span>, then when a value is too large or long, it will be truncated. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>current\_schema</strong> – Use the supplied value as the <a className="reference external" href="/content/concepts/schemas/#default-schema">default schema</a> when processing this SQL command.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count\_affected (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of objects/records affected.</p>
                    </div>

                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">binary\_encoded\_response (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>Avro binary encoded response.</p>
                    </div>

                    <div className="dt">json\_encoded\_response (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro JSON encoded response.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">paging\_table (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table that has the result records of the query. Valid, when output parameter <span className="em">has\_more\_records</span> is <span className="em">true</span>. The caller should clear this and all tables in <span className="em">result\_table\_list</span> when they are done querying.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>count</strong> – Number of records without final limits applied.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_list</strong> – List of tables, comma-separated, in addition to the output parameter <span className="em">paging\_table</span>, created as result of the query. These should be cleared by the caller when they are done querying.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>A <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> object using which the user can decode the binary data by using <a className="reference internal" href="/content/api/python/source/gpudbrecord#gpudb.GPUdbRecord.decode_binary_data" title="gpudb.GPUdbRecord.decode_binary_data"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdbRecord.decode\_binary\_data()</span></code></a>. If JSON encoding is used, then None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.execute_sql_and_decode"> <span className="sig-name descname"><span className="pre">execute\_sql\_and\_decode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">statement</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">request\_schema\_str</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">data</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">force\_primitive\_return\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">get\_column\_major</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Execute a SQL statement (query, DML, or DDL).</p>
              <p>See <a className="reference external" href="/content/sql/">SQL Support</a> for the complete set of supported SQL commands.</p>
              <p>When a caller wants all the results from a large query (e.g., more than <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> records), they can make multiple calls to this endpoint using the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters to page through the results. Normally, this will execute the input parameter <span className="em">statement</span> query each time. To avoid re-executing the query each time and to keep the results in the same order, the caller should specify a <span className="em">paging\_table</span> name to hold the results of the query between calls and specify the <span className="em">paging\_table</span> on subsequent calls. When this is done, the caller should clear the paging table and any other tables in the <span className="em">result\_table\_list</span> (both returned in the response) when they are done paging through the results. Output parameter <span className="em">paging\_table</span> (and <span className="em">result\_table\_list</span>) will be empty if no paging table was created (e.g., when all the query results were returned in the first call).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">statement (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>SQL statement (query, DML, or DDL) to be executed.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; either ‘binary’ or ‘json’. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">request\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of input parameter <span className="em">data</span>. The default value is ‘’.</p>
                    </div>

                    <div className="dt">data (<span className="em">list of bytes</span>) –</div>

                    <div className="dd">
                      <p>An array of binary-encoded data for the records to be binded to the SQL query. Or use <span className="em">query\_parameters</span> to pass the data in JSON format. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>cost\_based\_optimization</strong> – If <span className="em">false</span>, disables the cost-based optimization of the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>distributed\_joins</strong> – If <span className="em">true</span>, enables the use of distributed joins in servicing the given query. Any query requiring a distributed join will succeed, though hints can be used in the query to change the distribution of the source data to allow the query to succeed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>distributed\_operations</strong> – If <span className="em">true</span>, enables the use of distributed operations in servicing the given query. Any query requiring a distributed join will succeed, though hints can be used in the query to change the distribution of the source data to allow the query to succeed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for inserting into or updating a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when primary key record collisions are rejected (<span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any record insert/update that is rejected for resulting in a primary key collision with an existing table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any insert/update for resulting in a primary key collision will cause an error to be reported. If the specified table does not have a primary key or if <span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore inserts/updates that result in primary key collisions with existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat as errors any inserts/updates that result in primary key collisions with existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>late\_materialization</strong> – If <span className="em">true</span>, Joins/Filters results will always be materialized ( saved to result tables format). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>paging\_table</strong> – When specified (or <span className="em">paging\_table\_ttl</span> is set), the system will create a paging table to hold the results of the query, when the output has more records than are in the response (i.e., when output parameter <span className="em">has\_more\_records</span> is <span className="em">true</span>). If the specified paging table exists, the records from the paging table are returned without re-evaluating the query. It is the caller’s responsibility to clear the output parameter <span className="em">paging\_table</span> and other tables in the <span className="em">result\_table\_list</span> (both returned in the response) when they are done with this query.</p>
                        </li>

                        <li>
                          <p><strong>paging\_table\_ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the paging table. -1 indicates no timeout. Setting this option will cause a paging table to be generated when needed. The output parameter <span className="em">paging\_table</span> and other tables in the <span className="em">result\_table\_list</span> (both returned in the response) will be automatically cleared after the TTL expires, if set to a positive number. However, it is still recommended that the caller clear these tables when they are done with this query.</p>
                        </li>

                        <li>
                          <p><strong>parallel\_execution</strong> – If <span className="em">false</span>, disables the parallel step execution of the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>plan\_cache</strong> – If <span className="em">false</span>, disables plan caching for the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>prepare\_mode</strong> – If <span className="em">true</span>, compiles a query into an execution plan and saves it in query cache. Query execution is not performed and an empty response will be returned to user. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>preserve\_dict\_encoding</strong> – If <span className="em">true</span>, then columns that were dict encoded in the source table will be dict encoded in the projection table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>query\_parameters</strong> – Query parameters in JSON array or arrays (for inserting multiple rows). This can be used instead of input parameter <span className="em">data</span> and input parameter <span className="em">request\_schema\_str</span>.</p>
                        </li>

                        <li>
                          <p><strong>results\_caching</strong> – If <span className="em">false</span>, disables caching of the results of the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>rule\_based\_optimization</strong> – If <span className="em">false</span>, disables rule-based rewrite optimizations for the given query. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>ssq\_optimization</strong> – If <span className="em">false</span>, scalar subqueries will be translated into joins. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the intermediate result tables used in query execution.</p>
                        </li>

                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for inserting into or updating a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. If set to <span className="em">true</span>, any existing table record with primary key values that match those of a record being inserted or updated will be replaced by that record. If set to <span className="em">false</span>, any such primary key collision will result in the insert/update being rejected and the error handled as determined by <span className="em">ignore\_existing\_pk</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Replace the collided-into record with the record inserted or updated when a new/modified record causes a primary key collision with an existing record.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject the insert or update when it results in a primary key collision with an existing record.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>validate\_change\_column</strong> – When changing a column using alter table, validate the change before applying it. If <span className="em">true</span>, then validate all values. A value too large (or too long) for the new type will prevent any change. If <span className="em">false</span>, then when a value is too large or long, it will be truncated. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>current\_schema</strong> – Use the supplied value as the <a className="reference external" href="/content/concepts/schemas/#default-schema">default schema</a> when processing this SQL command.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>The record type expected in the results, or None to determine the appropriate type automatically. If known, providing this may improve performance in binary mode. Not used in JSON mode. The default value is None.</p>
                    </div>

                    <div className="dt">force\_primitive\_return\_types (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If <cite>True</cite>, then <cite>OrderedDict</cite> objects will be returned, where string sub-type columns will have their values converted back to strings; for example, the Python <cite>datetime</cite> structs, used for datetime type columns would have their values returned as strings. If <cite>False</cite>, then <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned, which for string sub-types, will return native or custom structs; no conversion to string takes place. String conversions, when returning <cite>OrderedDicts</cite>, incur a speed penalty, and it is strongly recommended to use the <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> object option instead. If <cite>True</cite>, but none of the returned columns require a conversion, then the original <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned. Default value is True.</p>
                    </div>

                    <div className="dt">get\_column\_major (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates if the decoded records will be transposed to be column-major or returned as is (row-major). Default value is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count\_affected (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of objects/records affected.</p>
                    </div>

                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">paging\_table (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table that has the result records of the query. Valid, when output parameter <span className="em">has\_more\_records</span> is <span className="em">true</span>. The caller should clear this and all tables in <span className="em">result\_table\_list</span> when they are done querying.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>count</strong> – Number of records without final limits applied.</p>
                        </li>

                        <li>
                          <p><strong>result\_table\_list</strong> – List of tables, comma-separated, in addition to the output parameter <span className="em">paging\_table</span>, created as result of the query. These should be cleared by the caller when they are done querying.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">records (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects which contain the decoded records.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.export_query_metrics"> <span className="sig-name descname"><span className="pre">export\_query\_metrics</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Export query metrics to a given destination. Returns query metrics.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>expression</strong> – Filter for multi query export.</p>
                        </li>

                        <li>
                          <p><strong>filepath</strong> – Path to export target specified as a filename or existing directory.</p>
                        </li>

                        <li>
                          <p><strong>format</strong> – Specifies which format to export the metrics. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>json</strong> – Generic JSON output.</p>
                            </li>

                            <li>
                              <p><strong>json\_trace\_event</strong> – Chromium/Perfetto trace event format.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘json’.</p>
                        </li>

                        <li>
                          <p><strong>job\_id</strong> – Export query metrics for the currently running job.</p>
                        </li>

                        <li>
                          <p><strong>limit</strong> – Record limit per file for multi query export.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>exported\_files</strong> – Comma separated list of filenames exported if applicable.</p>
                        </li>

                        <li>
                          <p><strong>output</strong> – Exported metrics if no other destination specified.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.export_records_to_files"> <span className="sig-name descname"><span className="pre">export\_records\_to\_files</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">filepath</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Export records from a table to files. All tables can be exported, in full or partial (see <span className="em">columns\_to\_export</span> and <span className="em">columns\_to\_skip</span>). Additional filtering can be applied when using export table with expression through SQL. Default destination is KIFS, though other storage types (Azure, S3, GCS, and HDFS) are supported through <span className="em">datasink\_name</span>; see <a className="reference internal" href="#gpudb.GPUdb.create_datasink" title="gpudb.GPUdb.create_datasink"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_datasink()</span></code></a>.</p>
              <p>Server’s local file system is not supported. Default file format is delimited text. See options for different file types and different options for each file type. Table is saved to a single file if within max file size limits (may vary depending on datasink type). If not, then table is split into multiple files; these may be smaller than the max size limit.</p>
              <p>All filenames created are returned in the response.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The name of the table whose records are to be exported.</p>
                    </div>

                    <div className="dt">filepath (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Path to data export target. If input parameter <span className="em">filepath</span> has a file extension, it is read as the name of a file. If input parameter <span className="em">filepath</span> is a directory, then the source table name with a random UUID appended will be used as the name of each exported file, all written to that directory. If filepath is a filename, then all exported files will have a random UUID appended to the given name. In either case, the target directory specified or implied must exist. The names of all exported files are returned in the response.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>batch\_size</strong> – Number of records to be exported as a batch. The default value is ‘1000000’.</p>
                        </li>

                        <li>
                          <p><strong>column\_formats</strong> – For each source column specified, applies the column-property-bound format. Currently supported column properties include date, time, and datetime. The parameter value must be formatted as a JSON string of maps of column names to maps of column properties to their corresponding column formats, e.g., ‘{"{"} “order\_date” : {"{"} “date” : “%Y.%m.%d” {"}"}, “order\_time” : {"{"} “time” : “%H:%M:%S” {"}"} {"}"}’.</p>
                          <p>See <span className="em">default\_column\_formats</span> for valid format syntax.</p>
                        </li>

                        <li>
                          <p><strong>columns\_to\_export</strong> – Specifies a comma-delimited list of columns from the source table to export, written to the output file in the order they are given.</p>
                          <p>Column names can be provided, in which case the target file will use those names as the column headers as well.</p>
                          <p>Alternatively, column numbers can be specified–discretely or as a range. For example, a value of ‘5,7,1..3’ will write values from the fifth column in the source table into the first column in the target file, from the seventh column in the source table into the second column in the target file, and from the first through third columns in the source table into the third through fifth columns in the target file.</p>
                          <p>Mutually exclusive with <span className="em">columns\_to\_skip</span>.</p>
                        </li>

                        <li>
                          <p><strong>columns\_to\_skip</strong> – Comma-separated list of column names or column numbers to not export. All columns in the source table not specified will be written to the target file in the order they appear in the table definition. Mutually exclusive with <span className="em">columns\_to\_export</span>.</p>
                        </li>

                        <li>
                          <p><strong>datasink\_name</strong> – Datasink name, created using <a className="reference internal" href="#gpudb.GPUdb.create_datasink" title="gpudb.GPUdb.create_datasink"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_datasink()</span></code></a>.</p>
                        </li>

                        <li>
                          <p><strong>default\_column\_formats</strong> – Specifies the default format to use to write data. Currently supported column properties include date, time, and datetime. This default column-property-bound format can be overridden by specifying a column property and format for a given source column in <span className="em">column\_formats</span>. For each specified annotation, the format will apply to all columns with that annotation unless custom <span className="em">column\_formats</span> for that annotation are specified.</p>
                          <p>The parameter value must be formatted as a JSON string that is a map of column properties to their respective column formats, e.g., ‘{"{"} “date” : “%Y.%m.%d”, “time” : “%H:%M:%S” {"}"}’. Column formats are specified as a string of control characters and plain text. The supported control characters are ‘Y’, ‘m’, ‘d’, ‘H’, ‘M’, ‘S’, and ‘s’, which follow the Linux ‘strptime()’ specification, as well as ‘s’, which specifies seconds and fractional seconds (though the fractional component will be truncated past milliseconds).</p>
                          <p>Formats for the ‘date’ annotation must include the ‘Y’, ‘m’, and ‘d’ control characters. Formats for the ‘time’ annotation must include the ‘H’, ‘M’, and either ‘S’ or ‘s’ (but not both) control characters. Formats for the ‘datetime’ annotation meet both the ‘date’ and ‘time’ control character requirements. For example, ‘{"{"}“datetime” : “%m/%d/%Y %H:%M:%S” {"}"}’ would be used to write text as “05/04/2000 12:12:11”</p>
                        </li>

                        <li>
                          <p><strong>export\_ddl</strong> – Save DDL to a separate file. The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>file\_extension</strong> – Extension to give the export file. The default value is ‘.csv’.</p>
                        </li>

                        <li>
                          <p><strong>file\_type</strong> – Specifies the file format to use when exporting data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>delimited\_text</strong> – Delimited text file format; e.g., CSV, TSV, PSV, etc.</p>
                            </li>

                            <li>
                              <p>parquet</p>
                            </li>
                          </ul>

                          <p>The default value is ‘delimited\_text’.</p>
                        </li>

                        <li>
                          <p><strong>kinetica\_header</strong> – Whether to include a Kinetica proprietary header. Will not be written if <span className="em">text\_has\_header</span> is <span className="em">false</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>kinetica\_header\_delimiter</strong> – If a Kinetica proprietary header is included, then specify a property separator. Different from column delimiter. The default value is ‘|’.</p>
                        </li>

                        <li>
                          <p><strong>compression\_type</strong> – File compression type. GZip can be applied to text and Parquet files. Snappy can only be applied to Parquet files, and is the default compression for them. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>uncompressed</p>
                            </li>

                            <li>
                              <p>snappy</p>
                            </li>

                            <li>
                              <p>gzip</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>single\_file</strong> – Save records to a single file. This option may be ignored if file size exceeds internal file size limits (this limit will differ on different targets). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>

                            <li>
                              <p>overwrite</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>single\_file\_max\_size</strong> – Max file size (in MB) to allow saving to a single file. May be overridden by target limitations. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>text\_delimiter</strong> – Specifies the character to write out to delimit field values and field names in the header (if present).</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘,’.</p>
                        </li>

                        <li>
                          <p><strong>text\_has\_header</strong> – Indicates whether to write out a header row.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>text\_null\_string</strong> – Specifies the character string that should be written out for the null value in the data.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘\N’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of source table.</p>
                    </div>

                    <div className="dt">count\_exported (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of source table records exported.</p>
                    </div>

                    <div className="dt">count\_skipped (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of source table records skipped.</p>
                    </div>

                    <div className="dt">files (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of all exported files.</p>
                    </div>

                    <div className="dt">last\_timestamp (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Timestamp of last file scanned.</p>
                    </div>

                    <div className="dt">data\_text (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>\[Not used].</p>
                    </div>

                    <div className="dt">data\_bytes (<span className="em">list of bytes</span>) –</div>

                    <div className="dd">
                      <p>\[Not used].</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.export_records_to_table"> <span className="sig-name descname"><span className="pre">export\_records\_to\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">remote\_query</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Exports records from source table to the specified target table in an external database.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table from which the data will be exported to remote database, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">remote\_query (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Parameterized insert query to export gpudb table data into remote database. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>batch\_size</strong> – Batch size, which determines how many rows to export per round trip. The default value is ‘200000’.</p>
                        </li>

                        <li>
                          <p><strong>datasink\_name</strong> – Name of an existing external data sink to which table name specified in input parameter <span className="em">table\_name</span> will be exported.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_session\_init\_statement</strong> – Executes the statement per each JDBC session before doing actual load. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_connection\_init\_statement</strong> – Executes the statement once before doing actual load. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>remote\_table</strong> – Name of the target table to which source table is exported. When this option is specified remote\_query cannot be specified. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>use\_st\_geomfrom\_casts</strong> – Wraps parameterized variables with st\_geomfromtext or st\_geomfromwkb based on source column type. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>use\_indexed\_parameters</strong> – Uses \$n style syntax when generating insert query for remote\_table option. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">count\_inserted (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records inserted into the target table.</p>
                    </div>

                    <div className="dt">count\_skipped (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records skipped.</p>
                    </div>

                    <div className="dt">count\_updated (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>\[Not yet implemented] Number of records updated within the target table.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter"> <span className="sig-name descname"><span className="pre">filter</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">expression</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Filters data based on the specified expression. The results are stored in a <a className="reference external" href="/content/concepts/filtered_views/">result set</a> with the given input parameter <span className="em">view\_name</span>.</p>
              <p>For details see <a className="reference external" href="/content/concepts/expressions/">Expressions</a>.</p>
              <p>The response message contains the number of points for which the expression evaluated to be true, which is equivalent to the size of the result view.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to filter, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. This may be the name of a table or a view (when chaining queries).</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">expression (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The select expression to filter the specified table. For details see <a className="reference external" href="/content/concepts/expressions/">Expressions</a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>view\_id</strong> – View this filtered-view is part of. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the view specified in input parameter <span className="em">view\_name</span>.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records that matched the given select expression.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_area"> <span className="sig-name descname"><span className="pre">filter\_by\_area</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_vector</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_vector</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which objects from a table are within a named area of interest (NAI/polygon). The operation is synchronous, meaning that a response will not be returned until all the matching objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input NAI restriction specification is created with the name input parameter <span className="em">view\_name</span> passed in as part of the input.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to filter, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. This may be the name of a table or a view (when chaining queries).</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">x\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column containing the x values to be filtered.</p>
                    </div>

                    <div className="dt">x\_vector (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>List of x coordinates of the vertices of the polygon representing the area to be filtered. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">y\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column containing the y values to be filtered.</p>
                    </div>

                    <div className="dt">y\_vector (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>List of y coordinates of the vertices of the polygon representing the area to be filtered. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the area filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_area_geometry"> <span className="sig-name descname"><span className="pre">filter\_by\_area\_geometry</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_vector</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_vector</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which geospatial geometry objects from a table intersect a named area of interest (NAI/polygon). The operation is synchronous, meaning that a response will not be returned until all the matching objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input NAI restriction specification is created with the name input parameter <span className="em">view\_name</span> passed in as part of the input.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to filter, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. This may be the name of a table or a view (when chaining queries).</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the geospatial geometry column to be filtered.</p>
                    </div>

                    <div className="dt">x\_vector (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>List of x coordinates of the vertices of the polygon representing the area to be filtered. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">y\_vector (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>List of y coordinates of the vertices of the polygon representing the area to be filtered. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] The schema for the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the area filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_box"> <span className="sig-name descname"><span className="pre">filter\_by\_box</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min\_x</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_x</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min\_y</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_y</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates how many objects within the given table lie in a rectangular box. The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new resultant set which satisfies the input NAI restriction specification is also created when a input parameter <span className="em">view\_name</span> is passed in as part of the input payload.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the bounding box operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">x\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column on which to perform the bounding box query. Must be a valid numeric column.</p>
                    </div>

                    <div className="dt">min\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower bound for the column chosen by input parameter <span className="em">x\_column\_name</span>. Must be less than or equal to input parameter <span className="em">max\_x</span>.</p>
                    </div>

                    <div className="dt">max\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper bound for input parameter <span className="em">x\_column\_name</span>. Must be greater than or equal to input parameter <span className="em">min\_x</span>.</p>
                    </div>

                    <div className="dt">y\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a column on which to perform the bounding box query. Must be a valid numeric column.</p>
                    </div>

                    <div className="dt">min\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower bound for input parameter <span className="em">y\_column\_name</span>. Must be less than or equal to input parameter <span className="em">max\_y</span>.</p>
                    </div>

                    <div className="dt">max\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper bound for input parameter <span className="em">y\_column\_name</span>. Must be greater than or equal to input parameter <span className="em">min\_y</span>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the box filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_box_geometry"> <span className="sig-name descname"><span className="pre">filter\_by\_box\_geometry</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min\_x</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_x</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min\_y</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_y</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which geospatial geometry objects from a table intersect a rectangular box. The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new resultant set which satisfies the input NAI restriction specification is also created when a input parameter <span className="em">view\_name</span> is passed in as part of the input payload.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the bounding box operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the geospatial geometry column to be filtered.</p>
                    </div>

                    <div className="dt">min\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower bound for the x-coordinate of the rectangular box. Must be less than or equal to input parameter <span className="em">max\_x</span>.</p>
                    </div>

                    <div className="dt">max\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper bound for the x-coordinate of the rectangular box. Must be greater than or equal to input parameter <span className="em">min\_x</span>.</p>
                    </div>

                    <div className="dt">min\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower bound for the y-coordinate of the rectangular box. Must be less than or equal to input parameter <span className="em">max\_y</span>.</p>
                    </div>

                    <div className="dt">max\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper bound for the y-coordinate of the rectangular box. Must be greater than or equal to input parameter <span className="em">min\_y</span>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the box filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_geometry"> <span className="sig-name descname"><span className="pre">filter\_by\_geometry</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">input\_wkt</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">operation</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Applies a geometry filter against a geospatial geometry column in a given table or view. The filtering geometry is provided by input parameter <span className="em">input\_wkt</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the filter by geometry will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table or view containing a geospatial geometry column.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column to be used in the filter. Must be a geospatial geometry column.</p>
                    </div>

                    <div className="dt">input\_wkt (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A geometry in WKT format that will be used to filter the objects in input parameter <span className="em">table\_name</span>. The default value is ‘’.</p>
                    </div>

                    <div className="dt">operation (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The geometric filtering operation to perform. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>contains</strong> – Matches records that contain the given WKT in input parameter <span className="em">input\_wkt</span>, i.e. the given WKT is within the bounds of a record’s geometry.</p>
                        </li>

                        <li>
                          <p><strong>crosses</strong> – Matches records that cross the given WKT.</p>
                        </li>

                        <li>
                          <p><strong>disjoint</strong> – Matches records that are disjoint from the given WKT.</p>
                        </li>

                        <li>
                          <p><strong>equals</strong> – Matches records that are the same as the given WKT.</p>
                        </li>

                        <li>
                          <p><strong>intersects</strong> – Matches records that intersect the given WKT.</p>
                        </li>

                        <li>
                          <p><strong>overlaps</strong> – Matches records that overlap the given WKT.</p>
                        </li>

                        <li>
                          <p><strong>touches</strong> – Matches records that touch the given WKT.</p>
                        </li>

                        <li>
                          <p><strong>within</strong> – Matches records that are within the given WKT.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the geometry filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_list"> <span className="sig-name descname"><span className="pre">filter\_by\_list</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_values\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which records from a table have values in the given list for the corresponding column. The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input filter specification is also created if a input parameter <span className="em">view\_name</span> is passed in as part of the request.</p>
              <p>For example, if a type definition has the columns ‘x’ and ‘y’, then a filter by list query with the column map {"{"}“x”:\[“10.1”, “2.3”], “y”:\[“0.0”, “-31.5”, “42.0”]{"}"} will return the count of all data points whose x and y values match both in the respective x- and y-lists, e.g., “x = 10.1 and y = 0.0”, “x = 2.3 and y = -31.5”, etc. However, a record with “x = 10.1 and y = -31.5” or “x = 2.3 and y = 0.0” would not be returned because the values in the given lists do not correspond.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to filter, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. This may be the name of a table or a view (when chaining queries).</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_values\_map (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>List of values for the corresponding column in the table.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>filter\_mode</strong> – String indicating the filter mode, either ‘in\_list’ or ‘not\_in\_list’. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>in\_list</strong> – The filter will match all items that are in the provided list(s).</p>
                            </li>

                            <li>
                              <p><strong>not\_in\_list</strong> – The filter will match all items that are not in the provided list(s).</p>
                            </li>
                          </ul>

                          <p>The default value is ‘in\_list’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the list filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_radius"> <span className="sig-name descname"><span className="pre">filter\_by\_radius</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_center</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_center</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">radius</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which objects from a table lie within a circle with the given radius and center point (i.e. circular NAI). The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input circular NAI restriction specification is also created if a input parameter <span className="em">view\_name</span> is passed in as part of the request.</p>
              <p>For track data, all track points that lie within the circle plus one point on either side of the circle (if the track goes beyond the circle) will be included in the result.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the filter by radius operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">x\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column to be used for the x-coordinate (the longitude) of the center.</p>
                    </div>

                    <div className="dt">x\_center (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Value of the longitude of the center. Must be within \[-180.0, 180.0]. The minimum allowed value is -180. The maximum allowed value is 180.</p>
                    </div>

                    <div className="dt">y\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column to be used for the y-coordinate-the latitude-of the center.</p>
                    </div>

                    <div className="dt">y\_center (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Value of the latitude of the center. Must be within \[-90.0, 90.0]. The minimum allowed value is -90. The maximum allowed value is 90.</p>
                    </div>

                    <div className="dt">radius (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The radius of the circle within which the search will be performed. Must be a non-zero positive value. It is in meters; so, for example, a value of ‘42000’ means 42 km. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema which is to contain the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the radius filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_radius_geometry"> <span className="sig-name descname"><span className="pre">filter\_by\_radius\_geometry</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_center</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_center</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">radius</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which geospatial geometry objects from a table intersect a circle with the given radius and center point (i.e. circular NAI). The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input circular NAI restriction specification is also created if a input parameter <span className="em">view\_name</span> is passed in as part of the request.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the filter by radius operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the geospatial geometry column to be filtered.</p>
                    </div>

                    <div className="dt">x\_center (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Value of the longitude of the center. Must be within \[-180.0, 180.0]. The minimum allowed value is -180. The maximum allowed value is 180.</p>
                    </div>

                    <div className="dt">y\_center (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Value of the latitude of the center. Must be within \[-90.0, 90.0]. The minimum allowed value is -90. The maximum allowed value is 90.</p>
                    </div>

                    <div className="dt">radius (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The radius of the circle within which the search will be performed. Must be a non-zero positive value. It is in meters; so, for example, a value of ‘42000’ means 42 km. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema provided is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the radius filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_range"> <span className="sig-name descname"><span className="pre">filter\_by\_range</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">lower\_bound</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">upper\_bound</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which objects from a table have a column that is within the given bounds. An object from the table identified by input parameter <span className="em">table\_name</span> is added to the view input parameter <span className="em">view\_name</span> if its column is within \[input parameter <span className="em">lower\_bound</span>, input parameter <span className="em">upper\_bound</span>] (inclusive). The operation is synchronous. The response provides a count of the number of objects which passed the bound filter. Although this functionality can also be accomplished with the standard filter function, it is more efficient.</p>
              <p>For track objects, the count reflects how many points fall within the given bounds (which may not include all the track points of any given track).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the filter by range operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a column on which the operation would be applied.</p>
                    </div>

                    <div className="dt">lower\_bound (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Value of the lower bound (inclusive).</p>
                    </div>

                    <div className="dt">upper\_bound (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Value of the upper bound (inclusive).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the range filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema)</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_series"> <span className="sig-name descname"><span className="pre">filter\_by\_series</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">track\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">target\_track\_ids</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Filters objects matching all points of the given track (works only on track type data). It allows users to specify a particular track to find all other points in the table that fall within specified ranges (spatial and temporal) of all points of the given track. Additionally, the user can specify another track to see if the two intersect (or go close to each other within the specified ranges). The user also has the flexibility of using different metrics for the spatial distance calculation: Euclidean (flat geometry) or Great Circle (spherical geometry to approximate the Earth’s surface distances). The filtered points are stored in a newly created result set. The return value of the function is the number of points in the resultant set (view).</p>
              <p>This operation is synchronous, meaning that a response will not be returned until all the objects are fully available.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the filter by track operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be a currently existing table with a <a className="reference external" href="/content/geospatial/geo_objects/">track</a> present.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">track\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The ID of the track which will act as the filtering points. Must be an existing track within the given table.</p>
                    </div>

                    <div className="dt">target\_track\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Up to one track ID to intersect with the “filter” track. If any provided, it must be an valid track ID within the given set. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>spatial\_radius</strong> – A positive number passed as a string representing the radius of the search area centered around each track point’s geospatial coordinates. The value is interpreted in meters. Required parameter. The minimum allowed value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>time\_radius</strong> – A positive number passed as a string representing the maximum allowable time difference between the timestamps of a filtered object and the given track’s points. The value is interpreted in seconds. Required parameter. The minimum allowed value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>spatial\_distance\_metric</strong> – A string representing the coordinate system to use for the spatial search criteria. Acceptable values are ‘euclidean’ and ‘great\_circle’. Optional parameter; default is ‘euclidean’. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>euclidean</p>
                            </li>

                            <li>
                              <p>great\_circle</p>
                            </li>
                          </ul>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the series filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_string"> <span className="sig-name descname"><span className="pre">filter\_by\_string</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">expression</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">mode</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which objects from a table or view match a string expression for the given string columns. Setting <span className="em">case\_sensitive</span> can modify case sensitivity in matching for all modes except <span className="em">search</span>. For <span className="em">search</span> mode details and limitations, see <a className="reference external" href="/content/concepts/full_text_search/">Full Text Search</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table on which the filter operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table or view.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">expression (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The expression with which to filter the table.</p>
                    </div>

                    <div className="dt">mode (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The string filtering mode to apply. See below for details. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>search</strong> – Full text search query with wildcards and boolean operators. Note that for this mode, no column can be specified in input parameter <span className="em">column\_names</span>; all string columns of the table that have text search enabled will be searched.</p>
                        </li>

                        <li>
                          <p><strong>equals</strong> – Exact whole-string match (accelerated).</p>
                        </li>

                        <li>
                          <p><strong>contains</strong> – Partial substring match (not accelerated). If the column is a string type (non-charN) and the number of records is too large, it will return 0.</p>
                        </li>

                        <li>
                          <p><strong>starts\_with</strong> – Strings that start with the given expression (not accelerated). If the column is a string type (non-charN) and the number of records is too large, it will return 0.</p>
                        </li>

                        <li>
                          <p><strong>regex</strong> – Full regular expression search (not accelerated). If the column is a string type (non-charN) and the number of records is too large, it will return 0.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of columns on which to apply the filter. Ignored for <span className="em">search</span> mode. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>case\_sensitive</strong> – If <span className="em">false</span> then string filtering will ignore case. Does not apply to <span className="em">search</span> mode. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records that passed the string filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_table"> <span className="sig-name descname"><span className="pre">filter\_by\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">source\_table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">source\_table\_column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Filters objects in one table based on objects in another table. The user must specify matching column types from the two tables (i.e. the target table from which objects will be filtered and the source table based on which the filter will be created); the column names need not be the same. If a input parameter <span className="em">view\_name</span> is specified, then the filtered objects will then be put in a newly created view. The operation is synchronous, meaning that a response will not be returned until all objects are fully available in the result view. The return value contains the count (i.e. the size) of the resulting view.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table whose data will be filtered, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column by whose value the data will be filtered from the table designated by input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">source\_table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table whose data will be compared against in the table called input parameter <span className="em">table\_name</span>, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">source\_table\_column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the column in the input parameter <span className="em">source\_table\_name</span> whose values will be used as the filter for table input parameter <span className="em">table\_name</span>. Must be a geospatial geometry column if in ‘spatial’ mode; otherwise, Must match the type of the input parameter <span className="em">column\_name</span>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>

                        <li>
                          <p><strong>filter\_mode</strong> – String indicating the filter mode, either <span className="em">in\_table</span> or <span className="em">not\_in\_table</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>in\_table</p>
                            </li>

                            <li>
                              <p>not\_in\_table</p>
                            </li>
                          </ul>

                          <p>The default value is ‘in\_table’.</p>
                        </li>

                        <li>
                          <p><strong>mode</strong> – Mode - should be either <span className="em">spatial</span> or <span className="em">normal</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>normal</p>
                            </li>

                            <li>
                              <p>spatial</p>
                            </li>
                          </ul>

                          <p>The default value is ‘normal’.</p>
                        </li>

                        <li>
                          <p><strong>buffer</strong> – Buffer size, in meters. Only relevant for <span className="em">spatial</span> mode. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>buffer\_method</strong> – Method used to buffer polygons. Only relevant for <span className="em">spatial</span> mode. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>normal</p>
                            </li>

                            <li>
                              <p><strong>geos</strong> – Use geos 1 edge per corner algorithm.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘normal’.</p>
                        </li>

                        <li>
                          <p><strong>max\_partition\_size</strong> – Maximum number of points in a partition. Only relevant for <span className="em">spatial</span> mode. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>max\_partition\_score</strong> – Maximum number of points \* edges in a partition. Only relevant for <span className="em">spatial</span> mode. The default value is ‘8000000’.</p>
                        </li>

                        <li>
                          <p><strong>x\_column\_name</strong> – Name of column containing x value of point being filtered in <span className="em">spatial</span> mode. The default value is ‘x’.</p>
                        </li>

                        <li>
                          <p><strong>y\_column\_name</strong> – Name of column containing y value of point being filtered in <span className="em">spatial</span> mode. The default value is ‘y’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records in input parameter <span className="em">table\_name</span> that have input parameter <span className="em">column\_name</span> values matching input parameter <span className="em">source\_table\_column\_name</span> values in input parameter <span className="em">source\_table\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.filter_by_value"> <span className="sig-name descname"><span className="pre">filter\_by\_value</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">view\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">is\_string</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">value\_str</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Calculates which objects from a table has a particular value for a particular column. The input parameters provide a way to specify either a String or a Double valued column and a desired value for the column on which the filter is performed. The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new result view which satisfies the input filter restriction specification is also created with a view name passed in as part of the input payload. Although this functionality can also be accomplished with the standard filter function, it is more efficient.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of an existing table on which to perform the calculation, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">view\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. Must not be an already existing table or view. The default value is ‘’.</p>
                    </div>

                    <div className="dt">is\_string (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates whether the value being searched for is string or numeric.</p>
                    </div>

                    <div className="dt">value (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The value to search for. The default value is 0.</p>
                    </div>

                    <div className="dt">value\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The string value to search for. The default value is ‘’.</p>
                    </div>

                    <div className="dt">column\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of a column on which the filter by value would be applied.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>create\_temp\_table</strong> – If <span className="em">true</span>, a unique temporary table name will be generated in the sys\_temp schema and used in place of input parameter <span className="em">view\_name</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <span className="em">qualified\_view\_name</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>collection\_name</strong> – \[DEPRECATED–please specify the containing schema for the view as part of input parameter <span className="em">view\_name</span> and use <a className="reference internal" href="#gpudb.GPUdb.create_schema" title="gpudb.GPUdb.create_schema"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_schema()</span></code></a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>The number of records passing the value filter.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>qualified\_view\_name</strong> – The fully qualified name of the view (i.e. including the schema).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_graph_entities"> <span className="sig-name descname"><span className="pre">get\_graph\_entities</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">10000</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves node or edge entities from an existing graph, with pagination support via offset and limit. Use <a className="reference internal" href="#gpudb.GPUdb.show_graph" title="gpudb.GPUdb.show_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_graph()</span></code></a> to obtain the total number of nodes and edges.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph from which to retrieve entities.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Starting index of the entities to retrieve (0-based). The default value is 0.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of entities to retrieve starting from input parameter <span className="em">offset</span>. A value of -1 returns all entities from the offset to the end. Note: the output parameter <span className="em">entities\_int</span> or output parameter <span className="em">entities\_string</span> array size will be 2x this value for nodes (stride 2) or 4x for edges (stride 4). The default value is 10000.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>entity\_type</strong> – The type of entity to retrieve. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>edge</strong> – Retrieve edge entities (default).</p>
                            </li>

                            <li>
                              <p><strong>node</strong> – Retrieve node entities.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘edge’.</p>
                        </li>

                        <li>
                          <p><strong>server\_id</strong> – Indicates which graph server to send the request to. Required when the graph is distributed across multiple servers. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>concise\_edge\_connectivity</strong> – When true, edges are emitted in a compact connectivity form regardless of the graph’s identifier type: Output parameter <span className="em">entities\_int</span> contains stride-4 records \[edge\_id, node1\_index, node2\_index, edge\_label\_index] where node1\_index/node2\_index are 0-based positions into the node array (obtained from a node-entity call on the same graph). When requesting nodes with this option, the response includes tombstoned (deleted) slots in order to keep position indices stable so edge indices resolve correctly; deleted slots carry id=0 for integer graphs or an empty identifier for string/WKT graphs. For paginated node calls, subtract input parameter <span className="em">offset</span> from an edge endpoint index to locate it within the returned page. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Compact integer connectivity for edges; deleted node slots included in node output.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Default: edges emit node identifiers (int/string/WKT) matching the graph; deleted nodes are skipped.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>include\_weights</strong> – When true and input parameter <span className="em">options entity\_type</span> is ‘edge’, the response output parameter <span className="em">entities\_weight</span> array is populated with one float weight per emitted edge (aligned 1:1 with the edge records in output parameter <span className="em">entities\_int</span> or output parameter <span className="em">entities\_string</span>). Empty when the graph has no weights component or when requesting nodes. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Populate output parameter <span className="em">entities\_weight</span> with per-edge weights (edge requests only).</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Default: Output parameter <span className="em">entities\_weight</span> is empty.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a successful retrieval.</p>
                    </div>

                    <div className="dt">entities\_int (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Flat array of entity data for integer-identifier graphs with a repeating stride. For node entities (stride 2): \[node\_id, label\_index, …]. For edge entities (stride 4): \[edge\_id, node1\_id, node2\_id, label\_index, …]. Populated when the graph uses integer identifiers; empty otherwise. The label\_index is a 1-based index into the output parameter <span className="em">labels</span> array; 0 indicates no label. When the request option ‘concise\_edge\_connectivity’ is ‘true’, this array is also used (regardless of graph identifier type) for edge entities and carries \[edge\_id, node1\_index, node2\_index, edge\_label\_index] where node1\_index/node2\_index are 0-based positions into the node array returned from a paired node call on the same graph.</p>
                    </div>

                    <div className="dt">entities\_string (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Flat array of entity data for name-identifier (string) graphs only. For node entities (stride 2): \[node\_name, label\_index, …]. For edge entities (stride 4): \[edge\_id, node1\_name, node2\_name, label\_index, …]. Populated only when the graph uses string identifiers. Empty for integer-identifier graphs (data goes to output parameter <span className="em">entities\_int</span>) and for WKT/geo-XY graphs (data always goes to output parameter <span className="em">entities\_double</span> — ‘POINT(x y)’ strings are never emitted). The label\_index is a string representation of a 1-based index into the output parameter <span className="em">labels</span> array; ‘0’ indicates no label.</p>
                    </div>

                    <div className="dt">entities\_double (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>Compact double-packed payload for WKT (geo/XY) graphs. WKT graphs ALWAYS use this array — ‘POINT(x y)’ strings are never emitted anywhere. Stride 3 for nodes: \[x, y, label\_index, …]. Stride 6 for edges (non-concise): \[edge\_id, x0, y0, x1, y1, label\_index, …]. Empty for non-WKT graphs and when concise mode emits edges into output parameter <span className="em">entities\_int</span> instead. label\_index/edge\_id occupy double slots (representable exactly up to 2^53). When ‘concise\_edge\_connectivity’ is ‘true’ and entity\_type is ‘node’, tombstoned (deleted) WKT slots emit \[0.0, 0.0, 0.0] to keep position indices stable. Roughly 4x smaller on the wire than ‘POINT(x y)’ strings and avoids any client-side regex parse.</p>
                    </div>

                    <div className="dt">entities\_weight (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>Per-edge weight values, populated only when the request option ‘include\_weights’ is ‘true’ and input parameter <span className="em">options entity\_type</span> is ‘edge’. Stride 1, aligned 1:1 with the edge records emitted in output parameter <span className="em">entities\_int</span> or output parameter <span className="em">entities\_string</span> (i.e. the i-th weight corresponds to the i-th edge record). Empty when the graph has no weights component, when requesting nodes, or when the option is not set. Single-precision float matches the graph server’s native weight storage.</p>
                    </div>

                    <div className="dt">labels (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Array of distinct label strings. The label\_index values in output parameter <span className="em">entities\_int</span>, output parameter <span className="em">entities\_string</span>, or output parameter <span className="em">entities\_double</span> are 1-based indexes into this array; index 0 means no label.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information map. Contains the following keys: ‘identifier\_type’ — describes the graph’s native node identifier type: ‘int’, ‘string’, or ‘wkt’ (geo/XY graph). ‘payload\_type’ — describes which array actually holds this response payload: ‘int’ (output parameter <span className="em">entities\_int</span>), ‘string’ (output parameter <span className="em">entities\_string</span>), or ‘double’ (output parameter <span className="em">entities\_double</span>). WKT graphs ALWAYS use ‘double’ for both nodes and edges — ‘POINT(x y)’ strings are never emitted. In concise edge mode payload\_type is ‘int’ regardless of graph type. Clients should dispatch on ‘payload\_type’, not ‘identifier\_type’, to parse the response. ‘total\_count’ — total number of entities available in the graph for the requested entity\_type, used for pagination; this is the live (non-deleted) count by default, or the raw count (including deleted slots) when ‘concise\_edge\_connectivity’ is true for a node request. ‘status\_message’ — set to ‘Cancelled’ if the request was cancelled mid-iteration (with output parameter <span className="em">result</span> set to false). ‘concise\_edge\_connectivity’ — set to ‘true’ when the response was produced with the concise option (edges emitted as \[edge\_id, v0\_index, v1\_index, label\_idx] in output parameter <span className="em">entities\_int</span>; WKT-graph nodes emitted as \[x, y, label\_idx] in output parameter <span className="em">entities\_double</span>; non-WKT nodes still in their native array; node output includes deleted slots to keep indices stable). ‘include\_weights’ — set to ‘true’ when output parameter <span className="em">entities\_weight</span> is populated.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_job"> <span className="sig-name descname"><span className="pre">get\_job</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">job\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Get the status and result of asynchronously running job. See the <a className="reference internal" href="#gpudb.GPUdb.create_job" title="gpudb.GPUdb.create_job"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_job()</span></code></a> for starting an asynchronous job. Some fields of the response are filled only after the submitted job has finished execution.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">job\_id (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A unique identifier for the job whose status and result is to be fetched.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>job\_tag</strong> – Job tag returned in call to create the job.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">endpoint (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The endpoint which is being executed asynchronously. E.g. ‘/alter/table’.</p>
                    </div>

                    <div className="dt">job\_status (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Status of the submitted job. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>RUNNING</strong> – The job is currently executing.</p>
                        </li>

                        <li>
                          <p><strong>DONE</strong> – The job execution has successfully completed and the response is included in the output parameter <span className="em">job\_response</span> or output parameter <span className="em">job\_response\_str</span> field.</p>
                        </li>

                        <li>
                          <p><strong>ERROR</strong> – The job was attempted, but an error was encountered. The output parameter <span className="em">status\_map</span> contains the details of the error in error\_message.</p>
                        </li>

                        <li>
                          <p><strong>CANCELLED</strong> – Job cancellation was requested while the execution was in progress.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">running (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>True if the end point is still executing.</p>
                    </div>

                    <div className="dt">progress (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Approximate percentage of the job completed.</p>
                    </div>

                    <div className="dt">successful (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>True if the job execution completed and no errors were encountered.</p>
                    </div>

                    <div className="dt">response\_encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The encoding of the job result (contained in output parameter <span className="em">job\_response</span> or output parameter <span className="em">job\_response\_str</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>binary</strong> – The job result is binary-encoded. It is contained in output parameter <span className="em">job\_response</span>.</p>
                        </li>

                        <li>
                          <p><strong>json</strong> – The job result is JSON-encoded. It is contained in output parameter <span className="em">job\_response\_str</span>.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">job\_response (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>The binary-encoded response of the job. This field is populated only when the job has completed and output parameter <span className="em">response\_encoding</span> is <span className="em">binary</span>.</p>
                    </div>

                    <div className="dt">job\_response\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The json-encoded response of the job. This field is populated only when the job has completed and output parameter <span className="em">response\_encoding</span> is <span className="em">json</span>.</p>
                    </div>

                    <div className="dt">status\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of various status strings for the executed job. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>error\_message</strong> – Explains what error occurred while running the job asynchronously. This entry only exists when the job status is <span className="em">ERROR</span>.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records"> <span className="sig-name descname"><span className="pre">get\_records</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">get\_record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves records from a given table, optionally filtered by an expression and/or sorted by a column. This operation can be performed on tables and views. Records can be returned encoded as binary, json, or geojson.</p>
              <p>This operation supports paging through the data via the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters. Note that when paging through a table, if the table (or the underlying table in case of a view) is updated (records are inserted, deleted or modified) the records retrieved may differ between calls based on the updates applied.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table or view from which the records will be fetched, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; one of <span className="em">binary</span>, <span className="em">json</span>, or <span className="em">geojson</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>

                        <li>
                          <p>geojson</p>
                        </li>

                        <li>
                          <p>arrow</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table.</p>
                        </li>

                        <li>
                          <p><strong>fast\_index\_lookup</strong> – Indicates if indexes should be used to perform the lookup for a given expression if possible. Only applicable if there is no sorting, the expression contains only equivalence comparisons based on existing tables indexes and the range of requested values is from \[0 to END\_OF\_SET]. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>sort\_by</strong> – Column that the data should be sorted by. Empty by default (i.e. no sorting is applied).</p>
                        </li>

                        <li>
                          <p><strong>sort\_order</strong> – String indicating how the returned values should be sorted - ascending or descending. If sort\_order is provided, sort\_by has to be provided. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>ascending</p>
                            </li>

                            <li>
                              <p>descending</p>
                            </li>
                          </ul>

                          <p>The default value is ‘ascending’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">get\_record\_type (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If True, deduce and return the record type for the returned records. Default is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The name of the type of the returned records.</p>
                    </div>

                    <div className="dt">type\_schema (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">records\_binary</span> or output parameter <span className="em">records\_json</span>.</p>
                    </div>

                    <div className="dt">records\_binary (<span className="em">list of bytes</span>) –</div>

                    <div className="dd">
                      <p>If the input parameter <span className="em">encoding</span> was ‘binary’, then this list contains the binary encoded records retrieved from the table, otherwise not populated.</p>
                    </div>

                    <div className="dt">records\_json (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>If the input parameter <span className="em">encoding</span> was ‘json’, then this list contains the JSON encoded records retrieved from the table. If the input parameter <span className="em">encoding</span> was ‘geojson’ this list contains a single entry consisting of a GeoJSON FeatureCollection containing a feature per record. Otherwise not populated.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>A <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> object using which the user can decode the binary data by using <a className="reference internal" href="/content/api/python/source/gpudbrecord#gpudb.GPUdbRecord.decode_binary_data" title="gpudb.GPUdbRecord.decode_binary_data"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdbRecord.decode\_binary\_data()</span></code></a>. Available only if get\_record\_type is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records_and_decode"> <span className="sig-name descname"><span className="pre">get\_records\_and\_decode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">force\_primitive\_return\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves records from a given table, optionally filtered by an expression and/or sorted by a column. This operation can be performed on tables and views. Records can be returned encoded as binary, json, or geojson.</p>
              <p>This operation supports paging through the data via the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters. Note that when paging through a table, if the table (or the underlying table in case of a view) is updated (records are inserted, deleted or modified) the records retrieved may differ between calls based on the updates applied.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table or view from which the records will be fetched, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; one of <span className="em">binary</span>, <span className="em">json</span>, or <span className="em">geojson</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>

                        <li>
                          <p>geojson</p>
                        </li>

                        <li>
                          <p>arrow</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table.</p>
                        </li>

                        <li>
                          <p><strong>fast\_index\_lookup</strong> – Indicates if indexes should be used to perform the lookup for a given expression if possible. Only applicable if there is no sorting, the expression contains only equivalence comparisons based on existing tables indexes and the range of requested values is from \[0 to END\_OF\_SET]. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>sort\_by</strong> – Column that the data should be sorted by. Empty by default (i.e. no sorting is applied).</p>
                        </li>

                        <li>
                          <p><strong>sort\_order</strong> – String indicating how the returned values should be sorted - ascending or descending. If sort\_order is provided, sort\_by has to be provided. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>ascending</p>
                            </li>

                            <li>
                              <p>descending</p>
                            </li>
                          </ul>

                          <p>The default value is ‘ascending’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>The record type expected in the results, or None to determine the appropriate type automatically. If known, providing this may improve performance in binary mode. Not used in JSON mode. The default value is None.</p>
                    </div>

                    <div className="dt">force\_primitive\_return\_types (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If <cite>True</cite>, then <cite>OrderedDict</cite> objects will be returned, where string sub-type columns will have their values converted back to strings; for example, the Python <cite>datetime</cite> structs, used for datetime type columns would have their values returned as strings. If <cite>False</cite>, then <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned, which for string sub-types, will return native or custom structs; no conversion to string takes place. String conversions, when returning <cite>OrderedDicts</cite>, incur a speed penalty, and it is strongly recommended to use the <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> object option instead. If <cite>True</cite>, but none of the returned columns require a conversion, then the original <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned. Default value is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The name of the type of the returned records.</p>
                    </div>

                    <div className="dt">type\_schema (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">records\_binary</span> or output parameter <span className="em">records\_json</span>.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">records (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects which contain the decoded records.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records_by_column"> <span className="sig-name descname"><span className="pre">get\_records\_by\_column</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>For a given table, retrieves the values from the requested column(s). Maps of column name to the array of values as well as the column data type are returned. This endpoint supports pagination with the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters.</p>
              <p><a className="reference external" href="/content/concepts/window/">Window functions</a>, which can perform operations like moving averages, are available through this endpoint as well as <a className="reference internal" href="#gpudb.GPUdb.create_projection" title="gpudb.GPUdb.create_projection"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_projection()</span></code></a>.</p>
              <p>When using pagination, if the table (or the underlying table in the case of a view) is modified (records are inserted, updated, or deleted) during a call to the endpoint, the records or values retrieved may differ between calls based on the type of the update, e.g., the contiguity across pages cannot be relied upon.</p>
              <p>If input parameter <span className="em">table\_name</span> is empty, selection is performed against a single-row virtual table. This can be useful in executing temporal (<a className="reference external" href="/content/concepts/expressions/#date-time-functions">NOW()</a>), identity (<a className="reference external" href="/content/concepts/expressions/#user-security-functions">USER()</a>), or constant-based functions (<a className="reference external" href="/content/concepts/expressions/#scalar-functions">GEODIST(-77.11, 38.88, -71.06, 42.36)</a>).</p>
              <p>The response is returned as a dynamic schema. For details see: <a className="reference external" href="/content/api/concepts/#dynamic-schemas">dynamic schemas documentation</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table or view on which this operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. An empty table name retrieves one record from a single-row virtual table, where columns specified should be constants or constant expressions.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The list of column values to retrieve. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; either <span className="em">binary</span> or <span className="em">json</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table.</p>
                        </li>

                        <li>
                          <p><strong>sort\_by</strong> – Column that the data should be sorted by. Used in conjunction with <span className="em">sort\_order</span>. The <span className="em">order\_by</span> option can be used in lieu of <span className="em">sort\_by</span> / <span className="em">sort\_order</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>sort\_order</strong> – String indicating how the returned values should be sorted - <span className="em">ascending</span> or <span className="em">descending</span>. If <span className="em">sort\_order</span> is provided, <span className="em">sort\_by</span> has to be provided. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>ascending</p>
                            </li>

                            <li>
                              <p>descending</p>
                            </li>
                          </ul>

                          <p>The default value is ‘ascending’.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., ‘timestamp asc, x desc’. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>convert\_wkts\_to\_wkbs</strong> – If <span className="em">true</span>, then WKT string columns will be returned as WKB bytes. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>route\_to\_tom</strong> – For multihead record retrieval without shard key expression - specifies from which tom to retrieve data.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The same table name as was passed in the parameter list.</p>
                    </div>

                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">binary\_encoded\_response (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>Avro binary encoded response.</p>
                    </div>

                    <div className="dt">json\_encoded\_response (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro JSON encoded response.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>A <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> object using which the user can decode the binary data by using <a className="reference internal" href="/content/api/python/source/gpudbrecord#gpudb.GPUdbRecord.decode_binary_data" title="gpudb.GPUdbRecord.decode_binary_data"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdbRecord.decode\_binary\_data()</span></code></a>. If JSON encoding is used, then None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records_by_column_and_decode"> <span className="sig-name descname"><span className="pre">get\_records\_by\_column\_and\_decode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">force\_primitive\_return\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">get\_column\_major</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>For a given table, retrieves the values from the requested column(s). Maps of column name to the array of values as well as the column data type are returned. This endpoint supports pagination with the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters.</p>
              <p><a className="reference external" href="/content/concepts/window/">Window functions</a>, which can perform operations like moving averages, are available through this endpoint as well as <a className="reference internal" href="#gpudb.GPUdb.create_projection" title="gpudb.GPUdb.create_projection"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_projection()</span></code></a>.</p>
              <p>When using pagination, if the table (or the underlying table in the case of a view) is modified (records are inserted, updated, or deleted) during a call to the endpoint, the records or values retrieved may differ between calls based on the type of the update, e.g., the contiguity across pages cannot be relied upon.</p>
              <p>If input parameter <span className="em">table\_name</span> is empty, selection is performed against a single-row virtual table. This can be useful in executing temporal (<a className="reference external" href="/content/concepts/expressions/#date-time-functions">NOW()</a>), identity (<a className="reference external" href="/content/concepts/expressions/#user-security-functions">USER()</a>), or constant-based functions (<a className="reference external" href="/content/concepts/expressions/#scalar-functions">GEODIST(-77.11, 38.88, -71.06, 42.36)</a>).</p>
              <p>The response is returned as a dynamic schema. For details see: <a className="reference external" href="/content/api/concepts/#dynamic-schemas">dynamic schemas documentation</a>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table or view on which this operation will be performed, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. An empty table name retrieves one record from a single-row virtual table, where columns specified should be constants or constant expressions.</p>
                    </div>

                    <div className="dt">column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The list of column values to retrieve. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use output parameter <span className="em">has\_more\_records</span> to see if more records exist in the result to be fetched, and input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; either <span className="em">binary</span> or <span className="em">json</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table.</p>
                        </li>

                        <li>
                          <p><strong>sort\_by</strong> – Column that the data should be sorted by. Used in conjunction with <span className="em">sort\_order</span>. The <span className="em">order\_by</span> option can be used in lieu of <span className="em">sort\_by</span> / <span className="em">sort\_order</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>sort\_order</strong> – String indicating how the returned values should be sorted - <span className="em">ascending</span> or <span className="em">descending</span>. If <span className="em">sort\_order</span> is provided, <span className="em">sort\_by</span> has to be provided. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>ascending</p>
                            </li>

                            <li>
                              <p>descending</p>
                            </li>
                          </ul>

                          <p>The default value is ‘ascending’.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., ‘timestamp asc, x desc’. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>convert\_wkts\_to\_wkbs</strong> – If <span className="em">true</span>, then WKT string columns will be returned as WKB bytes. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>route\_to\_tom</strong> – For multihead record retrieval without shard key expression - specifies from which tom to retrieve data.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> or None) –</div>

                    <div className="dd">
                      <p>The record type expected in the results, or None to determine the appropriate type automatically. If known, providing this may improve performance in binary mode. Not used in JSON mode. The default value is None.</p>
                    </div>

                    <div className="dt">force\_primitive\_return\_types (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If <cite>True</cite>, then <cite>OrderedDict</cite> objects will be returned, where string sub-type columns will have their values converted back to strings; for example, the Python <cite>datetime</cite> structs, used for datetime type columns would have their values returned as strings. If <cite>False</cite>, then <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned, which for string sub-types, will return native or custom structs; no conversion to string takes place. String conversions, when returning <cite>OrderedDicts</cite>, incur a speed penalty, and it is strongly recommended to use the <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> object option instead. If <cite>True</cite>, but none of the returned columns require a conversion, then the original <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned. Default value is True.</p>
                    </div>

                    <div className="dt">get\_column\_major (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates if the decoded records will be transposed to be column-major or returned as is (row-major). Default value is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The same table name as was passed in the parameter list.</p>
                    </div>

                    <div className="dt">response\_schema\_str (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Avro schema of output parameter <span className="em">binary\_encoded\_response</span> or output parameter <span className="em">json\_encoded\_response</span>.</p>
                    </div>

                    <div className="dt">total\_number\_of\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total/Filtered number of records.</p>
                    </div>

                    <div className="dt">has\_more\_records (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Too many records. Returned a partial set.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">records (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects which contain the decoded records.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records_by_series"> <span className="sig-name descname"><span className="pre">get\_records\_by\_series</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">world\_table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">250</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves the complete series/track records from the given input parameter <span className="em">world\_table\_name</span> based on the partial track information contained in the input parameter <span className="em">table\_name</span>.</p>
              <p>This operation supports paging through the data via the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters.</p>
              <p>In contrast to <a className="reference internal" href="#gpudb.GPUdb.get_records" title="gpudb.GPUdb.get_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.get\_records()</span></code></a> this returns records grouped by series/track. So if input parameter <span className="em">offset</span> is 0 and input parameter <span className="em">limit</span> is 5 this operation would return the first 5 series/tracks in input parameter <span className="em">table\_name</span>. Each series/track will be returned sorted by their TIMESTAMP column.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table or view for which series/tracks will be fetched, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">world\_table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table containing the complete series/track information to be returned for the tracks present in the input parameter <span className="em">table\_name</span>, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Typically this is used when retrieving series/tracks from a view (which contains partial series/tracks) but the user wants to retrieve the entire original series/tracks. Can be blank.</p>
                    </div>

                    <div className="dt">offset (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial series/tracks to skip (useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of series/tracks to be returned. Or END\_OF\_SET (-9999) to indicate that the max number of results should be returned. The default value is 250.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; either <span className="em">binary</span> or <span className="em">json</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The table name (one per series/track) of the returned series/tracks.</p>
                    </div>

                    <div className="dt">type\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The type IDs (one per series/track) of the returned series/tracks.</p>
                    </div>

                    <div className="dt">type\_schemas (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The type schemas (one per series/track) of the returned series/tracks.</p>
                    </div>

                    <div className="dt">list\_records\_binary (<span className="em">list of lists of bytes</span>) –</div>

                    <div className="dd">
                      <p>If the encoding parameter of the request was ‘binary’ then this list-of-lists contains the binary encoded records for each object (inner list) in each series/track (outer list). Otherwise, empty list-of-lists.</p>
                    </div>

                    <div className="dt">list\_records\_json (<span className="em">list of lists of str</span>) –</div>

                    <div className="dd">
                      <p>If the encoding parameter of the request was ‘json’ then this list-of-lists contains the JSON-encoded records for each object (inner list) in each series/track (outer list). Otherwise, empty list-of-lists.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">record\_types (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> objects using which the user can decode the binary data by using <a className="reference internal" href="/content/api/python/source/gpudbrecord#gpudb.GPUdbRecord.decode_binary_data" title="gpudb.GPUdbRecord.decode_binary_data"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdbRecord.decode\_binary\_data()</span></code></a> per record.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records_by_series_and_decode"> <span className="sig-name descname"><span className="pre">get\_records\_by\_series\_and\_decode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">world\_table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">250</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">force\_primitive\_return\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves the complete series/track records from the given input parameter <span className="em">world\_table\_name</span> based on the partial track information contained in the input parameter <span className="em">table\_name</span>.</p>
              <p>This operation supports paging through the data via the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters.</p>
              <p>In contrast to <a className="reference internal" href="#gpudb.GPUdb.get_records" title="gpudb.GPUdb.get_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.get\_records()</span></code></a> this returns records grouped by series/track. So if input parameter <span className="em">offset</span> is 0 and input parameter <span className="em">limit</span> is 5 this operation would return the first 5 series/tracks in input parameter <span className="em">table\_name</span>. Each series/track will be returned sorted by their TIMESTAMP column.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table or view for which series/tracks will be fetched, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">world\_table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table containing the complete series/track information to be returned for the tracks present in the input parameter <span className="em">table\_name</span>, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Typically this is used when retrieving series/tracks from a view (which contains partial series/tracks) but the user wants to retrieve the entire original series/tracks. Can be blank.</p>
                    </div>

                    <div className="dt">offset (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial series/tracks to skip (useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of series/tracks to be returned. Or END\_OF\_SET (-9999) to indicate that the max number of results should be returned. The default value is 250.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; either <span className="em">binary</span> or <span className="em">json</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">force\_primitive\_return\_types (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If <cite>True</cite>, then <cite>OrderedDict</cite> objects will be returned, where string sub-type columns will have their values converted back to strings; for example, the Python <cite>datetime</cite> structs, used for datetime type columns would have their values returned as strings. If <cite>False</cite>, then <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned, which for string sub-types, will return native or custom structs; no conversion to string takes place. String conversions, when returning <cite>OrderedDicts</cite>, incur a speed penalty, and it is strongly recommended to use the <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> object option instead. If <cite>True</cite>, but none of the returned columns require a conversion, then the original <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned. Default value is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The table name (one per series/track) of the returned series/tracks.</p>
                    </div>

                    <div className="dt">type\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The type IDs (one per series/track) of the returned series/tracks.</p>
                    </div>

                    <div className="dt">type\_schemas (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The type schemas (one per series/track) of the returned series/tracks.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">records (list of list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code>) –</div>

                    <div className="dd">
                      <p>A list of list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects which contain the decoded records.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records_from_collection"> <span className="sig-name descname"><span className="pre">get\_records\_from\_collection</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves records from a collection. The operation can optionally return the record IDs which can be used in certain queries such as <a className="reference internal" href="#gpudb.GPUdb.delete_records" title="gpudb.GPUdb.delete_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.delete\_records()</span></code></a>.</p>
              <p>This operation supports paging through the data via the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters.</p>
              <p>Note that when using the Java API, it is not possible to retrieve records from join views using this operation. (DEPRECATED)</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the collection or table from which records are to be retrieved, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing collection or table.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; either <span className="em">binary</span> or <span className="em">json</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>return\_record\_ids</strong> – If <span className="em">true</span> then return the internal record ID along with each returned record. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The type IDs of the corresponding records in output parameter <span className="em">records\_binary</span> or output parameter <span className="em">records\_json</span>. This is useful when input parameter <span className="em">table\_name</span> is a heterogeneous collection (collections containing tables of different types).</p>
                    </div>

                    <div className="dt">records\_binary (<span className="em">list of bytes</span>) –</div>

                    <div className="dd">
                      <p>If the encoding parameter of the request was ‘binary’ then this list contains the binary encoded records retrieved from the table/collection. Otherwise, empty list.</p>
                    </div>

                    <div className="dt">records\_json (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>If the encoding parameter of the request was ‘json’, then this list contains the JSON encoded records retrieved from the table/collection. Otherwise, empty list.</p>
                    </div>

                    <div className="dt">record\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>If the ‘return\_record\_ids’ option of the request was ‘true’, then this list contains the internal ID for each object. Otherwise it will be empty.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>total\_number\_of\_records</strong> – Total number of records.</p>
                        </li>

                        <li>
                          <p><strong>has\_more\_records</strong> – Too many records. Returned a partial set. Allowed values are:</p>

                          <ul>
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_types (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> objects using which the user can decode the binary data by using <a className="reference internal" href="/content/api/python/source/gpudbrecord#gpudb.GPUdbRecord.decode_binary_data" title="gpudb.GPUdbRecord.decode_binary_data"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdbRecord.decode\_binary\_data()</span></code></a> per record.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.get_records_from_collection_and_decode"> <span className="sig-name descname"><span className="pre">get\_records\_from\_collection\_and\_decode</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">offset</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">limit</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-9999</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">force\_primitive\_return\_types</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves records from a collection. The operation can optionally return the record IDs which can be used in certain queries such as <a className="reference internal" href="#gpudb.GPUdb.delete_records" title="gpudb.GPUdb.delete_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.delete\_records()</span></code></a>.</p>
              <p>This operation supports paging through the data via the input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> parameters.</p>
              <p>Note that when using the Java API, it is not possible to retrieve records from join views using this operation. (DEPRECATED)</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the collection or table from which records are to be retrieved, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing collection or table.</p>
                    </div>

                    <div className="dt">offset (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT.</p>
                    </div>

                    <div className="dt">limit (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. Use input parameter <span className="em">offset</span> and input parameter <span className="em">limit</span> to request subsequent pages of results. The default value is -9999.</p>
                    </div>

                    <div className="dt">encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the encoding for returned records; either <span className="em">binary</span> or <span className="em">json</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>return\_record\_ids</strong> – If <span className="em">true</span> then return the internal record ID along with each returned record. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – Filter expression to apply to the table. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">force\_primitive\_return\_types (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If <cite>True</cite>, then <cite>OrderedDict</cite> objects will be returned, where string sub-type columns will have their values converted back to strings; for example, the Python <cite>datetime</cite> structs, used for datetime type columns would have their values returned as strings. If <cite>False</cite>, then <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned, which for string sub-types, will return native or custom structs; no conversion to string takes place. String conversions, when returning <cite>OrderedDicts</cite>, incur a speed penalty, and it is strongly recommended to use the <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> object option instead. If <cite>True</cite>, but none of the returned columns require a conversion, then the original <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects will be returned. Default value is True.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The type IDs of the corresponding records in output parameter <span className="em">records\_binary</span> or output parameter <span className="em">records\_json</span>. This is useful when input parameter <span className="em">table\_name</span> is a heterogeneous collection (collections containing tables of different types).</p>
                    </div>

                    <div className="dt">record\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>If the ‘return\_record\_ids’ option of the request was ‘true’, then this list contains the internal ID for each object. Otherwise it will be empty.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>total\_number\_of\_records</strong> – Total number of records.</p>
                        </li>

                        <li>
                          <p><strong>has\_more\_records</strong> – Too many records. Returned a partial set. Allowed values are:</p>

                          <ul>
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">records (list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code>) –</div>

                    <div className="dd">
                      <p>A list of <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects which contain the decoded records.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.grant_permission"> <span className="sig-name descname"><span className="pre">grant\_permission</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">principal</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">object</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">object\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Grant user or role the specified permission on the specified object.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">principal (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role for which the permission is being granted. Must be an existing user or role. The default value is ‘’.</p>
                    </div>

                    <div className="dt">object (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible.</p>
                    </div>

                    <div className="dt">object\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The type of object being granted to. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>catalog</strong> – Catalog</p>
                        </li>

                        <li>
                          <p><strong>context</strong> – Context</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – Credential</p>
                        </li>

                        <li>
                          <p><strong>datasink</strong> – Data Sink</p>
                        </li>

                        <li>
                          <p><strong>datasource</strong> – Data Source</p>
                        </li>

                        <li>
                          <p><strong>directory</strong> – KIFS File Directory</p>
                        </li>

                        <li>
                          <p><strong>graph</strong> – A Graph object</p>
                        </li>

                        <li>
                          <p><strong>proc</strong> – UDF Procedure</p>
                        </li>

                        <li>
                          <p><strong>schema</strong> – Schema</p>
                        </li>

                        <li>
                          <p><strong>sql\_proc</strong> – SQL Procedure</p>
                        </li>

                        <li>
                          <p><strong>system</strong> – System-level access</p>
                        </li>

                        <li>
                          <p><strong>table</strong> – Database Table</p>
                        </li>

                        <li>
                          <p><strong>table\_monitor</strong> – Table monitor</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission being granted. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>admin</strong> – Full read/write and administrative access on the object.</p>
                        </li>

                        <li>
                          <p><strong>connect</strong> – Connect access on the given data source or data sink.</p>
                        </li>

                        <li>
                          <p><strong>create</strong> – Ability to create new objects of this type.</p>
                        </li>

                        <li>
                          <p><strong>delete</strong> – Delete rows from tables.</p>
                        </li>

                        <li>
                          <p><strong>execute</strong> – Ability to Execute the Procedure object.</p>
                        </li>

                        <li>
                          <p><strong>insert</strong> – Insert access to tables.</p>
                        </li>

                        <li>
                          <p><strong>monitor</strong> – Monitor logs and statistics.</p>
                        </li>

                        <li>
                          <p><strong>read</strong> – Ability to read, list and use the object.</p>
                        </li>

                        <li>
                          <p><strong>send\_alert</strong> – Ability to send system alerts.</p>
                        </li>

                        <li>
                          <p><strong>update</strong> – Update access to the table.</p>
                        </li>

                        <li>
                          <p><strong>user\_admin</strong> – Access to administer users and roles that do not have system\_admin permission.</p>
                        </li>

                        <li>
                          <p><strong>write</strong> – Access to write, change and delete objects.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>columns</strong> – Apply table security to these columns, comma-separated. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>filter\_expression</strong> – Filter expression to apply to this grant. Only rows that match the filter will be affected. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>with\_grant\_option</strong> – Allow the recipient to grant the same permission (or subset) to others. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">principal (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">principal</span>.</p>
                    </div>

                    <div className="dt">object (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">object</span>.</p>
                    </div>

                    <div className="dt">object\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">object\_type</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.grant_permission_credential"> <span className="sig-name descname"><span className="pre">grant\_permission\_credential</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">credential\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Grants a <a className="reference external" href="/content/security/sec_concepts/#security-concepts-permissions-credential">credential-level permission</a> to a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role to which the permission will be granted. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to grant to the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>credential\_admin</strong> – Full read/write and administrative access on the credential.</p>
                        </li>

                        <li>
                          <p><strong>credential\_read</strong> – Ability to read and use the credential.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the credential on which the permission will be granted. Must be an existing credential, or an empty string to grant access on all credentials.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">credential\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.grant_permission_datasource"> <span className="sig-name descname"><span className="pre">grant\_permission\_datasource</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasource\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Grants a <a className="reference external" href="/content/concepts/data_sources/">data source</a> permission to a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role to which the permission will be granted. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to grant to the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>admin</strong> – Admin access on the given data source.</p>
                        </li>

                        <li>
                          <p><strong>connect</strong> – Connect access on the given data source.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">datasource\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data source on which the permission will be granted. Must be an existing data source, or an empty string to grant permission on all data sources.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">datasource\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">datasource\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.grant_permission_directory"> <span className="sig-name descname"><span className="pre">grant\_permission\_directory</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">directory\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Grants a <a className="reference external" href="/content/tools/kifs/">KiFS</a> directory-level permission to a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role to which the permission will be granted. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to grant to the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>directory\_read</strong> – For files in the directory, access to list files, download files, or use files in server side functions.</p>
                        </li>

                        <li>
                          <p><strong>directory\_write</strong> – Access to upload files to, or delete files from, the directory. A user or role with write access automatically has read access.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the KiFS directory to which the permission grants access. An empty directory name grants access to all KiFS directories.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">directory\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.grant_permission_proc"> <span className="sig-name descname"><span className="pre">grant\_permission\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">proc\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Grants a proc-level permission to a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role to which the permission will be granted. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to grant to the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>proc\_admin</strong> – Admin access to the proc.</p>
                        </li>

                        <li>
                          <p><strong>proc\_execute</strong> – Execute access to the proc.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the proc to which the permission grants access. Must be an existing proc, or an empty string to grant access to all procs.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">proc\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.grant_permission_system"> <span className="sig-name descname"><span className="pre">grant\_permission\_system</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Grants a system-level permission to a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role to which the permission will be granted. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to grant to the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>system\_admin</strong> – Full access to all data and system functions.</p>
                        </li>

                        <li>
                          <p><strong>system\_user\_admin</strong> – Access to administer users and roles that do not have system\_admin permission.</p>
                        </li>

                        <li>
                          <p><strong>system\_write</strong> – Read and write access to all tables.</p>
                        </li>

                        <li>
                          <p><strong>system\_read</strong> – Read-only access to all tables.</p>
                        </li>

                        <li>
                          <p><strong>system\_send\_alert</strong> – Send system alerts.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.grant_permission_table"> <span className="sig-name descname"><span className="pre">grant\_permission\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">filter\_expression</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Grants a table-level permission to a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role to which the permission will be granted. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to grant to the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>table\_admin</strong> – Full read/write and administrative access to the table.</p>
                        </li>

                        <li>
                          <p><strong>table\_insert</strong> – Insert access to the table.</p>
                        </li>

                        <li>
                          <p><strong>table\_update</strong> – Update access to the table.</p>
                        </li>

                        <li>
                          <p><strong>table\_delete</strong> – Delete access to the table.</p>
                        </li>

                        <li>
                          <p><strong>table\_read</strong> – Read access to the table.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to which the permission grants access, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table, view, or schema. If a schema, the permission also applies to tables and views in the schema.</p>
                    </div>

                    <div className="dt">filter\_expression (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Optional filter expression to apply to this grant. Only rows that match the filter will be affected. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>columns</strong> – Apply security to these columns, comma-separated. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">filter\_expression (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">filter\_expression</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.grant_role"> <span className="sig-name descname"><span className="pre">grant\_role</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">role</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">member</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Grants membership in a role to a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">role (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the role in which membership will be granted. Must be an existing role.</p>
                    </div>

                    <div className="dt">member (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role that will be granted membership in input parameter <span className="em">role</span>. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">role (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">role</span>.</p>
                    </div>

                    <div className="dt">member (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">member</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.has_permission"> <span className="sig-name descname"><span className="pre">has\_permission</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">principal</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">object</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">object\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Checks if the specified user has the specified permission on the specified object.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">principal (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user for which the permission is being checked. Must be an existing user. If blank, will use the current user. The default value is ‘’.</p>
                    </div>

                    <div className="dt">object (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of object to check for the requested permission. It is recommended to use a fully-qualified name when possible.</p>
                    </div>

                    <div className="dt">object\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The type of object being checked. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>catalog</strong> – External Catalog</p>
                        </li>

                        <li>
                          <p><strong>context</strong> – Context</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – Credential</p>
                        </li>

                        <li>
                          <p><strong>datasink</strong> – Data Sink</p>
                        </li>

                        <li>
                          <p><strong>datasource</strong> – Data Source</p>
                        </li>

                        <li>
                          <p><strong>directory</strong> – KiFS File Directory</p>
                        </li>

                        <li>
                          <p><strong>graph</strong> – A Graph object</p>
                        </li>

                        <li>
                          <p><strong>proc</strong> – UDF Procedure</p>
                        </li>

                        <li>
                          <p><strong>schema</strong> – Schema</p>
                        </li>

                        <li>
                          <p><strong>sql\_proc</strong> – SQL Procedure</p>
                        </li>

                        <li>
                          <p><strong>system</strong> – System-level access</p>
                        </li>

                        <li>
                          <p><strong>table</strong> – Database Table</p>
                        </li>

                        <li>
                          <p><strong>table\_monitor</strong> – Table monitor</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to check for. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>admin</strong> – Full read/write and administrative access on the object.</p>
                        </li>

                        <li>
                          <p><strong>connect</strong> – Connect access on the given data source or data sink.</p>
                        </li>

                        <li>
                          <p><strong>create</strong> – Ability to create new objects of this type.</p>
                        </li>

                        <li>
                          <p><strong>delete</strong> – Delete rows from tables.</p>
                        </li>

                        <li>
                          <p><strong>execute</strong> – Ability to Execute the Procedure object.</p>
                        </li>

                        <li>
                          <p><strong>insert</strong> – Insert access to tables.</p>
                        </li>

                        <li>
                          <p><strong>monitor</strong> – Monitor logs and statistics.</p>
                        </li>

                        <li>
                          <p><strong>read</strong> – Ability to read, list and use the object.</p>
                        </li>

                        <li>
                          <p><strong>send\_alert</strong> – Ability to send system alerts.</p>
                        </li>

                        <li>
                          <p><strong>update</strong> – Update access to the table.</p>
                        </li>

                        <li>
                          <p><strong>user\_admin</strong> – Access to administer users and roles that do not have system\_admin permission.</p>
                        </li>

                        <li>
                          <p><strong>write</strong> – Access to write, change and delete objects.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">false</span> will return an error if the provided input parameter <span className="em">object</span> does not exist or is blank. If <span className="em">true</span> then it will return <span className="em">false</span> for output parameter <span className="em">has\_permission</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">principal (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">principal</span>.</p>
                    </div>

                    <div className="dt">object (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Fully-qualified value of input parameter <span className="em">object</span>.</p>
                    </div>

                    <div className="dt">object\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">object\_type</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">has\_permission (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates whether the specified user has the specified permission on the specified target. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>True</strong> – User has the effective queried permission.</p>
                        </li>

                        <li>
                          <p><strong>False</strong> – User does not have the queried permission.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">filters (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of column/filters that have been granted.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.has_proc"> <span className="sig-name descname"><span className="pre">has\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">proc\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Checks the existence of a proc with the given name.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the proc to check for existence.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">proc\_name</span>.</p>
                    </div>

                    <div className="dt">proc\_exists (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates whether the proc exists or not. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.has_role"> <span className="sig-name descname"><span className="pre">has\_role</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">principal</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">role</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Checks if the specified user has the specified role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">principal (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user for which role membership is being checked. Must be an existing user. If blank, will use the current user. The default value is ‘’.</p>
                    </div>

                    <div className="dt">role (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of role to check for membership.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">false</span> will return an error if the provided input parameter <span className="em">role</span> does not exist or is blank. If <span className="em">true</span> then it will return <span className="em">false</span> for output parameter <span className="em">has\_role</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>only\_direct</strong> – If <span className="em">false</span> will search recursively if the input parameter <span className="em">principal</span> is a member of input parameter <span className="em">role</span>. If <span className="em">true</span> then input parameter <span className="em">principal</span> must directly be a member of input parameter <span className="em">role</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">principal (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">principal</span>.</p>
                    </div>

                    <div className="dt">role (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Input parameter <span className="em">role</span> for which membership is being checked.</p>
                    </div>

                    <div className="dt">has\_role (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates whether the specified user has membership in the specified target input parameter <span className="em">role</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>True</strong> – User has membership in the role.</p>
                        </li>

                        <li>
                          <p><strong>False</strong> – User does not have membership in the role.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>direct</strong> – <span className="em">true</span> when principal is directly a member of the role. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.has_schema"> <span className="sig-name descname"><span className="pre">has\_schema</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">schema\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Checks for the existence of a schema with the given name.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the schema to check for existence, in root, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">schema\_name</span>.</p>
                    </div>

                    <div className="dt">schema\_exists (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates whether the schema exists or not. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.has_table"> <span className="sig-name descname"><span className="pre">has\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Checks for the existence of a table with the given name.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to check for existence, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">table\_exists (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates whether the table exists or not. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.has_type"> <span className="sig-name descname"><span className="pre">has\_type</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">type\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Check for the existence of a type.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Id of the type returned in response to <a className="reference internal" href="#gpudb.GPUdb.create_type" title="gpudb.GPUdb.create_type"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_type()</span></code></a> request.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">type\_id</span>.</p>
                    </div>

                    <div className="dt">type\_exists (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates whether the type exists or not. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.insert_records"> <span className="sig-name descname"><span className="pre">insert\_records</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">data</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">list\_encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Adds multiple records to the specified table. The operation is synchronous, meaning that a response will not be returned until all the records are fully inserted and available. The response payload provides the counts of the number of records actually inserted and/or updated, and can provide the unique identifier of each added record.</p>
              <p>The input parameter <span className="em">options</span> parameter can be used to customize this function’s behavior.</p>
              <p>The <span className="em">update\_on\_existing\_pk</span> option specifies the record collision policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, but is ignored if no primary key exists.</p>
              <p>The <span className="em">return\_record\_ids</span> option indicates that the database should return the unique identifiers of inserted records.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of table to which the records are to be added, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table.</p>
                    </div>

                    <div className="dt">data (<span className="em">list of Records</span>) –</div>

                    <div className="dd">
                      <p>An array of <span className="em">binary</span> or <span className="em">json</span> encoded data, or <code className="xref py py-class docutils literal notranslate"><span className="pre">Record</span></code> objects for the records to be added. The user can provide a single element (which will be automatically promoted to a list internally) or a list. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">list\_encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The encoding of the records to be inserted. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. If set to <span className="em">true</span>, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be “upserted”). If set to <span className="em">false</span>, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by <span className="em">ignore\_existing\_pk</span>, <span className="em">allow\_partial\_batch</span>, and <span className="em">return\_individual\_errors</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Upsert new records when primary keys match existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject new records when primary keys match existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_inplace\_updates</strong> – Applies only when upserting (when <span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>). If set to <span className="em">true</span>, an existing record matched by primary key is modified in place. If set to <span className="em">false</span>, it is updated by deleting the existing record and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by <span className="em">allow\_partial\_batch</span> and <span className="em">return\_individual\_errors</span>. If the specified table does not have a primary key or if upsert mode is in effect (<span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>), then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore new records whose primary key values collide with those of existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat as errors any new records whose primary key values collide with those of existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>pk\_conflict\_predicate\_higher</strong> – The record with higher value for the column resolves the primary-key insert conflict. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>pk\_conflict\_predicate\_lower</strong> – The record with lower value for the column resolves the primary-key insert conflict. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>return\_record\_ids</strong> – If <span className="em">true</span> then return the internal record id along for each inserted record. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_strings</strong> – If set to <span className="em">true</span>, any strings which are too long for their target charN string columns will be truncated to fit. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>return\_individual\_errors</strong> – If set to <span className="em">true</span>, success will always be returned, and any errors found will be included in the info map. The “bad\_record\_indices” entry is a comma-separated list of bad records (0-based). If so, there will also be an “error\_N” entry for each record with an error, where N is the index (0-based). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>allow\_partial\_batch</strong> – If set to <span className="em">true</span>, all correct records will be inserted and incorrect records will be rejected and reported. Otherwise, the entire batch will be rejected if any records are incorrect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>dry\_run</strong> – If set to <span className="em">true</span>, no data will be saved and any errors will be returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>request\_schema\_str</strong> – Type schema of input parameter <span className="em">list</span> (when input parameter <span className="em">list\_encoding</span> is <span className="em">binary</span>), in \[\[“{"{"}column\_name{"}"}”,”{"{"}column\_type{"}"}”]] format. When non-empty and different from the table’s schema, the server remaps the incoming records to the table’s full schema. Columns present in the table but absent from this schema are filled using their default values, NULL (if nullable), or an error is returned. If empty, records must match the table’s full schema. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>transformations</strong> – Comma-separated expressions, one per target table column. Each expression is evaluated per record. Empty entries (two consecutive commas) mean no transformation for that column – the value is resolved from the input record, table default, NULL, or an error. Expressions may reference input columns by name or by position ($1 for the first input column, $2 for the second, etc.). The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<span className="em">RecordType</span>) –</div>

                    <div className="dd">
                      <p>A <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> object using which the binary data will be encoded. If None, then it is assumed that the data is already encoded, and no further encoding will occur. Default is None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">record\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>An array containing the IDs with which the added records are identified internally.</p>
                    </div>

                    <div className="dt">count\_inserted (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>The number of records inserted.</p>
                    </div>

                    <div className="dt">count\_updated (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>The number of records updated.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>bad\_record\_indices</strong> – If return\_individual\_errors option is specified or implied, returns a comma-separated list of invalid indices (0-based).</p>
                        </li>

                        <li>
                          <p><strong>error\_N</strong> – Error message for record at index N (0-based).</p>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.insert_records_from_files"> <span className="sig-name descname"><span className="pre">insert\_records\_from\_files</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">filepaths</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">modify\_columns</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">create\_table\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Reads from one or more files and inserts the data into a new or existing table. The source data can be located either in <a className="reference external" href="/content/tools/kifs/">KiFS</a>; on the cluster, accessible to the database; or remotely, accessible via a pre-defined external <a className="reference external" href="/content/concepts/data_sources/">data source</a>.</p>
              <p>For delimited text files, there are two loading schemes: positional and name-based. The name-based loading scheme is enabled when the file has a header present and <span className="em">text\_has\_header</span> is set to <span className="em">true</span>. In this scheme, the source file(s) field names must match the target table’s column names exactly; however, the source file can have more fields than the target table has columns. If <span className="em">error\_handling</span> is set to <span className="em">permissive</span>, the source file can have fewer fields than the target table has columns. If the name-based loading scheme is being used, names matching the file header’s names may be provided to <span className="em">columns\_to\_load</span> instead of numbers, but ranges are not supported.</p>
              <p>Note: Due to data being loaded in parallel, there is no insertion order guaranteed. For tables with primary keys, in the case of a primary key collision, this means it is indeterminate which record will be inserted first and remain, while the rest of the colliding key records are discarded.</p>
              <p>Returns once all files are processed.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table into which the data will be inserted, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. If the table does not exist, the table will be created using either an existing <span className="em">type\_id</span> or the type inferred from the file, and the new table name will have to meet standard <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>.</p>
                    </div>

                    <div className="dt">filepaths (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of file paths from which data will be sourced;</p>
                      <p>For paths in <a className="reference external" href="/content/tools/kifs/">KiFS</a>, use the URI prefix of kifs\:// followed by the path to a file or directory. File matching by prefix is supported, e.g. kifs\://dir/file would match dir/file\_1 and dir/file\_2. When prefix matching is used, the path must start with a full, valid KiFS directory name.</p>
                      <p>If an external data source is specified in <span className="em">datasource\_name</span>, these file paths must resolve to accessible files at that data source location. Prefix matching is supported. If the data source is hdfs, prefixes must be aligned with directories, i.e. partial file names will not match.</p>
                      <p>If no data source is specified, the files are assumed to be local to the database and must all be accessible to the gpudb user, residing on the path (or relative to the path) specified by the external files directory in the Kinetica <a className="reference external" href="/content/config/#config-main-external-files">configuration file</a>. Wildcards (\*) can be used to specify a group of files. Prefix matching is supported, the prefixes must be aligned with directories.</p>
                      <p>If the first path ends in .tsv, the text delimiter will be defaulted to a tab character. If the first path ends in .psv, the text delimiter will be defaulted to a pipe character (|). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">modify\_columns (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Not implemented yet. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">create\_table\_options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Options from <a className="reference internal" href="#gpudb.GPUdb.create_table" title="gpudb.GPUdb.create_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table()</span></code></a>, allowing the structure of the table to be defined independently of the data source, when creating the target table. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>type\_id</strong> – ID of a currently registered <a className="reference external" href="/content/concepts/types/">type</a>.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_exists</strong> – If <span className="em">true</span>, prevents an error from occurring if the table already exists and is of the given type. If a table with the same name but a different type exists, it is still an error. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>is\_replicated</strong> – Affects the <a className="reference external" href="/content/concepts/tables/#distribution">distribution scheme</a> for the table’s data. If <span className="em">true</span> and the given table has no explicit <a className="reference external" href="/content/concepts/tables/#shard-key">shard key</a> defined, the table will be <a className="reference external" href="/content/concepts/tables/#replication">replicated</a>. If <span className="em">false</span>, the table will be <a className="reference external" href="/content/concepts/tables/#sharding">sharded</a> according to the shard key specified in the given <span className="em">type\_id</span>, or <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly sharded</a>, if no shard key is specified. Note that a type containing a shard key cannot be used to create a replicated table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_keys</strong> – Semicolon-separated list of <a className="reference external" href="/content/concepts/tables/#foreign-keys">foreign keys</a>, of the format ‘(source\_column\_name \[, …]) references target\_table\_name(primary\_key\_column\_name \[, …]) \[as foreign\_key\_name]’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_shard\_key</strong> – Foreign shard key of the format ‘source\_column references shard\_by\_column from target\_table(primary\_key\_column)’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently, only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>is\_result\_table</strong> – Indicates whether the table is a <a className="reference external" href="/content/concepts/tables_memory_only/">memory-only table</a>. A result table cannot contain columns with text\_search <a className="reference external" href="/content/concepts/types/#data-handling">data-handling</a>, and it will not be retained if the server is restarted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for this table’s columns.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>bad\_record\_table\_name</strong> – Name of a table to which records that were rejected are written. The bad-record-table has the following columns: line\_number (long), line\_rejected (string), error\_message (string). When <span className="em">error\_handling</span> is <span className="em">abort</span>, bad records table is not populated.</p>
                        </li>

                        <li>
                          <p><strong>bad\_record\_table\_limit</strong> – A positive integer indicating the maximum number of records that can be written to the bad-record-table. The default value is ‘10000’.</p>
                        </li>

                        <li>
                          <p><strong>bad\_record\_table\_limit\_per\_input</strong> – For subscriptions, a positive integer indicating the maximum number of records that can be written to the bad-record-table per file/payload. Default value will be <span className="em">bad\_record\_table\_limit</span> and total size of the table per rank is limited to <span className="em">bad\_record\_table\_limit</span>.</p>
                        </li>

                        <li>
                          <p><strong>batch\_size</strong> – Number of records to insert per batch when inserting data. The default value is ‘50000’.</p>
                        </li>

                        <li>
                          <p><strong>column\_formats</strong> – For each target column specified, applies the column-property-bound format to the source data loaded into that column. Each column format will contain a mapping of one or more of its column properties to an appropriate format for each property. Currently supported column properties include date, time, and datetime. The parameter value must be formatted as a JSON string of maps of column names to maps of column properties to their corresponding column formats, e.g., ‘{"{"} “order\_date” : {"{"} “date” : “%Y.%m.%d” {"}"}, “order\_time” : {"{"} “time” : “%H:%M:%S” {"}"} {"}"}’.</p>
                          <p>See <span className="em">default\_column\_formats</span> for valid format syntax.</p>
                        </li>

                        <li>
                          <p><strong>columns\_to\_load</strong> – Specifies a comma-delimited list of columns from the source data to load. If more than one file is being loaded, this list applies to all files.</p>
                          <p>Column numbers can be specified discretely or as a range. For example, a value of ‘5,7,1..3’ will insert values from the fifth column in the source data into the first column in the target table, from the seventh column in the source data into the second column in the target table, and from the first through third columns in the source data into the third through fifth columns in the target table.</p>
                          <p>If the source data contains a header, column names matching the file header names may be provided instead of column numbers. If the target table doesn’t exist, the table will be created with the columns in this order. If the target table does exist with columns in a different order than the source data, this list can be used to match the order of the target table. For example, a value of ‘C, B, A’ will create a three column table with column C, followed by column B, followed by column A; or will insert those fields in that order into a table created with columns in that order. If the target table exists, the column names must match the source data field names for a name-mapping to be successful.</p>
                          <p>Mutually exclusive with <span className="em">columns\_to\_skip</span>.</p>
                        </li>

                        <li>
                          <p><strong>columns\_to\_skip</strong> – Specifies a comma-delimited list of columns from the source data to skip. Mutually exclusive with <span className="em">columns\_to\_load</span>.</p>
                        </li>

                        <li>
                          <p><strong>compression\_type</strong> – Source data compression type. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – No compression.</p>
                            </li>

                            <li>
                              <p><strong>auto</strong> – Auto detect compression type.</p>
                            </li>

                            <li>
                              <p><strong>gzip</strong> – gzip file compression.</p>
                            </li>

                            <li>
                              <p><strong>bzip2</strong> – bzip2 file compression.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘auto’.</p>
                        </li>

                        <li>
                          <p><strong>datasource\_name</strong> – Name of an existing external data source from which data file(s) specified in input parameter <span className="em">filepaths</span> will be loaded.</p>
                        </li>

                        <li>
                          <p><strong>default\_column\_formats</strong> – Specifies the default format to be applied to source data loaded into columns with the corresponding column property. Currently supported column properties include date, time, and datetime. This default column-property-bound format can be overridden by specifying a column property and format for a given target column in <span className="em">column\_formats</span>. For each specified annotation, the format will apply to all columns with that annotation unless a custom <span className="em">column\_formats</span> for that annotation is specified.</p>
                          <p>The parameter value must be formatted as a JSON string that is a map of column properties to their respective column formats, e.g., ‘{"{"} “date” : “%Y.%m.%d”, “time” : “%H:%M:%S” {"}"}’. Column formats are specified as a string of control characters and plain text. The supported control characters are ‘Y’, ‘m’, ‘d’, ‘H’, ‘M’, ‘S’, and ‘s’, which follow the Linux ‘strptime()’ specification, as well as ‘s’, which specifies seconds and fractional seconds (though the fractional component will be truncated past milliseconds).</p>
                          <p>Formats for the ‘date’ annotation must include the ‘Y’, ‘m’, and ‘d’ control characters. Formats for the ‘time’ annotation must include the ‘H’, ‘M’, and either ‘S’ or ‘s’ (but not both) control characters. Formats for the ‘datetime’ annotation meet both the ‘date’ and ‘time’ control character requirements. For example, ‘{"{"}“datetime” : “%m/%d/%Y %H:%M:%S” {"}"}’ would be used to interpret text as “05/04/2000 12:12:11”</p>
                        </li>

                        <li>
                          <p><strong>error\_handling</strong> – Specifies how errors should be handled upon insertion. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>permissive</strong> – Records with missing columns are populated with nulls if possible; otherwise, the malformed records are skipped.</p>
                            </li>

                            <li>
                              <p><strong>ignore\_bad\_records</strong> – Malformed records are skipped.</p>
                            </li>

                            <li>
                              <p><strong>abort</strong> – Stops current insertion and aborts entire operation when an error is encountered. Primary key collisions are considered abortable errors in this mode.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘abort’.</p>
                        </li>

                        <li>
                          <p><strong>file\_type</strong> – Specifies the type of the file(s) whose records will be inserted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>avro</strong> – Avro file format.</p>
                            </li>

                            <li>
                              <p><strong>delimited\_text</strong> – Delimited text file format; e.g., CSV, TSV, PSV, etc.</p>
                            </li>

                            <li>
                              <p><strong>gdb</strong> – Esri/GDB file format.</p>
                            </li>

                            <li>
                              <p><strong>json</strong> – JSON file format.</p>
                            </li>

                            <li>
                              <p><strong>parquet</strong> – Apache Parquet file format.</p>
                            </li>

                            <li>
                              <p><strong>shapefile</strong> – ShapeFile file format.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘delimited\_text’.</p>
                        </li>

                        <li>
                          <p><strong>flatten\_columns</strong> – Specifies how to handle nested columns. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Break up nested columns to multiple columns.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat nested columns as JSON columns instead of flattening.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>gdal\_configuration\_options</strong> – Comma separated list of gdal conf options, for the specific requests: key=value.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by <span className="em">error\_handling</span>. If the specified table does not have a primary key or if upsert mode is in effect (<span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>), then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore new records whose primary key values collide with those of existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat as errors any new records whose primary key values collide with those of existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ingestion\_mode</strong> – Whether to do a full load, dry run, or perform a type inference on the source data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>full</strong> – Run a type inference on the source data (if needed) and ingest.</p>
                            </li>

                            <li>
                              <p><strong>dry\_run</strong> – Does not load data, but walks through the source data and determines the number of valid records, taking into account the current mode of <span className="em">error\_handling</span>.</p>
                            </li>

                            <li>
                              <p><strong>type\_inference\_only</strong> – Infer the type of the source data and return, without ingesting any data. The inferred type is returned in the response.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘full’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_consumers\_per\_rank</strong> – Number of Kafka consumer threads per rank (valid range 1-6). The default value is ‘1’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_group\_id</strong> – The group id to be used when consuming data from a Kafka topic (valid only for Kafka datasource subscriptions).</p>
                        </li>

                        <li>
                          <p><strong>kafka\_offset\_reset\_policy</strong> – Policy to determine whether the Kafka data consumption starts either at earliest offset or latest offset. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>earliest</p>
                            </li>

                            <li>
                              <p>latest</p>
                            </li>
                          </ul>

                          <p>The default value is ‘earliest’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_optimistic\_ingest</strong> – Enable optimistic ingestion where Kafka topic offsets and table data are committed independently to achieve parallelism. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_subscription\_cancel\_after</strong> – Sets the Kafka subscription lifespan (in minutes). Expired subscription will be cancelled automatically.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_type\_inference\_fetch\_timeout</strong> – Maximum time to collect Kafka messages before type inferencing on the set of them.</p>
                        </li>

                        <li>
                          <p><strong>layer</strong> – Geo files layer(s) name(s): comma separated.</p>
                        </li>

                        <li>
                          <p><strong>loading\_mode</strong> – Scheme for distributing the extraction and loading of data from the source data file(s). This option applies only when loading files that are local to the database. Allowed values are:</p>

                          <ul>
                            <li>
                              <p><strong>head</strong> – The head node loads all data. All files must be available to the head node.</p>
                            </li>

                            <li>
                              <p><strong>distributed\_shared</strong> – The head node coordinates loading data by worker processes across all nodes from shared files available to all workers.</p>
                              <p>NOTE:</p>
                              <p>Instead of existing on a shared source, the files can be duplicated on a source local to each host to improve performance, though the files must appear as the same data set from the perspective of all hosts performing the load.</p>
                            </li>

                            <li>
                              <p><strong>distributed\_local</strong> – A single worker process on each node loads all files that are available to it. This option works best when each worker loads files from its own file system, to maximize performance. In order to avoid data duplication, either each worker performing the load needs to have visibility to a set of files unique to it (no file is visible to more than one node) or the target table needs to have a primary key (which will allow the worker to automatically deduplicate data).</p>
                              <p>NOTE:</p>
                              <p>If the target table doesn’t exist, the table structure will be determined by the head node. If the head node has no files local to it, it will be unable to determine the structure and the request will fail.</p>
                              <p>If the head node is configured to have no worker processes, no data strictly accessible to the head node will be loaded.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘head’.</p>
                        </li>

                        <li>
                          <p><strong>local\_time\_offset</strong> – Apply an offset to Avro local timestamp columns.</p>
                        </li>

                        <li>
                          <p><strong>max\_records\_to\_load</strong> – Limit the number of records to load in this request: if this number is larger than <span className="em">batch\_size</span>, then the number of records loaded will be limited to the next whole number of <span className="em">batch\_size</span> (per working thread).</p>
                        </li>

                        <li>
                          <p><strong>name\_columns\_from\_file</strong> – Specifies a comma-delimited list of column names to be used as the source-data column names. If the file has a header row (i.e., <span className="em">text\_has\_header</span> is <span className="em">true</span>), these names override the file’s header names. If the file has no header row, these names are used as the source-data column names. Either way, the i-th name in this list applies to the i-th column in the file, enabling name-based matching against the target table’s columns (and use with <span className="em">columns\_to\_load</span> / <span className="em">columns\_to\_skip</span>).</p>
                        </li>

                        <li>
                          <p><strong>num\_tasks\_per\_rank</strong> – Number of tasks for reading file per rank. Default will be system configuration parameter, external\_file\_reader\_num\_tasks.</p>
                        </li>

                        <li>
                          <p><strong>poll\_interval</strong> – If <span className="em">true</span>, the number of seconds between attempts to load external files into the table. If zero, polling will be continuous as long as data is found. If no data is found, the interval will steadily increase to a maximum of 60 seconds. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>primary\_keys</strong> – Comma separated list of column names to set as primary keys, when not specified in the type.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_retries</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_timeout</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_max\_consecutive\_connection\_failures</strong> – Max records to skip due to SR connection failures, before failing.</p>
                        </li>

                        <li>
                          <p><strong>max\_consecutive\_invalid\_schema\_failure</strong> – Max records to skip due to schema related errors, before failing.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_schema\_name</strong> – Name of the Avro schema in the schema registry to use when reading Avro records.</p>
                        </li>

                        <li>
                          <p><strong>shard\_keys</strong> – Comma separated list of column names to set as shard keys, when not specified in the type.</p>
                        </li>

                        <li>
                          <p><strong>skip\_lines</strong> – Skip a number of lines from the beginning of the file.</p>
                        </li>

                        <li>
                          <p><strong>start\_offsets</strong> – Starting offsets by partition to fetch from kafka. A comma separated list of partition:offset pairs.</p>
                        </li>

                        <li>
                          <p><strong>subscribe</strong> – Continuously poll the data source to check for new data and load it into the table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>table\_insert\_mode</strong> – Insertion scheme to use when inserting records from multiple shapefiles. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>single</strong> – Insert all records into a single table.</p>
                            </li>

                            <li>
                              <p><strong>table\_per\_file</strong> – Insert records from each file into a new table corresponding to that file.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘single’.</p>
                        </li>

                        <li>
                          <p><strong>text\_comment\_string</strong> – Specifies the character string that should be interpreted as a comment line prefix in the source data. All lines in the data starting with the provided string are ignored.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘#’.</p>
                        </li>

                        <li>
                          <p><strong>text\_delimiter</strong> – Specifies the character delimiting field values in the source data and field names in the header (if present).</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘,’.</p>
                        </li>

                        <li>
                          <p><strong>text\_escape\_character</strong> – Specifies the character that is used to escape other characters in the source data.</p>
                          <p>An ‘a’, ‘b’, ‘f’, ‘n’, ‘r’, ‘t’, or ‘v’ preceded by an escape character will be interpreted as the ASCII bell, backspace, form feed, line feed, carriage return, horizontal tab, and vertical tab, respectively. For example, the escape character followed by an ‘n’ will be interpreted as a newline within a field value.</p>
                          <p>The escape character can also be used to escape the quoting character, and will be treated as an escape character whether it is within a quoted field value or not.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only.</p>
                        </li>

                        <li>
                          <p><strong>text\_has\_header</strong> – Indicates whether the source data contains a header row.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>text\_header\_property\_delimiter</strong> – Specifies the delimiter for <a className="reference external" href="/content/concepts/types/#column-properties">column properties</a> in the header row (if present). Cannot be set to same value as <span className="em">text\_delimiter</span>.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘|’.</p>
                        </li>

                        <li>
                          <p><strong>text\_null\_string</strong> – Specifies the character string that should be interpreted as a null value in the source data.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘\N’.</p>
                        </li>

                        <li>
                          <p><strong>text\_quote\_character</strong> – Specifies the character that should be interpreted as a field value quoting character in the source data. The character must appear at beginning and end of field value to take effect. Delimiters within quoted fields are treated as literals and not delimiters. Within a quoted field, two consecutive quote characters will be interpreted as a single literal quote character, effectively escaping it. To not have a quote character, specify an empty string.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘”’.</p>
                        </li>

                        <li>
                          <p><strong>text\_search\_columns</strong> – Add ‘text\_search’ property to internally inferenced string columns. Comma separated list of column names or ‘\*’ for all columns. To add ‘text\_search’ property only to string columns greater than or equal to a minimum size, also set the <span className="em">text\_search\_min\_column\_length</span></p>
                        </li>

                        <li>
                          <p><strong>text\_search\_min\_column\_length</strong> – Set the minimum column size for strings to apply the ‘text\_search’ property to. Used only when <span className="em">text\_search\_columns</span> has a value.</p>
                        </li>

                        <li>
                          <p><strong>trim\_space</strong> – If set to <span className="em">true</span>, remove leading or trailing space from fields. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_strings</strong> – If set to <span className="em">true</span>, truncate string values that are longer than the column’s type size. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_table</strong> – If set to <span className="em">true</span>, truncates the table specified by input parameter <span className="em">table\_name</span> prior to loading the file(s). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p>type\_inference\_max\_records\_read</p>
                        </li>

                        <li>
                          <p><strong>type\_inference\_mode</strong> – Optimize type inferencing for either speed or accuracy. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>accuracy</strong> – Scans data to get exactly-typed and sized columns for all data scanned.</p>
                            </li>

                            <li>
                              <p><strong>speed</strong> – Scans data and picks the widest possible column types so that ‘all’ values will fit with minimum data scanned.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘accuracy’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_inplace\_updates</strong> – Applies only when upserting (when update\_on\_existing\_pk is true). If set to true (the default), an existing record matched by primary key is modified in place. If set to false, the matched record is updated by deleting it and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. If set to <span className="em">true</span>, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be ‘upserted’). If set to <span className="em">false</span>, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by <span className="em">ignore\_existing\_pk</span> and <span className="em">error\_handling</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Upsert new records when primary keys match existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject new records when primary keys match existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>transformations</strong> – Comma-separated expressions, one per target table column. Each expression is evaluated per record. Empty entries (two consecutive commas) mean no transformation for that column – the value is resolved from the input record, table default, NULL, or an error. Expressions may reference input columns by name or by position ($1 for the first input column, $2 for the second, etc.). The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>ID of the currently registered table structure <a className="reference external" href="/content/concepts/types/">type</a> for the target table.</p>
                    </div>

                    <div className="dt">type\_definition (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A JSON string describing the columns of the target table.</p>
                    </div>

                    <div className="dt">type\_label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The user-defined description associated with the target table’s structure.</p>
                    </div>

                    <div className="dt">type\_properties (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>A mapping of each target table column name to an array of column properties associated with that column.</p>
                    </div>

                    <div className="dt">count\_inserted (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records inserted into the target table.</p>
                    </div>

                    <div className="dt">count\_skipped (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records skipped, when not running in <span className="em">abort</span> error handling mode.</p>
                    </div>

                    <div className="dt">count\_updated (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>\[Not yet implemented] Number of records updated within the target table.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">files (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The list of source files from which records would be inserted; only filled in when <span className="em">ingestion\_mode</span> is <span className="em">dry\_run</span>.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.insert_records_from_payload"> <span className="sig-name descname"><span className="pre">insert\_records\_from\_payload</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">data\_text</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">data\_bytes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">modify\_columns</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">create\_table\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Reads from the given text-based or binary payload and inserts the data into a new or existing table. The table will be created if it doesn’t already exist.</p>
              <p>Returns once all records are processed.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table into which the data will be inserted, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. If the table does not exist, the table will be created using either an existing <span className="em">type\_id</span> or the type inferred from the payload, and the new table name will have to meet standard <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>.</p>
                    </div>

                    <div className="dt">data\_text (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Records formatted as delimited text.</p>
                    </div>

                    <div className="dt">data\_bytes (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>Records formatted as binary data.</p>
                    </div>

                    <div className="dt">modify\_columns (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Not implemented yet. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">create\_table\_options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Options used when creating the target table. Includes type to use. The other options match those in <a className="reference internal" href="#gpudb.GPUdb.create_table" title="gpudb.GPUdb.create_table"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table()</span></code></a>. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>type\_id</strong> – ID of a currently registered <a className="reference external" href="/content/concepts/types/">type</a>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_exists</strong> – If <span className="em">true</span>, prevents an error from occurring if the table already exists and is of the given type. If a table with the same ID but a different type exists, it is still an error. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>is\_replicated</strong> – Affects the <a className="reference external" href="/content/concepts/tables/#distribution">distribution scheme</a> for the table’s data. If <span className="em">true</span> and the given type has no explicit <a className="reference external" href="/content/concepts/tables/#shard-key">shard key</a> defined, the table will be <a className="reference external" href="/content/concepts/tables/#replication">replicated</a>. If <span className="em">false</span>, the table will be <a className="reference external" href="/content/concepts/tables/#sharding">sharded</a> according to the shard key specified in the given <span className="em">type\_id</span>, or <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly sharded</a>, if no shard key is specified. Note that a type containing a shard key cannot be used to create a replicated table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_keys</strong> – Semicolon-separated list of <a className="reference external" href="/content/concepts/tables/#foreign-keys">foreign keys</a>, of the format ‘(source\_column\_name \[, …]) references target\_table\_name(primary\_key\_column\_name \[, …]) \[as foreign\_key\_name]’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_shard\_key</strong> – Foreign shard key of the format ‘source\_column references shard\_by\_column from target\_table(primary\_key\_column)’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_column\_max\_memory</strong> – Indicates the target maximum data size for each column in a chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_max\_memory</strong> – Indicates the target maximum data size for all columns in a chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>is\_result\_table</strong> – Indicates whether the table is a <a className="reference external" href="/content/concepts/tables_memory_only/">memory-only table</a>. A result table cannot contain columns with text\_search <a className="reference external" href="/content/concepts/types/#data-handling">data-handling</a>, and it will not be retained if the server is restarted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for this table’s columns.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>bad\_record\_table\_name</strong> – Name of a table to which records that were rejected are written. The bad-record-table has the following columns: line\_number (long), line\_rejected (string), error\_message (string).</p>
                        </li>

                        <li>
                          <p><strong>bad\_record\_table\_limit</strong> – A positive integer indicating the maximum number of records that can be written to the bad-record-table. Default value is 10000.</p>
                        </li>

                        <li>
                          <p><strong>bad\_record\_table\_limit\_per\_input</strong> – For subscriptions: A positive integer indicating the maximum number of records that can be written to the bad-record-table per file/payload. Default value will be ‘bad\_record\_table\_limit’ and total size of the table per rank is limited to ‘bad\_record\_table\_limit’.</p>
                        </li>

                        <li>
                          <p><strong>batch\_size</strong> – Internal tuning parameter–number of records per batch when inserting data.</p>
                        </li>

                        <li>
                          <p><strong>column\_formats</strong> – For each target column specified, applies the column-property-bound format to the source data loaded into that column. Each column format will contain a mapping of one or more of its column properties to an appropriate format for each property. Currently supported column properties include date, time, and datetime. The parameter value must be formatted as a JSON string of maps of column names to maps of column properties to their corresponding column formats, e.g., ‘{"{"} “order\_date” : {"{"} “date” : “%Y.%m.%d” {"}"}, “order\_time” : {"{"} “time” : “%H:%M:%S” {"}"} {"}"}’.</p>
                          <p>See <span className="em">default\_column\_formats</span> for valid format syntax.</p>
                        </li>

                        <li>
                          <p><strong>columns\_to\_load</strong> – Specifies a comma-delimited list of columns from the source data to load. If more than one file is being loaded, this list applies to all files.</p>
                          <p>Column numbers can be specified discretely or as a range. For example, a value of ‘5,7,1..3’ will insert values from the fifth column in the source data into the first column in the target table, from the seventh column in the source data into the second column in the target table, and from the first through third columns in the source data into the third through fifth columns in the target table.</p>
                          <p>If the source data contains a header, column names matching the file header names may be provided instead of column numbers. If the target table doesn’t exist, the table will be created with the columns in this order. If the target table does exist with columns in a different order than the source data, this list can be used to match the order of the target table. For example, a value of ‘C, B, A’ will create a three column table with column C, followed by column B, followed by column A; or will insert those fields in that order into a table created with columns in that order. If the target table exists, the column names must match the source data field names for a name-mapping to be successful.</p>
                          <p>Mutually exclusive with <span className="em">columns\_to\_skip</span>.</p>
                        </li>

                        <li>
                          <p><strong>columns\_to\_skip</strong> – Specifies a comma-delimited list of columns from the source data to skip. Mutually exclusive with <span className="em">columns\_to\_load</span>.</p>
                        </li>

                        <li>
                          <p><strong>compression\_type</strong> – Payload compression type. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – Uncompressed.</p>
                            </li>

                            <li>
                              <p><strong>auto</strong> – Default. Auto detect compression type.</p>
                            </li>

                            <li>
                              <p><strong>gzip</strong> – gzip file compression.</p>
                            </li>

                            <li>
                              <p><strong>bzip2</strong> – bzip2 file compression.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘auto’.</p>
                        </li>

                        <li>
                          <p><strong>default\_column\_formats</strong> – Specifies the default format to be applied to source data loaded into columns with the corresponding column property. Currently supported column properties include date, time, and datetime. This default column-property-bound format can be overridden by specifying a column property and format for a given target column in <span className="em">column\_formats</span>. For each specified annotation, the format will apply to all columns with that annotation unless a custom <span className="em">column\_formats</span> for that annotation is specified.</p>
                          <p>The parameter value must be formatted as a JSON string that is a map of column properties to their respective column formats, e.g., ‘{"{"} “date” : “%Y.%m.%d”, “time” : “%H:%M:%S” {"}"}’. Column formats are specified as a string of control characters and plain text. The supported control characters are ‘Y’, ‘m’, ‘d’, ‘H’, ‘M’, ‘S’, and ‘s’, which follow the Linux ‘strptime()’ specification, as well as ‘s’, which specifies seconds and fractional seconds (though the fractional component will be truncated past milliseconds).</p>
                          <p>Formats for the ‘date’ annotation must include the ‘Y’, ‘m’, and ‘d’ control characters. Formats for the ‘time’ annotation must include the ‘H’, ‘M’, and either ‘S’ or ‘s’ (but not both) control characters. Formats for the ‘datetime’ annotation meet both the ‘date’ and ‘time’ control character requirements. For example, ‘{"{"}“datetime” : “%m/%d/%Y %H:%M:%S” {"}"}’ would be used to interpret text as “05/04/2000 12:12:11”</p>
                        </li>

                        <li>
                          <p><strong>error\_handling</strong> – Specifies how errors should be handled upon insertion. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>permissive</strong> – Records with missing columns are populated with nulls if possible; otherwise, the malformed records are skipped.</p>
                            </li>

                            <li>
                              <p><strong>ignore\_bad\_records</strong> – Malformed records are skipped.</p>
                            </li>

                            <li>
                              <p><strong>abort</strong> – Stops current insertion and aborts entire operation when an error is encountered. Primary key collisions are considered abortable errors in this mode.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘abort’.</p>
                        </li>

                        <li>
                          <p><strong>file\_type</strong> – Specifies the type of the file(s) whose records will be inserted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>avro</strong> – Avro file format.</p>
                            </li>

                            <li>
                              <p><strong>delimited\_text</strong> – Delimited text file format; e.g., CSV, TSV, PSV, etc.</p>
                            </li>

                            <li>
                              <p><strong>gdb</strong> – Esri/GDB file format.</p>
                            </li>

                            <li>
                              <p><strong>json</strong> – JSON file format.</p>
                            </li>

                            <li>
                              <p><strong>parquet</strong> – Apache Parquet file format.</p>
                            </li>

                            <li>
                              <p><strong>shapefile</strong> – ShapeFile file format.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘delimited\_text’.</p>
                        </li>

                        <li>
                          <p><strong>flatten\_columns</strong> – Specifies how to handle nested columns. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Break up nested columns to multiple columns.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat nested columns as JSON columns instead of flattening.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>gdal\_configuration\_options</strong> – Comma separated list of gdal conf options, for the specific requests: key=value. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by <span className="em">error\_handling</span>. If the specified table does not have a primary key or if upsert mode is in effect (<span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>), then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore new records whose primary key values collide with those of existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat as errors any new records whose primary key values collide with those of existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ingestion\_mode</strong> – Whether to do a full load, dry run, or perform a type inference on the source data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>full</strong> – Run a type inference on the source data (if needed) and ingest.</p>
                            </li>

                            <li>
                              <p><strong>dry\_run</strong> – Does not load data, but walks through the source data and determines the number of valid records, taking into account the current mode of <span className="em">error\_handling</span>.</p>
                            </li>

                            <li>
                              <p><strong>type\_inference\_only</strong> – Infer the type of the source data and return, without ingesting any data. The inferred type is returned in the response.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘full’.</p>
                        </li>

                        <li>
                          <p><strong>layer</strong> – Geo files layer(s) name(s): comma separated. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>loading\_mode</strong> – Scheme for distributing the extraction and loading of data from the source data file(s). This option applies only when loading files that are local to the database. Allowed values are:</p>

                          <ul>
                            <li>
                              <p><strong>head</strong> – The head node loads all data. All files must be available to the head node.</p>
                            </li>

                            <li>
                              <p><strong>distributed\_shared</strong> – The head node coordinates loading data by worker processes across all nodes from shared files available to all workers.</p>
                              <p>NOTE:</p>
                              <p>Instead of existing on a shared source, the files can be duplicated on a source local to each host to improve performance, though the files must appear as the same data set from the perspective of all hosts performing the load.</p>
                            </li>

                            <li>
                              <p><strong>distributed\_local</strong> – A single worker process on each node loads all files that are available to it. This option works best when each worker loads files from its own file system, to maximize performance. In order to avoid data duplication, either each worker performing the load needs to have visibility to a set of files unique to it (no file is visible to more than one node) or the target table needs to have a primary key (which will allow the worker to automatically deduplicate data).</p>
                              <p>NOTE:</p>
                              <p>If the target table doesn’t exist, the table structure will be determined by the head node. If the head node has no files local to it, it will be unable to determine the structure and the request will fail.</p>
                              <p>If the head node is configured to have no worker processes, no data strictly accessible to the head node will be loaded.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘head’.</p>
                        </li>

                        <li>
                          <p><strong>local\_time\_offset</strong> – For Avro local timestamp columns.</p>
                        </li>

                        <li>
                          <p><strong>max\_records\_to\_load</strong> – Limit the number of records to load in this request: If this number is larger than a batch\_size, then the number of records loaded will be limited to the next whole number of batch\_size (per working thread). The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>name\_columns\_from\_file</strong> – Specifies a comma-delimited list of column names to be used as the source-data column names. If the payload has a header row (i.e., <span className="em">text\_has\_header</span> is <span className="em">true</span>), these names override the payload’s header names. If the payload has no header row, these names are used as the source-data column names. Either way, the i-th name in this list applies to the i-th column in the payload, enabling name-based matching against the target table’s columns (and use with <span className="em">columns\_to\_load</span> / <span className="em">columns\_to\_skip</span>).</p>
                        </li>

                        <li>
                          <p><strong>num\_tasks\_per\_rank</strong> – Number of tasks for reading file per rank. Default will be external\_file\_reader\_num\_tasks.</p>
                        </li>

                        <li>
                          <p><strong>poll\_interval</strong> – If <span className="em">true</span>, the number of seconds between attempts to load external files into the table. If zero, polling will be continuous as long as data is found. If no data is found, the interval will steadily increase to a maximum of 60 seconds.</p>
                        </li>

                        <li>
                          <p><strong>primary\_keys</strong> – Comma separated list of column names, to set as primary keys, when not specified in the type. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_retries</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_connection\_timeout</strong> – Confluent Schema registry connection timeout (in secs).</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_max\_consecutive\_connection\_failures</strong> – Max records to skip due to SR connection failures, before failing.</p>
                        </li>

                        <li>
                          <p><strong>max\_consecutive\_invalid\_schema\_failure</strong> – Max records to skip due to schema related errors, before failing.</p>
                        </li>

                        <li>
                          <p><strong>schema\_registry\_schema\_name</strong> – Name of the Avro schema in the schema registry to use when reading Avro records.</p>
                        </li>

                        <li>
                          <p><strong>shard\_keys</strong> – Comma separated list of column names, to set as shard keys, when not specified in the type. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>skip\_lines</strong> – Skip a number of lines from the beginning of the file.</p>
                        </li>

                        <li>
                          <p><strong>subscribe</strong> – Continuously poll the data source to check for new data and load it into the table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>table\_insert\_mode</strong> – When inserting records from multiple files: if <span className="em">table\_per\_file</span>, then insert from each file into a new table. Currently supported only for shapefiles. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>single</p>
                            </li>

                            <li>
                              <p>table\_per\_file</p>
                            </li>
                          </ul>

                          <p>The default value is ‘single’.</p>
                        </li>

                        <li>
                          <p><strong>text\_comment\_string</strong> – Specifies the character string that should be interpreted as a comment line prefix in the source data. All lines in the data starting with the provided string are ignored.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘#’.</p>
                        </li>

                        <li>
                          <p><strong>text\_delimiter</strong> – Specifies the character delimiting field values in the source data and field names in the header (if present).</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘,’.</p>
                        </li>

                        <li>
                          <p><strong>text\_escape\_character</strong> – Specifies the character that is used to escape other characters in the source data.</p>
                          <p>An ‘a’, ‘b’, ‘f’, ‘n’, ‘r’, ‘t’, or ‘v’ preceded by an escape character will be interpreted as the ASCII bell, backspace, form feed, line feed, carriage return, horizontal tab, and vertical tab, respectively. For example, the escape character followed by an ‘n’ will be interpreted as a newline within a field value.</p>
                          <p>The escape character can also be used to escape the quoting character, and will be treated as an escape character whether it is within a quoted field value or not.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only.</p>
                        </li>

                        <li>
                          <p><strong>text\_has\_header</strong> – Indicates whether the source data contains a header row.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>text\_header\_property\_delimiter</strong> – Specifies the delimiter for <a className="reference external" href="/content/concepts/types/#column-properties">column properties</a> in the header row (if present). Cannot be set to same value as <span className="em">text\_delimiter</span>.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘|’.</p>
                        </li>

                        <li>
                          <p><strong>text\_null\_string</strong> – Specifies the character string that should be interpreted as a null value in the source data.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘\N’.</p>
                        </li>

                        <li>
                          <p><strong>text\_quote\_character</strong> – Specifies the character that should be interpreted as a field value quoting character in the source data. The character must appear at beginning and end of field value to take effect. Delimiters within quoted fields are treated as literals and not delimiters. Within a quoted field, two consecutive quote characters will be interpreted as a single literal quote character, effectively escaping it. To not have a quote character, specify an empty string.</p>
                          <p>For <span className="em">delimited\_text</span> <span className="em">file\_type</span> only. The default value is ‘”’.</p>
                        </li>

                        <li>
                          <p><strong>text\_search\_columns</strong> – Add ‘text\_search’ property to internally inferenced string columns. Comma separated list of column names or ‘\*’ for all columns. To add text\_search property only to string columns of minimum size, set also the option ‘text\_search\_min\_column\_length’.</p>
                        </li>

                        <li>
                          <p><strong>text\_search\_min\_column\_length</strong> – Set minimum column size. Used only when ‘text\_search\_columns’ has a value.</p>
                        </li>

                        <li>
                          <p><strong>trim\_space</strong> – If set to <span className="em">true</span>, remove leading or trailing space from fields. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_strings</strong> – If set to <span className="em">true</span>, truncate string values that are longer than the column’s type size. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_table</strong> – If set to <span className="em">true</span>, truncates the table specified by input parameter <span className="em">table\_name</span> prior to loading the file(s). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p>type\_inference\_max\_records\_read</p>
                        </li>

                        <li>
                          <p><strong>type\_inference\_mode</strong> – Optimize type inference mode. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>accuracy</strong> – Scans data to get exactly-typed and sized columns for all data scanned.</p>
                            </li>

                            <li>
                              <p><strong>speed</strong> – Scans data and picks the widest possible column types so that ‘all’ values will fit with minimum data scanned.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘accuracy’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_inplace\_updates</strong> – Applies only when upserting (when update\_on\_existing\_pk is true). If set to true (the default), an existing record matched by primary key is modified in place. If set to false, the matched record is updated by deleting it and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. If set to <span className="em">true</span>, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be “upserted”). If set to <span className="em">false</span>, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by <span className="em">ignore\_existing\_pk</span> and <span className="em">error\_handling</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Upsert new records when primary keys match existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject new records when primary keys match existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>transformations</strong> – Comma-separated expressions, one per target table column. Each expression is evaluated per record. Empty entries (two consecutive commas) mean no transformation for that column – the value is resolved from the input record, table default, NULL, or an error. Expressions may reference input columns by name or by position ($1 for the first input column, $2 for the second, etc.). The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>ID of the currently registered table structure <a className="reference external" href="/content/concepts/types/">type</a> for the target table.</p>
                    </div>

                    <div className="dt">type\_definition (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A JSON string describing the columns of the target table.</p>
                    </div>

                    <div className="dt">type\_label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The user-defined description associated with the target table’s structure.</p>
                    </div>

                    <div className="dt">type\_properties (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>A mapping of each target table column name to an array of column properties associated with that column.</p>
                    </div>

                    <div className="dt">count\_inserted (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records inserted into the target table.</p>
                    </div>

                    <div className="dt">count\_skipped (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records skipped, when not running in <span className="em">abort</span> error handling mode.</p>
                    </div>

                    <div className="dt">count\_updated (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>\[Not yet implemented] Number of records updated within the target table.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.insert_records_from_query"> <span className="sig-name descname"><span className="pre">insert\_records\_from\_query</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">remote\_query</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">modify\_columns</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">create\_table\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Computes remote query result and inserts the result data into a new or existing table.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table into which the data will be inserted, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. If the table does not exist, the table will be created using either an existing <span className="em">type\_id</span> or the type inferred from the remote query, and the new table name will have to meet standard <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>.</p>
                    </div>

                    <div className="dt">remote\_query (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Query for which result data needs to be imported.</p>
                    </div>

                    <div className="dt">modify\_columns (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Not implemented yet. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">create\_table\_options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Options used when creating the target table. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>type\_id</strong> – ID of a currently registered <a className="reference external" href="/content/concepts/types/">type</a>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_exists</strong> – If <span className="em">true</span>, prevents an error from occurring if the table already exists and is of the given type. If a table with the same ID but a different type exists, it is still an error. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>is\_replicated</strong> – Affects the <a className="reference external" href="/content/concepts/tables/#distribution">distribution scheme</a> for the table’s data. If <span className="em">true</span> and the given type has no explicit <a className="reference external" href="/content/concepts/tables/#shard-key">shard key</a> defined, the table will be <a className="reference external" href="/content/concepts/tables/#replication">replicated</a>. If <span className="em">false</span>, the table will be <a className="reference external" href="/content/concepts/tables/#sharding">sharded</a> according to the shard key specified in the given <span className="em">type\_id</span>, or <a className="reference external" href="/content/concepts/tables/#random-sharding">randomly sharded</a>, if no shard key is specified. Note that a type containing a shard key cannot be used to create a replicated table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_keys</strong> – Semicolon-separated list of <a className="reference external" href="/content/concepts/tables/#foreign-keys">foreign keys</a>, of the format ‘(source\_column\_name \[, …]) references target\_table\_name(primary\_key\_column\_name \[, …]) \[as foreign\_key\_name]’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_shard\_key</strong> – Foreign shard key of the format ‘source\_column references shard\_by\_column from target\_table(primary\_key\_column)’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme to use. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Use <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <span className="em">partition\_definitions</span>.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the choice of <span className="em">partition\_type</span>. See <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitioning</a>, <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>, or <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a> for example formats.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – If <span className="em">true</span>, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for <a className="reference external" href="/content/concepts/tables/#partitioning-by-list">list partitions</a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ttl</strong> – Sets the <a className="reference external" href="/content/concepts/ttl/">TTL</a> of the table specified in input parameter <span className="em">table\_name</span>.</p>
                        </li>

                        <li>
                          <p><strong>chunk\_size</strong> – Indicates the number of records per chunk to be used for this table.</p>
                        </li>

                        <li>
                          <p><strong>is\_result\_table</strong> – Indicates whether the table is a <a className="reference external" href="/content/concepts/tables_memory_only/">memory-only table</a>. A result table cannot contain columns with text\_search <a className="reference external" href="/content/concepts/types/#data-handling">data-handling</a>, and it will not be retained if the server is restarted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>strategy\_definition</strong> – The <a className="reference external" href="/content/rm/concepts/#tier-strategies">tier strategy</a> for the table and its columns.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – The default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for this table’s columns.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>bad\_record\_table\_name</strong> – Name of a table to which records that were rejected are written. The bad-record-table has the following columns: line\_number (long), line\_rejected (string), error\_message (string). When error handling is Abort, bad records table is not populated.</p>
                        </li>

                        <li>
                          <p><strong>bad\_record\_table\_limit</strong> – A positive integer indicating the maximum number of records that can be written to the bad-record-table. Default value is 10000.</p>
                        </li>

                        <li>
                          <p><strong>batch\_size</strong> – Number of records per batch when inserting data.</p>
                        </li>

                        <li>
                          <p><strong>datasource\_name</strong> – Name of an existing external data source from which table will be loaded.</p>
                        </li>

                        <li>
                          <p><strong>error\_handling</strong> – Specifies how errors should be handled upon insertion. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>permissive</strong> – Records with missing columns are populated with nulls if possible; otherwise, the malformed records are skipped.</p>
                            </li>

                            <li>
                              <p><strong>ignore\_bad\_records</strong> – Malformed records are skipped.</p>
                            </li>

                            <li>
                              <p><strong>abort</strong> – Stops current insertion and aborts entire operation when an error is encountered. Primary key collisions are considered abortable errors in this mode.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘abort’.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by <span className="em">error\_handling</span>. If the specified table does not have a primary key or if upsert mode is in effect (<span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>), then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore new records whose primary key values collide with those of existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat as errors any new records whose primary key values collide with those of existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ingestion\_mode</strong> – Whether to do a full load, dry run, or perform a type inference on the source data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>full</strong> – Run a type inference on the source data (if needed) and ingest.</p>
                            </li>

                            <li>
                              <p><strong>dry\_run</strong> – Does not load data, but walks through the source data and determines the number of valid records, taking into account the current mode of <span className="em">error\_handling</span>.</p>
                            </li>

                            <li>
                              <p><strong>type\_inference\_only</strong> – Infer the type of the source data and return, without ingesting any data. The inferred type is returned in the response.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘full’.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_fetch\_size</strong> – The JDBC fetch size, which determines how many rows to fetch per round trip.</p>
                        </li>

                        <li>
                          <p><strong>jdbc\_session\_init\_statement</strong> – Executes the statement per each JDBC session before doing actual load. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>num\_splits\_per\_rank</strong> – Number of splits for reading data per rank. Default will be external\_file\_reader\_num\_tasks. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>num\_tasks\_per\_rank</strong> – Number of tasks for reading data per rank. Default will be external\_file\_reader\_num\_tasks.</p>
                        </li>

                        <li>
                          <p><strong>primary\_keys</strong> – Comma separated list of column names, to set as primary keys, when not specified in the type. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>shard\_keys</strong> – Comma separated list of column names, to set as shard keys, when not specified in the type. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>subscribe</strong> – Continuously poll the data source to check for new data and load it into the table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_table</strong> – If set to <span className="em">true</span>, truncates the table specified by input parameter <span className="em">table\_name</span> prior to loading the data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>remote\_query</strong> – Remote SQL query from which data will be sourced.</p>
                        </li>

                        <li>
                          <p><strong>remote\_query\_order\_by</strong> – Name of column to be used for splitting the query into multiple sub-queries using ordering of given column. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>remote\_query\_filter\_column</strong> – Name of column to be used for splitting the query into multiple sub-queries using the data distribution of given column. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>remote\_query\_increasing\_column</strong> – Column on subscribed remote query result that will increase for new records (e.g., TIMESTAMP). The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>remote\_query\_partition\_column</strong> – Alias name for <span className="em">remote\_query\_filter\_column</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_strings</strong> – If set to <span className="em">true</span>, truncate string values that are longer than the column’s type size. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_inplace\_updates</strong> – Applies only when upserting (when update\_on\_existing\_pk is true). If set to true (the default), an existing record matched by primary key is modified in place. If set to false, the matched record is updated by deleting it and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for inserting into a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. If set to <span className="em">true</span>, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be “upserted”). If set to <span className="em">false</span>, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by <span className="em">ignore\_existing\_pk</span> and <span className="em">error\_handling</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Upsert new records when primary keys match existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject new records when primary keys match existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>ID of the currently registered table structure <a className="reference external" href="/content/concepts/types/">type</a> for the target table.</p>
                    </div>

                    <div className="dt">type\_definition (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>A JSON string describing the columns of the target table.</p>
                    </div>

                    <div className="dt">type\_label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The user-defined description associated with the target table’s structure.</p>
                    </div>

                    <div className="dt">type\_properties (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>A mapping of each target table column name to an array of column properties associated with that column.</p>
                    </div>

                    <div className="dt">count\_inserted (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records inserted into the target table.</p>
                    </div>

                    <div className="dt">count\_skipped (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records skipped, when not running in <span className="em">abort</span> error handling mode.</p>
                    </div>

                    <div className="dt">count\_updated (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>\[Not yet implemented] Number of records updated within the target table.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.insert_records_random"> <span className="sig-name descname"><span className="pre">insert\_records\_random</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">count</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Generates a specified number of random records and adds them to the given table. There is an optional parameter that allows the user to customize the ranges of the column values. It also allows the user to specify linear profiles for some or all columns in which case linear values are generated rather than random ones. Only individual tables are supported for this operation.</p>
              <p>This operation is synchronous, meaning that a response will not be returned until all random records are fully available.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Table to which random records will be added, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table, not a view.</p>
                    </div>

                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records to generate.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to dicts of str to floats</span>) –</div>

                    <div className="dd">
                      <p>Optional parameter to pass in specifications for the randomness of the values. This map is different from the <span className="em">options</span> parameter of most other endpoints in that it is a map of string to map of string to doubles, while most others are maps of string to string. In this map, the top level keys represent which column’s parameters are being specified, while the internal keys represents which parameter is being specified. These parameters take on different meanings depending on the type of the column. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>seed</strong> – If provided, the internal random number generator will be initialized with the given value. The minimum is 0. This allows for the same set of random numbers to be generated across invocation of this endpoint in case the user wants to repeat the test. Since input parameter <span className="em">options</span>, is a map of maps, we need an internal map to provide the seed value. For example, to pass 100 as the seed value through this parameter, you need something equivalent to: ‘options’ = {"{"}‘seed’: {"{"} ‘value’: 100 {"}"} {"}"}. Allowed keys are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>value</strong> – The seed value to use.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>all</strong> – This key indicates that the specifications relayed in the internal map are to be applied to all columns of the records. Allowed keys are:</p>

                          <ul>
                            <li>
                              <p><strong>min</strong> – For numerical columns, the minimum of the generated values is set to this value. Default is -99999. For point, shape, and track columns, min for numeric ‘x’ and ‘y’ columns needs to be within \[-180, 180] and \[-90, 90], respectively. The default minimum possible values for these columns in such cases are -180.0 and -90.0. For the ‘TIMESTAMP’ column, the default minimum corresponds to Jan 1, 2010.</p>
                              <p>For string columns, the minimum length of the randomly generated strings is set to this value (default is 0). If both minimum and maximum are provided, minimum must be less than or equal to max.</p>
                              <p>If the min is outside the accepted ranges for strings columns and ‘x’ and ‘y’ columns for point/shape/track, then those parameters will not be set; however, an error will not be thrown in such a case. It is the responsibility of the user to use the <span className="em">all</span> parameter judiciously.</p>
                            </li>

                            <li>
                              <p><strong>max</strong> – For numerical columns, the maximum of the generated values is set to this value. Default is 99999. For point, shape, and track columns, max for numeric ‘x’ and ‘y’ columns needs to be within \[-180, 180] and \[-90, 90], respectively. The default minimum possible values for these columns in such cases are 180.0 and 90.0.</p>
                              <p>For string columns, the maximum length of the randomly generated strings. If both minimum and maximum are provided, <span className="em">max</span> must be greater than or equal to <span className="em">min</span>.</p>
                              <p>If the <span className="em">max</span> is outside the accepted ranges for strings columns and ‘x’ and ‘y’ columns for point/shape/track, then those parameters will not be set; however, an error will not be thrown in such a case. It is the responsibility of the user to use the <span className="em">all</span> parameter judiciously.</p>
                            </li>

                            <li>
                              <p><strong>interval</strong> – If specified, generate values for all columns evenly spaced with the given interval value. If a max value is specified for a given column the data is randomly generated between min and max and decimated down to the interval. If no max is provided the data is linearly generated starting at the minimum value (instead of generating random data). For non-decimated string-type columns the interval value is ignored. Instead the values are generated following the pattern: ‘attrname\_creationIndex#’, i.e. the column name suffixed with an underscore and a running counter (starting at 0). For string types with limited size (e.g. char4) the prefix is dropped. No nulls will be generated for nullable columns.</p>
                            </li>

                            <li>
                              <p><strong>null\_percentage</strong> – If specified, then generate the given percentage of the count as nulls for all nullable columns. This option will be ignored for non-nullable columns. The value must be within the range \[0, 1.0]. The default value is 5% (0.05).</p>
                            </li>

                            <li>
                              <p><strong>cardinality</strong> – If specified, limit the randomly generated values to a fixed set. Not allowed on a column with interval specified, and is not applicable to WKT or Track-specific columns. The value must be greater than 0. This option is disabled by default.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>attr\_name</strong> – Use the desired column name in place of <span className="em">attr\_name</span>, and set the following parameters for the column specified. This overrides any parameter set by <span className="em">all</span>. Allowed keys are:</p>

                          <ul>
                            <li>
                              <p><strong>min</strong> – For numerical columns, the minimum of the generated values is set to this value. Default is -99999. For point, shape, and track columns, min for numeric ‘x’ and ‘y’ columns needs to be within \[-180, 180] and \[-90, 90], respectively. The default minimum possible values for these columns in such cases are -180.0 and -90.0. For the ‘TIMESTAMP’ column, the default minimum corresponds to Jan 1, 2010.</p>
                              <p>For string columns, the minimum length of the randomly generated strings is set to this value (default is 0). If both minimum and maximum are provided, minimum must be less than or equal to max.</p>
                              <p>If the min is outside the accepted ranges for strings columns and ‘x’ and ‘y’ columns for point/shape/track, then those parameters will not be set; however, an error will not be thrown in such a case. It is the responsibility of the user to use the <span className="em">all</span> parameter judiciously.</p>
                            </li>

                            <li>
                              <p><strong>max</strong> – For numerical columns, the maximum of the generated values is set to this value. Default is 99999. For point, shape, and track columns, max for numeric ‘x’ and ‘y’ columns needs to be within \[-180, 180] and \[-90, 90], respectively. The default minimum possible values for these columns in such cases are 180.0 and 90.0.</p>
                              <p>For string columns, the maximum length of the randomly generated strings. If both minimum and maximum are provided, <span className="em">max</span> must be greater than or equal to <span className="em">min</span>.</p>
                              <p>If the <span className="em">max</span> is outside the accepted ranges for strings columns and ‘x’ and ‘y’ columns for point/shape/track, then those parameters will not be set; however, an error will not be thrown in such a case. It is the responsibility of the user to use the <span className="em">all</span> parameter judiciously.</p>
                            </li>

                            <li>
                              <p><strong>interval</strong> – If specified, generate values for all columns evenly spaced with the given interval value. If a max value is specified for a given column the data is randomly generated between min and max and decimated down to the interval. If no max is provided the data is linearly generated starting at the minimum value (instead of generating random data). For non-decimated string-type columns the interval value is ignored. Instead the values are generated following the pattern: ‘attrname\_creationIndex#’, i.e. the column name suffixed with an underscore and a running counter (starting at 0). For string types with limited size (e.g. char4) the prefix is dropped. No nulls will be generated for nullable columns.</p>
                            </li>

                            <li>
                              <p><strong>null\_percentage</strong> – If specified and if this column is nullable, then generate the given percentage of the count as nulls. This option will result in an error if the column is not nullable. The value must be within the range \[0, 1.0]. The default value is 5% (0.05).</p>
                            </li>

                            <li>
                              <p><strong>cardinality</strong> – If specified, limit the randomly generated values to a fixed set. Not allowed on a column with interval specified, and is not applicable to WKT or Track-specific columns. The value must be greater than 0. This option is disabled by default.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>track\_length</strong> – This key-map pair is only valid for track data sets (an error is thrown otherwise). No nulls would be generated for nullable columns. Allowed keys are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>min</strong> – Minimum possible length for generated series; default is 100 records per series. Must be an integral value within the range \[1, 500]. If both min and max are specified, min must be less than or equal to max. The minimum allowed value is 1. The maximum allowed value is 500.</p>
                            </li>

                            <li>
                              <p><strong>max</strong> – Maximum possible length for generated series; default is 500 records per series. Must be an integral value within the range \[1, 500]. If both min and max are specified, max must be greater than or equal to min. The minimum allowed value is 1. The maximum allowed value is 500.</p>
                            </li>
                          </ul>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">count (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Number of records inserted.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.insert_symbol"> <span className="sig-name descname"><span className="pre">insert\_symbol</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">symbol\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">symbol\_format</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">symbol\_data</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Adds a symbol or icon (i.e. an image) to represent data points when data is rendered visually. Users must provide the symbol identifier (string), a format (currently supported: ‘svg’ and ‘svg\_path’), the data for the symbol, and any additional optional parameter (e.g. color). To have a symbol used for rendering create a table with a string column named ‘SYMBOLCODE’ (along with ‘x’ or ‘y’ for example). Then when the table is rendered (via <a className="reference external" href="/content/api/rest/wms_rest/">WMS</a>) if the ‘dosymbology’ parameter is ‘true’ then the value of the ‘SYMBOLCODE’ column is used to pick the symbol displayed for each point.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">symbol\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The id of the symbol being added. This is the same id that should be in the ‘SYMBOLCODE’ column for objects using this symbol.</p>
                    </div>

                    <div className="dt">symbol\_format (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Specifies the symbol format. Must be either ‘svg’ or ‘svg\_path’. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>svg</p>
                        </li>

                        <li>
                          <p>svg\_path</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">symbol\_data (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>The actual symbol data. If input parameter <span className="em">symbol\_format</span> is ‘svg’ then this should be the raw bytes representing an svg file. If input parameter <span className="em">symbol\_format</span> is svg path then this should be an svg path string; for example: ‘M25.979,12.896,5.979,12.896,5.979,19.562,25.979,19.562z’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>color</strong> – If input parameter <span className="em">symbol\_format</span> is ‘svg’ this is ignored. If input parameter <span className="em">symbol\_format</span> is ‘svg\_path’ then this option specifies the color (in RRGGBB hex format) of the path. For example, to have the path rendered in red, used ‘FF0000’. If ‘color’ is not provided then ‘00FF00’ (i.e. green) is used by default.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">symbol\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">symbol\_id</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.kill_proc"> <span className="sig-name descname"><span className="pre">kill\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">run\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Kills a running proc instance.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">run\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The run ID of a running proc instance. If a proc with a matching run ID is not found or the proc instance has already completed, no procs will be killed. If not specified, all running proc instances will be killed. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>run\_tag</strong> – If input parameter <span className="em">run\_id</span> is specified, kill the proc instance that has a matching run ID and a matching run tag that was provided to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a>. If input parameter <span className="em">run\_id</span> is not specified, kill the proc instance(s) where a matching run tag was provided to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>clear\_execute\_at\_startup</strong> – If <span className="em">true</span>, kill and remove the instance of the proc matching the auto-start run ID that was created to run when the database is started. The auto-start run ID was returned from <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a> and can be retrieved using <a className="reference internal" href="#gpudb.GPUdb.show_proc" title="gpudb.GPUdb.show_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_proc()</span></code></a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">run\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of run IDs of proc instances that were killed.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.lock_table"> <span className="sig-name descname"><span className="pre">lock\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">lock\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'status'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Manages global access to a table’s data. By default a table has a input parameter <span className="em">lock\_type</span> of <span className="em">read\_write</span>, indicating all operations are permitted. A user may request a <span className="em">read\_only</span> or a <span className="em">write\_only</span> lock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. When input parameter <span className="em">lock\_type</span> is <span className="em">no\_access</span> then no operations are permitted on the table. The lock status can be queried by setting input parameter <span className="em">lock\_type</span> to <span className="em">status</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to be locked, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. It must be a currently existing table or view.</p>
                    </div>

                    <div className="dt">lock\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The type of lock being applied to the table. Setting it to <span className="em">status</span> will return the current lock status of the table without changing it. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>status</strong> – Show locked status.</p>
                        </li>

                        <li>
                          <p><strong>no\_access</strong> – Allow no read/write operations.</p>
                        </li>

                        <li>
                          <p><strong>read\_only</strong> – Allow only read operations.</p>
                        </li>

                        <li>
                          <p><strong>write\_only</strong> – Allow only write operations.</p>
                        </li>

                        <li>
                          <p><strong>read\_write</strong> – Allow all read/write operations.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘status’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">lock\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Returns the lock state of the table.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.match_graph"> <span className="sig-name descname"><span className="pre">match\_graph</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">sample\_points</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">solve\_method</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'markov\_chain'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">solution\_table</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Matches a directed route implied by a given set of latitude/longitude points to an existing underlying road network graph using a given solution type.</p>
              <p>IMPORTANT: It’s highly recommended that you review the <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graphs and Solvers</a> concepts documentation, the <a className="reference external" href="/content/guides/graph_rest_guide/">Graph REST Tutorial</a>, and/or some <a className="reference external" href="/content/guides/tags/graph-match">/match/graph examples</a> before using this endpoint.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the underlying geospatial graph resource to match to using input parameter <span className="em">sample\_points</span>.</p>
                    </div>

                    <div className="dt">sample\_points (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Sample points used to match to an underlying geospatial graph. Sample points must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#match-identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#match-combinations">combinations</a>. Identifiers can be used with: existing column names, e.g., ‘table.column AS SAMPLE\_X’; expressions, e.g., ‘ST\_MAKEPOINT(table.x, table.y) AS SAMPLE\_WKTPOINT’; or constant values, e.g., ‘{"{"}1, 2, 10{"}"} AS SAMPLE\_TRIPID’. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">solve\_method (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The type of solver to use for graph matching. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>markov\_chain</strong> – Matches input parameter <span className="em">sample\_points</span> to the graph using the Hidden Markov Model (HMM)-based method, which conducts a range-tree closest-edge search to find the best combinations of possible road segments (<span className="em">num\_segments</span>) for each sample point to create the best route. The route is secured one point at a time while looking ahead <span className="em">chain\_width</span> number of points, so the prediction is corrected after each point. This solution type is the most accurate but also the most computationally intensive. Related options: <span className="em">num\_segments</span> and <span className="em">chain\_width</span>.</p>
                        </li>

                        <li>
                          <p><strong>match\_od\_pairs</strong> – Matches input parameter <span className="em">sample\_points</span> to find the most probable path between origin and destination pairs with cost constraints.</p>
                        </li>

                        <li>
                          <p><strong>match\_supply\_demand</strong> – Matches input parameter <span className="em">sample\_points</span> to optimize scheduling multiple supplies (trucks) with varying sizes to varying demand sites with varying capacities per depot. Related options: <span className="em">partial\_loading</span> and <span className="em">max\_combinations</span>.</p>
                        </li>

                        <li>
                          <p><strong>match\_batch\_solves</strong> – Matches input parameter <span className="em">sample\_points</span> source and destination pairs for the shortest path solves in batch mode.</p>
                        </li>

                        <li>
                          <p><strong>match\_loops</strong> – Matches closed loops (Eulerian paths) originating and ending at each graph node within min and max hops (levels).</p>
                        </li>

                        <li>
                          <p><strong>match\_charging\_stations</strong> – Matches an optimal path across a number of ev-charging stations between source and target locations.</p>
                        </li>

                        <li>
                          <p><strong>match\_similarity</strong> – Matches the intersection set(s) by computing the Jaccard similarity score between node pairs.</p>
                        </li>

                        <li>
                          <p><strong>match\_pickup\_dropoff</strong> – Matches the pickups and dropoffs by optimizing the total trip costs.</p>
                        </li>

                        <li>
                          <p><strong>match\_clusters</strong> – Matches the graph nodes with a cluster index using Louvain clustering algorithm.</p>
                        </li>

                        <li>
                          <p><strong>match\_pattern</strong> – Matches a pattern in the graph.</p>
                        </li>

                        <li>
                          <p><strong>match\_embedding</strong> – Creates vector node embeddings.</p>
                        </li>

                        <li>
                          <p><strong>match\_isochrone</strong> – Solves for isochrones for a set of input sources.</p>
                        </li>

                        <li>
                          <p><strong>match\_route\_detour</strong> – Computes detour costs for nearby stations at a mark point along each source-target route.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘markov\_chain’.</p>
                    </div>

                    <div className="dt">solution\_table (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The name of the table used to store the results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. This table contains a <a className="reference external" href="/content/location_intelligence/geo_objects/#geospatial-tracks">track</a> of geospatial points for the matched portion of the graph, a track ID, and a score value. Also outputs a details table containing a trip ID (that matches the track ID), the latitude/longitude pair, the timestamp the point was recorded at, and an edge ID corresponding to the matched road segment. Must not be an existing table of the same name. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>gps\_noise</strong> – GPS noise value (in meters) to remove redundant sample points. Use -1 to disable noise reduction. The default value accounts for 95% of point variation (+ or -5 meters). The default value is ‘5.0’.</p>
                        </li>

                        <li>
                          <p><strong>num\_segments</strong> – Maximum number of potentially matching road segments for each sample point. For the <span className="em">markov\_chain</span> solver, the default is 3. The default value is ‘3’.</p>
                        </li>

                        <li>
                          <p><strong>search\_radius</strong> – Maximum search radius used when snapping sample points onto potentially matching surrounding segments. The default value corresponds to approximately 100 meters. The default value is ‘0.001’.</p>
                        </li>

                        <li>
                          <p><strong>chain\_width</strong> – For the <span className="em">markov\_chain</span> solver only. Length of the sample points lookahead window within the Markov kernel; the larger the number, the more accurate the solution. The default value is ‘9’.</p>
                        </li>

                        <li>
                          <p><strong>source</strong> – WKT starting point from input parameter <span className="em">sample\_points</span> for the solver. The default behavior for the endpoint is to use time to determine the starting point. The default value is ‘POINT NULL’.</p>
                        </li>

                        <li>
                          <p><strong>destination</strong> – WKT ending point from input parameter <span className="em">sample\_points</span> for the solver. The default behavior for the endpoint is to use time to determine the destination point. The default value is ‘POINT NULL’.</p>
                        </li>

                        <li>
                          <p><strong>partial\_loading</strong> – For the <span className="em">match\_supply\_demand</span> solver only. When false (non-default), trucks do not off-load at the demand (store) side if the remainder is less than the store’s need. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Partial off-loading at multiple store (demand) locations.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – No partial off-loading allowed if supply is less than the store’s demand.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>max\_combinations</strong> – For the <span className="em">match\_supply\_demand</span> solver only. This is the cutoff for the number of generated combinations for sequencing the demand locations - can increase this up to 2M. The default value is ‘10000’.</p>
                        </li>

                        <li>
                          <p><strong>max\_supply\_combinations</strong> – For the <span className="em">match\_supply\_demand</span> solver only. This is the cutoff for the number of generated combinations for sequencing the supply locations if/when ‘permute\_supplies’ is true. The default value is ‘10000’.</p>
                        </li>

                        <li>
                          <p><strong>left\_turn\_penalty</strong> – This will add an additional weight over the edges labeled as ‘left turn’ if the ‘add\_turn’ option parameter of the <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> was invoked at graph creation. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>right\_turn\_penalty</strong> – This will add an additional weight over the edges labeled as’ right turn’ if the ‘add\_turn’ option parameter of the <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> was invoked at graph creation. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>intersection\_penalty</strong> – This will add an additional weight over the edges labeled as ‘intersection’ if the ‘add\_turn’ option parameter of the <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> was invoked at graph creation. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>sharp\_turn\_penalty</strong> – This will add an additional weight over the edges labeled as ‘sharp turn’ or ‘u-turn’ if the ‘add\_turn’ option parameter of the <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> was invoked at graph creation. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>aggregated\_output</strong> – For the <span className="em">match\_supply\_demand</span> solver only. When it is true (default), each record in the output table shows a particular truck’s scheduled cumulative round trip path (MULTILINESTRING) and the corresponding aggregated cost. Otherwise, each record shows a single scheduled truck route (LINESTRING) towards a particular demand location (store id) with its corresponding cost. The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>output\_tracks</strong> – For the <span className="em">match\_supply\_demand</span> solver only. When it is true (non-default), the output will be in tracks format for all the round trips of each truck in which the timestamps are populated directly from the edge weights starting from their originating depots. The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>max\_trip\_cost</strong> – For the <span className="em">match\_supply\_demand</span> and <span className="em">match\_pickup\_dropoff</span> solvers only. If this constraint is greater than zero (default) then the trucks/rides will skip traveling from one demand/pick location to another if the cost between them is greater than this number (distance or time). Zero (default) value means no check is performed. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>filter\_folding\_paths</strong> – For the <span className="em">markov\_chain</span> solver only. When true (non-default), the paths per sequence combination is checked for folding over patterns and can significantly increase the execution time depending on the chain width and the number of GPS samples. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Filter out the folded paths.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Do not filter out the folded paths.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>unit\_unloading\_cost</strong> – For the <span className="em">match\_supply\_demand</span> solver only. The unit cost per load amount to be delivered. If this value is greater than zero (default) then the additional cost of this unit load multiplied by the total dropped load will be added over to the trip cost to the demand location. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>max\_num\_threads</strong> – For the <span className="em">markov\_chain</span> solver only. If specified (greater than zero), the maximum number of threads will not be greater than the specified value. It can be lower due to the memory and the number cores available. Default value of zero allows the algorithm to set the maximal number of threads within these constraints. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>service\_limit</strong> – For the <span className="em">match\_supply\_demand</span> solver only. If specified (greater than zero), any supply actor’s total service cost (distance or time) will be limited by the specified value including multiple rounds (if set). The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_reuse</strong> – For the <span className="em">match\_supply\_demand</span> solver only. If specified (true), all supply actors can be scheduled for second rounds from their originating depots. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Allows reusing supply actors (trucks, e.g.) for scheduling again.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Supply actors are scheduled only once from their depots.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>max\_stops</strong> – For the <span className="em">match\_supply\_demand</span> solver only. If specified (greater than zero), a supply actor (truck) can at most have this many stops (demand locations) in one round trip. Otherwise, it is unlimited. If ‘enable\_truck\_reuse’ is on, this condition will be applied separately at each round trip use of the same truck. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>service\_radius</strong> – For the <span className="em">match\_supply\_demand</span> and <span className="em">match\_pickup\_dropoff</span> solvers only. If specified (greater than zero), it filters the demands/picks outside this radius centered around the supply actor/ride’s originating location (distance or time). The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>permute\_supplies</strong> – For the <span className="em">match\_supply\_demand</span> solver only. If specified (true), supply side actors are permuted for the demand combinations during MSDO optimization - note that this option increases optimization time significantly - use of ‘max\_combinations’ option is recommended to prevent prohibitively long runs. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Generates sequences over supply side permutations if total supply is less than twice the total demand.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Permutations are not performed, rather a specific order of supplies based on capacity is computed.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>batch\_tsm\_mode</strong> – For the <span className="em">match\_supply\_demand</span> solver only. When enabled, it sets the number of visits on each demand location by a single salesman at each trip is considered to be (one) 1, otherwise there is no bound. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Sets only one visit per demand location by a salesman (TSM mode).</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – No preset limit (usual MSDO mode).</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>round\_trip</strong> – For the <span className="em">match\_supply\_demand</span> solver only. When enabled, the supply will have to return back to the origination location. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – The optimization is done for trips in round trip manner always returning to originating locations.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Supplies do not have to come back to their originating locations in their routes. The routes are considered finished at the final dropoff.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>num\_cycles</strong> – For the <span className="em">match\_clusters</span> solver only. Terminates the cluster exchange iterations across 2-step-cycles (outer loop) when quality does not improve during iterations. The default value is ‘10’.</p>
                        </li>

                        <li>
                          <p><strong>num\_loops\_per\_cycle</strong> – For the <span className="em">match\_clusters</span> and <span className="em">match\_embedding</span> solvers only. Terminates the cluster exchanges within the first step iterations of a cycle (inner loop) unless convergence is reached. The default value is ‘10’.</p>
                        </li>

                        <li>
                          <p><strong>num\_output\_clusters</strong> – For the <span className="em">match\_clusters</span> solver only. Limits the output to the top ‘num\_output\_clusters’ clusters based on density. Default value of zero outputs all clusters. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>max\_num\_clusters</strong> – For the <span className="em">match\_clusters</span> and <span className="em">match\_embedding</span> solvers only. If set (value greater than zero), it terminates when the number of clusters goes below than this number. For embedding solver the default is 8. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>cluster\_quality\_metric</strong> – For the <span className="em">match\_clusters</span> solver only. The quality metric for Louvain modularity optimization solver. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>girvan</strong> – Uses the Newman Girvan quality metric for cluster solver.</p>
                            </li>

                            <li>
                              <p><strong>spectral</strong> – Applies recursive spectral bisection (RSB) partitioning solver.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘girvan’.</p>
                        </li>

                        <li>
                          <p><strong>restricted\_type</strong> – For the <span className="em">match\_supply\_demand</span> solver only. Optimization is performed by restricting routes labeled by ‘MSDO\_ODDEVEN\_RESTRICTED’ only for this supply actor (truck) type. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>odd</strong> – Applies odd/even rule restrictions to odd tagged vehicles.</p>
                            </li>

                            <li>
                              <p><strong>even</strong> – Applies odd/even rule restrictions to even tagged vehicles.</p>
                            </li>

                            <li>
                              <p><strong>none</strong> – Does not apply odd/even rule restrictions to any vehicles.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>

                        <li>
                          <p><strong>server\_id</strong> – Indicates which graph server(s) to send the request to. Default is to send to the server, amongst those containing the corresponding graph, that has the most computational bandwidth. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>inverse\_solve</strong> – For the <span className="em">match\_batch\_solves</span> solver only. Solves source-destination pairs using inverse shortest path solver. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Solves using inverse shortest path solver.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Solves using direct shortest path solver.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>min\_loop\_level</strong> – For the <span className="em">match\_loops</span> solver only. Finds closed loops around each node deducible not less than this minimal hop (level) deep. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>max\_loop\_level</strong> – For the <span className="em">match\_loops</span> solver only. Finds closed loops around each node deducible not more than this maximal hop (level) deep. The default value is ‘5’.</p>
                        </li>

                        <li>
                          <p><strong>search\_limit</strong> – For the <span className="em">match\_loops</span> solver only. Searches within this limit of nodes per vertex to detect loops. The value zero means there is no limit. The default value is ‘10000’.</p>
                        </li>

                        <li>
                          <p><strong>output\_batch\_size</strong> – For the <span className="em">match\_loops</span> solver only. Uses this value as the batch size of the number of loops in flushing(inserting) to the output table. The default value is ‘1000’.</p>
                        </li>

                        <li>
                          <p><strong>multi\_step</strong> – For the <span className="em">match\_supply\_demand</span> solver only. Runs multiple supply demand solver repeatedly in a multi step cycle by switching supplies to demands until it reaches the main hub supply. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>charging\_capacity</strong> – For the <span className="em">match\_charging\_stations</span> solver only. This is the maximum ev-charging capacity of a vehicle (distance in meters or time in seconds depending on the unit of the graph weights). The default value is ‘300000.0’.</p>
                        </li>

                        <li>
                          <p><strong>charging\_candidates</strong> – For the <span className="em">match\_charging\_stations</span> solver only. Solver searches for this many number of stations closest around each base charging location found by capacity. The default value is ‘10’.</p>
                        </li>

                        <li>
                          <p><strong>charging\_penalty</strong> – For the <span className="em">match\_charging\_stations</span> solver only. This is the penalty for full charging. The default value is ‘30000.0’.</p>
                        </li>

                        <li>
                          <p><strong>detour\_mark\_cost</strong> – For the <span className="em">match\_route\_detour</span> solver only. Cost along the route at which to search for nearby stations If zero, it solves along the trip sliding the 3 SSSP cycle kernel by radius amount. The default value is ‘3600.0’.</p>
                        </li>

                        <li>
                          <p><strong>detour\_reentry\_factor</strong> – For the <span className="em">match\_route\_detour</span> solver only. Multiplier on detour\_mark\_cost to determine the reentry point on the route (default 1.2 means 20% further along). The default value is ‘1.2’.</p>
                        </li>

                        <li>
                          <p><strong>detour\_search\_radius</strong> – For the <span className="em">match\_route\_detour</span> solver only. Search radius around the mark point for finding nearby prospective stations (e.g. cafes, pit stops, EV charging stations). The default value is ‘600.0’.</p>
                        </li>

                        <li>
                          <p><strong>detour\_search\_limit</strong> – For the <span className="em">match\_route\_detour</span> solver only. Maximum number of nearby stations to consider within the search radius around the mark point. The default value is ‘10’.</p>
                        </li>

                        <li>
                          <p><strong>max\_hops</strong> – For the <span className="em">match\_similarity</span> and <span className="em">match\_embedding</span> solvers only. Searches within this maximum hops for source and target node pairs to compute the Jaccard scores. The default value is ‘3’.</p>
                        </li>

                        <li>
                          <p><strong>traversal\_node\_limit</strong> – For the <span className="em">match\_similarity</span> solver only. Limits the traversal depth if it reaches this many number of nodes. The default value is ‘1000’.</p>
                        </li>

                        <li>
                          <p><strong>paired\_similarity</strong> – For the <span className="em">match\_similarity</span> solver only. If true, it computes Jaccard score between each pair, otherwise it will compute Jaccard from the intersection set between the source and target nodes. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>force\_undirected</strong> – For the <span className="em">match\_pattern</span> and <span className="em">match\_embedding</span> solvers only. Pattern matching will be using both pattern and graph as undirected if set to true. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>max\_vector\_dimension</strong> – For the <span className="em">match\_embedding</span> solver only. Limits the number of dimensions in node vector embeddings. The default value is ‘1000’.</p>
                        </li>

                        <li>
                          <p><strong>optimize\_embedding\_weights</strong> – For the <span className="em">match\_embedding</span> solvers only. Solves to find the optimal weights per sub feature in vector embeddings. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>embedding\_weights</strong> – For the <span className="em">match\_embedding</span> solver only. User specified weights per sub feature in vector embeddings. The string contains the comma separated float values for each sub-feature in the vector space. These values will ONLY be used if ‘optimize\_embedding\_weights’ is false. The default value is ‘1.0,1.0,1.0,1.0’.</p>
                        </li>

                        <li>
                          <p><strong>optimization\_sampling\_size</strong> – For the <span className="em">match\_embedding</span> solver only. Sets the number of random nodes from the graph for solving the weights using stochastic gradient descent. The default value is ‘1000’.</p>
                        </li>

                        <li>
                          <p><strong>optimization\_max\_iterations</strong> – For the <span className="em">match\_embedding</span> solver only. When the iterations (epochs) for the convergence of the stochastic gradient descent algorithm reaches this number it bails out unless relative error between consecutive iterations is below the ‘optimization\_error\_tolerance’ option. The default value is ‘1000’.</p>
                        </li>

                        <li>
                          <p><strong>optimization\_error\_tolerance</strong> – For the <span className="em">match\_embedding</span> solver only. When the relative error between all of the weights’ consecutive iterations falls below this threshold the optimization cycle is interrupted unless the number of iterations reaches the limit set by the option ‘max\_optimization\_iterations’. The default value is ‘0.001’.</p>
                        </li>

                        <li>
                          <p><strong>optimization\_iteration\_rate</strong> – For the <span className="em">match\_embedding</span> solver only. It is otherwise known as the learning rate, which is the proportionality constant in front of the gradient term in successive iterations. The default value is ‘0.3’.</p>
                        </li>

                        <li>
                          <p><strong>max\_radius</strong> – For the <span className="em">match\_isochrone</span> solver only. Sets the maximal reachability limit for computing isochrones. Zero means no limit. The default value is ‘0.0’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a successful solution.</p>
                    </div>

                    <div className="dt">match\_score (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>The mean square error calculation representing the map matching score. Values closer to zero are better.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.modify_graph"> <span className="sig-name descname"><span className="pre">modify\_graph</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">nodes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">edges</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">weights</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">restrictions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Update an existing graph network using given nodes, edges, weights, restrictions, and options.</p>
              <p>IMPORTANT: It’s highly recommended that you review the <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graphs and Solvers</a> concepts documentation, and <a className="reference external" href="/content/guides/graph_rest_guide/">Graph REST Tutorial</a> before using this endpoint.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph resource to modify.</p>
                    </div>

                    <div className="dt">nodes (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Nodes with which to update existing input parameter <span className="em">nodes</span> in graph specified by input parameter <span className="em">graph\_name</span>. Review <a className="reference external" href="/content/graph_solver/network_graph_solver/#nodes">Nodes</a> for more information. Nodes must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS NODE\_ID’, expressions, e.g., ‘ST\_MAKEPOINT(column1, column2) AS NODE\_WKTPOINT’, or raw values, e.g., ‘{"{"}9, 10, 11{"}"} AS NODE\_ID’. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">edges (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Edges with which to update existing input parameter <span className="em">edges</span> in graph specified by input parameter <span className="em">graph\_name</span>. Review <a className="reference external" href="/content/graph_solver/network_graph_solver/#edges">Edges</a> for more information. Edges must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS EDGE\_ID’, expressions, e.g., ‘SUBSTR(column, 1, 6) AS EDGE\_NODE1\_NAME’, or raw values, e.g., “{"{"}‘family’, ‘coworker’{"}"} AS EDGE\_LABEL”. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">weights (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Weights with which to update existing input parameter <span className="em">weights</span> in graph specified by input parameter <span className="em">graph\_name</span>. Review <a className="reference external" href="/content/graph_solver/network_graph_solver/#graph-weights">Weights</a> for more information. Weights must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS WEIGHTS\_EDGE\_ID’, expressions, e.g., ‘ST\_LENGTH(wkt) AS WEIGHTS\_VALUESPECIFIED’, or raw values, e.g., ‘{"{"}4, 15{"}"} AS WEIGHTS\_VALUESPECIFIED’. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">restrictions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Restrictions with which to update existing input parameter <span className="em">restrictions</span> in graph specified by input parameter <span className="em">graph\_name</span>. Review <a className="reference external" href="/content/graph_solver/network_graph_solver/#graph-restrictions">Restrictions</a> for more information. Restrictions must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS RESTRICTIONS\_EDGE\_ID’, expressions, e.g., ‘column/2 AS RESTRICTIONS\_VALUECOMPARED’, or raw values, e.g., ‘{"{"}0, 0, 0, 1{"}"} AS RESTRICTIONS\_ONOFFCOMPARED’. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>restriction\_threshold\_value</strong> – Value-based restriction comparison. Any node or edge with a RESTRICTIONS\_VALUECOMPARED value greater than the <span className="em">restriction\_threshold\_value</span> will not be included in the graph.</p>
                        </li>

                        <li>
                          <p><strong>export\_create\_results</strong> – If set to <span className="em">true</span>, returns the graph topology in the response as arrays. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_graph\_draw</strong> – If set to <span className="em">true</span>, adds a ‘EDGE\_WKTLINE’ column identifier to the specified <span className="em">graph\_table</span> so the graph can be viewed via WMS; for social and non-geospatial graphs, the ‘EDGE\_WKTLINE’ column identifier will be populated with spatial coordinates derived from a flattening layout algorithm so the graph can still be viewed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>save\_persist</strong> – If set to <span className="em">true</span>, the graph will be saved in the persist directory (see the <a className="reference external" href="/content/config/">config reference</a> for more information). If set to <span className="em">false</span>, the graph will be removed when the graph server is shutdown. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>add\_table\_monitor</strong> – Adds a table monitor to every table used in the creation of the graph; this table monitor will trigger the graph to update dynamically upon inserts to the source table(s). Note that upon database restart, if <span className="em">save\_persist</span> is also set to <span className="em">true</span>, the graph will be fully reconstructed and the table monitors will be reattached. For more details on table monitors, see <a className="reference internal" href="#gpudb.GPUdb.create_table_monitor" title="gpudb.GPUdb.create_table_monitor"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table\_monitor()</span></code></a>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>graph\_table</strong> – If specified, the created graph is also created as a table with the given name, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. This table will have the following identifier columns: ‘EDGE\_ID’, ‘EDGE\_NODE1\_ID’, ‘EDGE\_NODE2\_ID’. If left blank, no table is created. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>remove\_label\_only</strong> – When RESTRICTIONS on labeled entities requested, if set to true this will NOT delete the entity but only the label associated with the entity. Otherwise (default), it’ll delete the label AND the entity. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>add\_turns</strong> – Adds dummy ‘pillowed’ edges around intersection nodes where there are more than three edges so that additional weight penalties can be imposed by the solve endpoints. (increases the total number of edges). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>turn\_angle</strong> – Value in degrees modifies the thresholds for attributing right, left, sharp turns, and intersections. It is the vertical deviation angle from the incoming edge to the intersection node. The larger the value, the larger the threshold for sharp turns and intersections; the smaller the value, the larger the threshold for right and left turns; 0 \< turn\_angle \< 90. The default value is ‘60’.</p>
                        </li>

                        <li>
                          <p><strong>use\_rtree</strong> – Use an range tree structure to accelerate and improve the accuracy of snapping, especially to edges. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>label\_delimiter</strong> – If provided the label string will be split according to this delimiter and each sub-string will be applied as a separate label onto the specified edge. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>allow\_multiple\_edges</strong> – Multigraph choice; allowing multiple edges with the same node pairs if set to true, otherwise, new edges with existing same node pairs will not be inserted. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>embedding\_table</strong> – If table exists (should be generated by the match/graph match\_embedding solver), the vector embeddings for the newly inserted nodes will be appended into this table. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a successful modification on all servers.</p>
                    </div>

                    <div className="dt">num\_nodes (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of nodes in the graph.</p>
                    </div>

                    <div className="dt">num\_edges (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of edges in the graph.</p>
                    </div>

                    <div className="dt">edges\_ids (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Edges given as pairs of node indices. Only populated if <span className="em">export\_create\_results</span> is set to <span className="em">true</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.query_graph"> <span className="sig-name descname"><span className="pre">query\_graph</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">queries</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">restrictions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">adjacency\_table</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">rings</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">1</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Employs a topological query on a graph generated a-priori by <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> and returns a list of adjacent edge(s) or node(s), also known as an adjacency list, depending on what’s been provided to the endpoint; providing edges will return nodes and providing nodes will return edges.</p>
              <p>To determine the node(s) or edge(s) adjacent to a value from a given column, provide a list of values to input parameter <span className="em">queries</span>. This field can be populated with column values from any table as long as the type is supported by the given identifier. See <a className="reference external" href="/content/graph_solver/network_graph_solver/#query-identifiers">Query Identifiers</a> for more information.</p>
              <p>To return the adjacency list in the response, leave input parameter <span className="em">adjacency\_table</span> empty.</p>
              <p>IMPORTANT: It’s highly recommended that you review the <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graphs and Solvers</a> concepts documentation, the <a className="reference external" href="/content/guides/graph_rest_guide/">Graph REST Tutorial</a>, and/or some <a className="reference external" href="/content/guides/tags/graph-query">/match/graph examples</a> before using this endpoint.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph resource to query.</p>
                    </div>

                    <div className="dt">queries (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Nodes or edges to be queried specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#query-identifiers">query identifiers</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS QUERY\_NODE\_ID’, raw values, e.g., ‘{"{"}0, 2{"}"} AS QUERY\_NODE\_ID’, or expressions, e.g., ‘ST\_MAKEPOINT(table.x, table.y) AS QUERY\_NODE\_WKTPOINT’. Multiple values can be provided as long as the same identifier is used for all values. If using raw values in an identifier combination, the number of values specified must match across the combination. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">restrictions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Additional restrictions to apply to the nodes/edges of an existing graph. Restrictions must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS RESTRICTIONS\_EDGE\_ID’, expressions, e.g., ‘column/2 AS RESTRICTIONS\_VALUECOMPARED’, or raw values, e.g., ‘{"{"}0, 0, 0, 1{"}"} AS RESTRICTIONS\_ONOFFCOMPARED’. If using raw values in an identifier combination, the number of values specified must match across the combination. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">adjacency\_table (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to store the resulting adjacencies, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. If left blank, the query results are instead returned in the response. If the ‘QUERY\_TARGET\_NODE\_LABEL’ <a className="reference external" href="/content/graph_solver/network_graph_solver/#query-identifiers">query identifier</a> is used in input parameter <span className="em">queries</span>, then two additional columns will be available: ‘PATH\_ID’ and ‘RING\_ID’. See <a className="reference external" href="/content/graph_solver/network_graph_solver/#using-labels">Using Labels</a> for more information. The default value is ‘’.</p>
                    </div>

                    <div className="dt">rings (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Sets the number of rings around the node to query for adjacency, with ‘1’ being the edges directly attached to the queried node. Also known as number of hops. For example, if it is set to ‘2’, the edge(s) directly attached to the queried node(s) will be returned; in addition, the edge(s) attached to the node(s) attached to the initial ring of edge(s) surrounding the queried node(s) will be returned. If the value is set to ‘0’, any nodes that meet the criteria in input parameter <span className="em">queries</span> and input parameter <span className="em">restrictions</span> will be returned. This parameter is only applicable when querying nodes. The default value is 1.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>force\_undirected</strong> – If set to <span className="em">true</span>, all inbound edges and outbound edges relative to the node will be returned. If set to <span className="em">false</span>, only outbound edges relative to the node will be returned. This parameter is only applicable if the queried graph input parameter <span className="em">graph\_name</span> is directed and when querying nodes. Consult <a className="reference external" href="/content/graph_solver/network_graph_solver/#directed-graphs">Directed Graphs</a> for more details. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>limit</strong> – When specified (>0), limits the number of query results. The size of the nodes table will be limited by the <span className="em">limit</span> value. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>output\_wkt\_path</strong> – If true then concatenated wkt line segments will be added as the WKT column of the adjacency table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>and\_labels</strong> – If set to <span className="em">true</span>, the result of the query has entities that satisfy all of the target labels, instead of any. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>server\_id</strong> – Indicates which graph server(s) to send the request to. Default is to send to the server, amongst those containing the corresponding graph, that has the most computational bandwidth.</p>
                        </li>

                        <li>
                          <p><strong>output\_charn\_length</strong> – When specified (>0 and \<=256), limits the number of char length on the output tables for string based nodes. The default length is 64. The default value is ‘64’.</p>
                        </li>

                        <li>
                          <p><strong>find\_common\_labels</strong> – If set to true, for many-to-many queries or multi-level traversals, it lists the common labels between the source and target nodes and edge labels in each path. Otherwise (zero rings), it’ll list all labels of the node(s) queried. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a successful query.</p>
                    </div>

                    <div className="dt">adjacency\_list\_int\_array (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The adjacency entity integer ID: either edge IDs per node requested (if using QUERY\_EDGE\_ID or QUERY\_NODE1\_ID and QUERY\_NODE2\_ID in the input) or two node IDs per edge requested (if using QUERY\_NODE\_ID in the input).</p>
                    </div>

                    <div className="dt">adjacency\_list\_string\_array (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The adjacency entity string ID: either edge IDs per node requested (if using QUERY\_EDGE\_NAME or QUERY\_NODE1\_NAME and QUERY\_NODE2\_NAME in the input) or two node IDs per edge requested (if using QUERY\_NODE\_NAME in the input).</p>
                    </div>

                    <div className="dt">adjacency\_list\_wkt\_array (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The adjacency entity WKTPOINT or WKTLINE ID: either edge IDs per node requested (if using QUERY\_EDGE\_WKTLINE or QUERY\_NODE1\_WKTPOINT and QUERY\_NODE2\_WKTPOINT in the input) or two node IDs per edge requested (if using QUERY\_NODE\_WKTPOINT in the input).</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.repartition_graph"> <span className="sig-name descname"><span className="pre">repartition\_graph</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Rebalances an existing partitioned graph.</p>
              <p>IMPORTANT: It’s highly recommended that you review the <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graphs and Solvers</a> concepts documentation, the <a className="reference external" href="/content/guides/graph_rest_guide/">Graph REST Tutorial</a>, and/or some <a className="reference external" href="/content/guides/tags/graph">graph examples</a> before using this endpoint.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph resource to rebalance.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>new\_graph\_name</strong> – If a non-empty value is specified, the original graph will be kept (non-default behavior) and a new balanced graph will be created under this given name. When the value is empty (default), the generated ‘balanced’ graph will replace the original ‘unbalanced’ graph under the same graph name. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>source\_node</strong> – The distributed shortest path solve is run from this source node to all the nodes in the graph to create balanced partitions using the iso-distance levels of the solution. The source node is selected by the rebalance algorithm automatically (default case when the value is an empty string). Otherwise, the user specified node is used as the source. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a successful rebalancing on all servers.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.restore_backup"> <span className="sig-name descname"><span className="pre">restore\_backup</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">backup\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">restore\_objects\_map</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasource\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Restores database objects from a <a className="reference external" href="/content/admin/backup_restore/#database-backup">backup</a> accessible via the <a className="reference external" href="/content/concepts/data_sources/">data source</a> specified by input parameter <span className="em">datasource\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the backup to restore from, which must refer to an existing backup. The default value is ‘’.</p>
                    </div>

                    <div className="dt">restore\_objects\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of database objects to be restored from the backup. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>all</strong> – All object types and data contained in the given <a className="reference external" href="/content/concepts/schemas/">schema(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>context</strong> – <a className="reference external" href="/content/sql-gpt/concepts/#sql-gpt-context">Context(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – <a className="reference external" href="/content/concepts/credentials/">Credential(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>datasink</strong> – <a className="reference external" href="/content/concepts/data_sinks/">Data sink(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>datasource</strong> – <a className="reference external" href="/content/concepts/data_sources/">Data source(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>function\_environment</strong> – <a className="reference external" href="/content/udf/python/writing/#udf-python-func-env">Python UDF function environment(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>graph</strong> – <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graph(s)</a> definition.</p>
                        </li>

                        <li>
                          <p><strong>monitor</strong> – <a className="reference external" href="/content/concepts/table_monitors/">Table monitor(s)</a> / <a className="reference external" href="/content/sql/ddl/#create-stream">SQL stream(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>resource\_group</strong> – <a className="reference external" href="/content/rm/concepts/#resource-groups">Resource group(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>role</strong> – <a className="reference external" href="/content/security/sec_concepts/#roles">Role(s)</a>, role members (roles or users, recursively), and associated permissions.</p>
                        </li>

                        <li>
                          <p><strong>stored\_procedure</strong> – <a className="reference external" href="/content/sql/procedure/">SQL procedure(s)</a>.</p>
                        </li>

                        <li>
                          <p><strong>table</strong> – <a className="reference external" href="/content/concepts/tables/">Table(s)</a> and <a className="reference external" href="/content/sql/ddl/#create-view">SQL view(s)</a>. Tables with subscriptions will by default be restored in the state they were in at the time of the snapshot. See <span className="em">restore\_subscriptions</span> for options to override the default behavior.</p>
                        </li>

                        <li>
                          <p><strong>user</strong> – <a className="reference external" href="/content/security/sec_concepts/#security-concepts-users">User(s)</a> (internal and external) and associated permissions.</p>
                        </li>

                        <li>
                          <p><strong>user\_defined\_function</strong> – <a className="reference external" href="/content/udf_overview">UDF(s)</a>.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">datasource\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Data source through which the backup will be restored.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>backup\_id</strong> – ID of the snapshot to restore. Leave empty to restore the most recent snapshot in the backup. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>checksum</strong> – Whether or not to verify checksums for backup files when restoring. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>create\_schema\_if\_not\_exist</strong> – Behavior to apply when the schema containing any database object to restore does not already exist. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – If the schema containing any restored object does not exist, create it automatically.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – If the schema containing any restored object does not exist, return an error.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>ddl\_only</strong> – Behavior to apply when restoring tables. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Restore table DDL, but do not restore data.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Restore tables and their data.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>dry\_run</strong> – Whether or not to perform a dry run of the restoration operation. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>restore\_subscriptions</strong> – Behavior to apply when restoring datasource subscriptions on tables. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>resume</strong> – Resume subscriptions that were active when the backup was made.</p>
                            </li>

                            <li>
                              <p><strong>pause</strong> – Pause subscriptions that were active when the backup was made.</p>
                            </li>

                            <li>
                              <p><strong>cancel</strong> – Cancel active subscriptions.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘resume’.</p>
                        </li>

                        <li>
                          <p><strong>reingest</strong> – Behavior to apply when restoring table data. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Restore table data by re-ingesting it. This is the default behavior if the cluster topology differs from that of the contained backup.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Restore the persisted data files directly.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>renamed\_objects\_schema</strong> – If the <span className="em">restore\_policy</span> is <span className="em">rename</span>, use this schema for relocated existing objects instead of the default generated one. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>restore\_policy</strong> – Behavior to apply when any database object to restore already exists. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – If an object to be restored already exists with the same name, abort and return error.</p>
                            </li>

                            <li>
                              <p><strong>replace</strong> – If an object to be restored already exists with the same name, replace it with the backup version.</p>
                            </li>

                            <li>
                              <p><strong>rename</strong> – If an object to be restored already exists with the same name, move that existing one to the schema specified by <span className="em">renamed\_objects\_schema</span>. This policy does not apply to non-schema objects.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">backup\_name</span>.</p>
                    </div>

                    <div className="dt">backup\_id (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>ID of the snapshot that was restored.</p>
                    </div>

                    <div className="dt">restored\_bytes (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total size of data restored from backup.</p>
                    </div>

                    <div className="dt">restored\_files (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of files restored from backup.</p>
                    </div>

                    <div className="dt">restored\_records (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records restored from backup.</p>
                    </div>

                    <div className="dt">restored\_objects (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Database objects that were successfully restored and their associated types.</p>
                    </div>

                    <div className="dt">renamed\_objects (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Original and new names of database objects that were successfully restored and their associated types.</p>
                    </div>

                    <div className="dt">failed\_objects (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Database objects that failed to be restored and their associated types.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.revoke_permission"> <span className="sig-name descname"><span className="pre">revoke\_permission</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">principal</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">object</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">object\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Revoke user or role the specified permission on the specified object.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">principal (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role for which the permission is being revoked. Must be an existing user or role. The default value is ‘’.</p>
                    </div>

                    <div className="dt">object (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of object permission is being revoked from. It is recommended to use a fully-qualified name when possible.</p>
                    </div>

                    <div className="dt">object\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The type of object being revoked. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>catalog</strong> – Catalog</p>
                        </li>

                        <li>
                          <p><strong>context</strong> – Context</p>
                        </li>

                        <li>
                          <p><strong>credential</strong> – Credential</p>
                        </li>

                        <li>
                          <p><strong>datasink</strong> – Data Sink</p>
                        </li>

                        <li>
                          <p><strong>datasource</strong> – Data Source</p>
                        </li>

                        <li>
                          <p><strong>directory</strong> – KIFS File Directory</p>
                        </li>

                        <li>
                          <p><strong>graph</strong> – A Graph object</p>
                        </li>

                        <li>
                          <p><strong>proc</strong> – UDF Procedure</p>
                        </li>

                        <li>
                          <p><strong>schema</strong> – Schema</p>
                        </li>

                        <li>
                          <p><strong>sql\_proc</strong> – SQL Procedure</p>
                        </li>

                        <li>
                          <p><strong>system</strong> – System-level access</p>
                        </li>

                        <li>
                          <p><strong>table</strong> – Database Table</p>
                        </li>

                        <li>
                          <p><strong>table\_monitor</strong> – Table monitor</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission being revoked. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>admin</strong> – Full read/write and administrative access on the object.</p>
                        </li>

                        <li>
                          <p><strong>connect</strong> – Connect access on the given data source or data sink.</p>
                        </li>

                        <li>
                          <p><strong>create</strong> – Ability to create new objects of this type.</p>
                        </li>

                        <li>
                          <p><strong>delete</strong> – Delete rows from tables.</p>
                        </li>

                        <li>
                          <p><strong>execute</strong> – Ability to Execute the Procedure object.</p>
                        </li>

                        <li>
                          <p><strong>insert</strong> – Insert access to tables.</p>
                        </li>

                        <li>
                          <p><strong>monitor</strong> – Monitor logs and statistics.</p>
                        </li>

                        <li>
                          <p><strong>read</strong> – Ability to read, list and use the object.</p>
                        </li>

                        <li>
                          <p><strong>send\_alert</strong> – Ability to send system alerts.</p>
                        </li>

                        <li>
                          <p><strong>update</strong> – Update access to the table.</p>
                        </li>

                        <li>
                          <p><strong>user\_admin</strong> – Access to administer users and roles that do not have system\_admin permission.</p>
                        </li>

                        <li>
                          <p><strong>write</strong> – Access to write, change and delete objects.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>columns</strong> – Revoke table security from these columns, comma-separated. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">principal (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">principal</span>.</p>
                    </div>

                    <div className="dt">object (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">object</span>.</p>
                    </div>

                    <div className="dt">object\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">object\_type</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.revoke_permission_credential"> <span className="sig-name descname"><span className="pre">revoke\_permission\_credential</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">credential\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Revokes a <a className="reference external" href="/content/security/sec_concepts/#security-concepts-permissions-credential">credential-level permission</a> from a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role from which the permission will be revoked. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to revoke from the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>credential\_admin</strong> – Full read/write and administrative access on the credential.</p>
                        </li>

                        <li>
                          <p><strong>credential\_read</strong> – Ability to read and use the credential.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the credential on which the permission will be revoked. Must be an existing credential, or an empty string to revoke access on all credentials.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">credential\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.revoke_permission_datasource"> <span className="sig-name descname"><span className="pre">revoke\_permission\_datasource</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasource\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Revokes a <a className="reference external" href="/content/concepts/data_sources/">data source</a> permission from a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role from which the permission will be revoked. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to revoke from the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>admin</strong> – Admin access on the given data source.</p>
                        </li>

                        <li>
                          <p><strong>connect</strong> – Connect access on the given data source.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">datasource\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data source on which the permission will be revoked. Must be an existing data source, or an empty string to revoke permission from all data sources.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">datasource\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">datasource\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.revoke_permission_directory"> <span className="sig-name descname"><span className="pre">revoke\_permission\_directory</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">directory\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Revokes a <a className="reference external" href="/content/tools/kifs/">KiFS</a> directory-level permission from a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role from which the permission will be revoked. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to revoke from the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>directory\_read</strong> – For files in the directory, access to list files, download files, or use files in server side functions.</p>
                        </li>

                        <li>
                          <p><strong>directory\_write</strong> – Access to upload files to, or delete files from, the directory. A user or role with write access automatically has read access.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the KiFS directory to which the permission revokes access.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">directory\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.revoke_permission_proc"> <span className="sig-name descname"><span className="pre">revoke\_permission\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">proc\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Revokes a proc-level permission from a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role from which the permission will be revoked. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to revoke from the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>proc\_admin</strong> – Admin access to the proc.</p>
                        </li>

                        <li>
                          <p><strong>proc\_execute</strong> – Execute access to the proc.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the proc to which the permission grants access. Must be an existing proc, or an empty string if the permission grants access to all procs.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">proc\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.revoke_permission_system"> <span className="sig-name descname"><span className="pre">revoke\_permission\_system</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Revokes a system-level permission from a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role from which the permission will be revoked. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to revoke from the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>system\_admin</strong> – Full access to all data and system functions.</p>
                        </li>

                        <li>
                          <p><strong>system\_user\_admin</strong> – Access to administer users and roles that do not have system\_admin permission.</p>
                        </li>

                        <li>
                          <p><strong>system\_write</strong> – Read and write access to all tables.</p>
                        </li>

                        <li>
                          <p><strong>system\_read</strong> – Read-only access to all tables.</p>
                        </li>

                        <li>
                          <p><strong>system\_send\_alert</strong> – Send system alerts.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.revoke_permission_table"> <span className="sig-name descname"><span className="pre">revoke\_permission\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">permission</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Revokes a table-level permission from a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role from which the permission will be revoked. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Permission to revoke from the user or role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>table\_admin</strong> – Full read/write and administrative access to the table.</p>
                        </li>

                        <li>
                          <p><strong>table\_insert</strong> – Insert access to the table.</p>
                        </li>

                        <li>
                          <p><strong>table\_update</strong> – Update access to the table.</p>
                        </li>

                        <li>
                          <p><strong>table\_delete</strong> – Delete access to the table.</p>
                        </li>

                        <li>
                          <p><strong>table\_read</strong> – Read access to the table.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to which the permission grants access, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be an existing table, view or schema.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>columns</strong> – Apply security to these columns, comma-separated. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">name</span>.</p>
                    </div>

                    <div className="dt">permission (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">permission</span>.</p>
                    </div>

                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.revoke_role"> <span className="sig-name descname"><span className="pre">revoke\_role</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">role</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">member</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Revokes membership in a role from a user or role.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">role (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the role in which membership will be revoked. Must be an existing role.</p>
                    </div>

                    <div className="dt">member (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the user or role that will be revoked membership in input parameter <span className="em">role</span>. Must be an existing user or role.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">role (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">role</span>.</p>
                    </div>

                    <div className="dt">member (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">member</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_backup"> <span className="sig-name descname"><span className="pre">show\_backup</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">backup\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasource\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about one or more <a className="reference external" href="/content/admin/backup_restore/#database-backup">backups</a> accessible via the <a className="reference external" href="/content/concepts/data_sources/">data source</a> specified by input parameter <span className="em">datasource\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the backup. An empty string or ‘\*’ will show all existing backups. Any text followed by a ‘\*’ will show backups whose name starts with that text. The default value is ‘’.</p>
                    </div>

                    <div className="dt">datasource\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Data source through which the backup is accessible.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>backup\_id</strong> – ID of the snapshot to show. Leave empty to show information from the most recent snapshot in the backup. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>backup\_type</strong> – Show backups by type. This option is ignored if <span className="em">backup\_id</span> is non-empty. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>all</strong> – Show all backup types.</p>
                            </li>

                            <li>
                              <p><strong>full</strong> – Show full backups only.</p>
                            </li>

                            <li>
                              <p><strong>incremental</strong> – Show incremental backups only.</p>
                            </li>

                            <li>
                              <p><strong>differential</strong> – Show differential backups only.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘all’.</p>
                        </li>

                        <li>
                          <p><strong>show\_contents</strong> – Show the contents of the backed-up snapshots. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – Don’t show snapshot contents.</p>
                            </li>

                            <li>
                              <p><strong>object\_names</strong> – Show backed-up object names, and for tables, sizing detail.</p>
                            </li>

                            <li>
                              <p><strong>object\_files</strong> – Show backed-up object names, and for tables, sizing detail and associated files.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – Whether or not to suppress the error if the specified backup does not exist. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">backup\_name</span>.</p>
                    </div>

                    <div className="dt">backup\_description (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Details about the overall backup(s).</p>
                    </div>

                    <div className="dt">backup\_ids (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Details about the individual snapshots contained within the backup(s).</p>
                    </div>

                    <div className="dt">backup\_contents (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>When <span className="em">show\_contents</span> is <span className="em">object\_names</span>, the names of the backed-up objects as well as sizing detail of any backed-up tables; when <span className="em">object\_files</span>, the names of the backed-up objects as well as sizing detail and associated data files of any backed-up tables.</p>
                    </div>

                    <div className="dt">deleted\_backup\_ids (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>IDs of any snapshots that have been deleted from the containing backup(s).</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_credential"> <span className="sig-name descname"><span className="pre">show\_credential</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">credential\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about a specified <a className="reference external" href="/content/concepts/credentials/">credential</a> or all credentials.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">credential\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the credential on which to retrieve information. The name must refer to a currently existing credential. If ‘\*’ is specified, information about all credentials will be returned.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">credential\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of all credential names.</p>
                    </div>

                    <div className="dt">credential\_types (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of each credential’s type.</p>
                    </div>

                    <div className="dt">credential\_identities (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of each credential’s identity.</p>
                    </div>

                    <div className="dt">credentials (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of each credential’s create\_credential\_request JSON encoded structure.</p>
                    </div>

                    <div className="dt">additional\_info (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information about the respective credential in output parameter <span className="em">credential\_names</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_datasink"> <span className="sig-name descname"><span className="pre">show\_datasink</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about a specified <a className="reference external" href="/content/concepts/data_sinks/">data sink</a> or all data sinks.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data sink for which to retrieve information. The name must refer to a currently existing data sink. If ‘\*’ is specified, information about all data sinks will be returned.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">datasink\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The data sink names.</p>
                    </div>

                    <div className="dt">destination\_types (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The destination type of the data sinks named in output parameter <span className="em">datasink\_names</span>.</p>
                    </div>

                    <div className="dt">additional\_info (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information about the respective data sinks in output parameter <span className="em">datasink\_names</span>. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>destination</strong> – Destination for the output data in ‘destination\_type://path\[:port]’ format.</p>
                        </li>

                        <li>
                          <p><strong>kafka\_topic\_name</strong> – Kafka topic if the data sink type is a Kafka broker.</p>
                        </li>

                        <li>
                          <p><strong>user\_name</strong> – Name of the remote system user.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_datasource"> <span className="sig-name descname"><span className="pre">show\_datasource</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about a specified <a className="reference external" href="/content/concepts/data_sources/">data source</a> or all data sources.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the data source for which to retrieve information. The name must refer to a currently existing data source. If ‘\*’ is specified, information about all data sources will be returned.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">datasource\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The data source names.</p>
                    </div>

                    <div className="dt">storage\_provider\_types (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The storage provider type of the data sources named in output parameter <span className="em">datasource\_names</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>hdfs</strong> – Apache Hadoop Distributed File System.</p>
                        </li>

                        <li>
                          <p><strong>s3</strong> – Amazon S3 bucket.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">additional\_info (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information about the respective data sources in output parameter <span className="em">datasource\_names</span>. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>location</strong> – Location of the remote storage in ‘storage\_provider\_type://\[storage\_path\[:storage\_port]]’ format.</p>
                        </li>

                        <li>
                          <p><strong>s3\_bucket\_name</strong> – Name of the Amazon S3 bucket used as the data source.</p>
                        </li>

                        <li>
                          <p><strong>s3\_region</strong> – Name of the Amazon S3 region where the bucket is located.</p>
                        </li>

                        <li>
                          <p><strong>hdfs\_kerberos\_keytab</strong> – Kerberos key for the given HDFS user.</p>
                        </li>

                        <li>
                          <p><strong>user\_name</strong> – Name of the remote system user.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_directories"> <span className="sig-name descname"><span className="pre">show\_directories</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">directory\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about directories in <a className="reference external" href="/content/tools/kifs/">KiFS</a>. Can be used to show a single directory, or all directories.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">directory\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The KiFS directory name to show. If empty, shows all directories. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">directories (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>KiFS directory names.</p>
                    </div>

                    <div className="dt">users (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>User that created each directory for the respective directories in output parameter <span className="em">directories</span>.</p>
                    </div>

                    <div className="dt">creation\_times (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The creation time for each directory in milliseconds since epoch, for the respective directories in output parameter <span className="em">directories</span>.</p>
                    </div>

                    <div className="dt">data\_usages (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The data usage each directory in bytes, for the respective directories in output parameter <span className="em">directories</span>.</p>
                    </div>

                    <div className="dt">data\_limits (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The data limit for each directory in bytes, for the respective directories in output parameter <span className="em">directories</span>.</p>
                    </div>

                    <div className="dt">permissions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Highest level of permission the calling user has for the respective directories in output parameter <span className="em">directories</span>. Will be empty if no permissions. If a user has been granted both read and write permissions, ‘directory\_write’ will be listed.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_environment"> <span className="sig-name descname"><span className="pre">show\_environment</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">environment\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about a specified <a className="reference external" href="/content/concepts/udf/">user-defined function</a> (UDF) environment or all environments. Returns detailed information about existing environments.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">environment\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the environment on which to retrieve information. The name must refer to a currently existing environment. If ‘\*’ or an empty value is specified, information about all environments will be returned. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span> and if the environment specified in input parameter <span className="em">environment\_name</span> does not exist, no error is returned. If <span className="em">false</span> and if the environment specified in input parameter <span className="em">environment\_name</span> does not exist, then an error is returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>show\_names\_only</strong> – If <span className="em">true</span> only return the names of the installed environments and omit package listing. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">environment\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of all environment names.</p>
                    </div>

                    <div className="dt">packages (<span className="em">list of lists of str</span>) –</div>

                    <div className="dd">
                      <p>Information about the installed packages in the respective environments in output parameter <span className="em">environment\_names</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_files"> <span className="sig-name descname"><span className="pre">show\_files</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">paths</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about files in <a className="reference external" href="/content/tools/kifs/">KiFS</a>. Can be used for individual files, or to show all files in a given directory.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">paths (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>File paths to show. Each path can be a KiFS directory name, or a full path to a KiFS file. File paths may contain wildcard characters after the KiFS directory delimiter.</p>
                      <p>Accepted wildcard characters are asterisk (\*) to represent any string of zero or more characters, and question mark (?) to indicate a single character. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">file\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A listing of files in the paths specified.</p>
                    </div>

                    <div className="dt">sizes (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Size of each file, in bytes.</p>
                    </div>

                    <div className="dt">users (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>User that created the file.</p>
                    </div>

                    <div className="dt">creation\_times (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Creation time for each file, in milliseconds since epoch.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>multipart\_uploads</strong> – JSON-encoded information about multipart uploads in progress.</p>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_graph"> <span className="sig-name descname"><span className="pre">show\_graph</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information and characteristics of graphs that exist on the graph server.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph on which to retrieve information. If left as the default value, information about all graphs is returned. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>show\_original\_request</strong> – If set to <span className="em">true</span>, the request that was originally used to create the graph is also returned as JSON. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>server\_id</strong> – Indicates which graph server(s) to send the request to. Default is to send to get information about all the servers.</p>
                        </li>

                        <li>
                          <p><strong>export\_graph\_schema</strong> – If true, generates the graph ontology (schema) as a DOT format string in the response info field under the key ‘dot’. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a success. This call will fail if the graph specified in the request does not exist.</p>
                    </div>

                    <div className="dt">load (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>A percentage approximating the current computational load on the server.</p>
                    </div>

                    <div className="dt">memory (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Available memory.</p>
                    </div>

                    <div className="dt">graph\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Name(s) of the graph(s).</p>
                    </div>

                    <div className="dt">graph\_server\_ids (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>Id(s) of the graph(s).</p>
                    </div>

                    <div className="dt">graph\_owner\_user\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Owner of the graph(s) and associated solution table(s).</p>
                    </div>

                    <div className="dt">graph\_owner\_resource\_groups (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Owner of the resource groups(s) of the graph(s).</p>
                    </div>

                    <div className="dt">directed (<span className="em">list of bools</span>) –</div>

                    <div className="dd">
                      <p>Whether or not the edges of the graph have directions (bi-directional edges can still exist in directed graphs). Consult <a className="reference external" href="/content/graph_solver/network_graph_solver/#directed-graphs">Directed Graphs</a> for more details.</p>
                    </div>

                    <div className="dt">num\_nodes (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Total number of nodes in the graph.</p>
                    </div>

                    <div className="dt">num\_edges (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Total number of edges in the graph.</p>
                    </div>

                    <div className="dt">num\_bytes (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Memory this graph uses in bytes.</p>
                    </div>

                    <div className="dt">resource\_capacity (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Memory this graph uses in bytes.</p>
                    </div>

                    <div className="dt">is\_persisted (<span className="em">list of bools</span>) –</div>

                    <div className="dd">
                      <p>Shows whether or not the graph is persisted (saved and loaded on launch).</p>
                    </div>

                    <div className="dt">is\_partitioned (<span className="em">list of bools</span>) –</div>

                    <div className="dd">
                      <p>Indicates if the graph data is distributed across all available servers.</p>
                    </div>

                    <div className="dt">is\_sync\_db (<span className="em">list of bools</span>) –</div>

                    <div className="dd">
                      <p>Shows whether or not the graph is linked to the original tables that created it, and will potentially be re-created instead loaded from persist on launch.</p>
                    </div>

                    <div className="dt">has\_insert\_table\_monitor (<span className="em">list of bools</span>) –</div>

                    <div className="dd">
                      <p>Shows whether or not the graph has an insert table monitor attached to it.</p>
                    </div>

                    <div className="dt">original\_request (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The original client request used to create the graph (before any expression evaluation or separator processing).</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_proc"> <span className="sig-name descname"><span className="pre">show\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">proc\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about a proc.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">proc\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the proc to show information about. If specified, must be the name of a currently existing proc. If not specified, information about all procs will be returned. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>include\_files</strong> – If set to <span className="em">true</span>, the files that make up the proc will be returned. If set to <span className="em">false</span>, the files will not be returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">proc\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The proc names.</p>
                    </div>

                    <div className="dt">execution\_modes (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The execution modes of the procs named in output parameter <span className="em">proc\_names</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>distributed</strong> – Distributed</p>
                        </li>

                        <li>
                          <p><strong>nondistributed</strong> – Nondistributed</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">files (<span className="em">list of dicts of str to bytes</span>) –</div>

                    <div className="dd">
                      <p>Maps of the files that make up the procs named in output parameter <span className="em">proc\_names</span>.</p>
                    </div>

                    <div className="dt">commands (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The commands (excluding arguments) that will be invoked when the procs named in output parameter <span className="em">proc\_names</span> are executed.</p>
                    </div>

                    <div className="dt">args (<span className="em">list of lists of str</span>) –</div>

                    <div className="dd">
                      <p>Arrays of command-line arguments that will be passed to the procs named in output parameter <span className="em">proc\_names</span> when executed.</p>
                    </div>

                    <div className="dt">options (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>The optional parameters for the procs named in output parameter <span className="em">proc\_names</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_proc_status"> <span className="sig-name descname"><span className="pre">show\_proc\_status</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">run\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows the statuses of running or completed proc instances. Results are grouped by run ID (as returned from <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a>) and data segment ID (each invocation of the proc command on a data segment is assigned a data segment ID).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">run\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The run ID of a specific proc instance for which the status will be returned. If a proc with a matching run ID is not found, the response will be empty. If not specified, the statuses of all executed proc instances will be returned. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>clear\_complete</strong> – If set to <span className="em">true</span>, if a proc instance has completed (either successfully or unsuccessfully) then its status will be cleared and no longer returned in subsequent calls. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>run\_tag</strong> – If input parameter <span className="em">run\_id</span> is specified, return the status for a proc instance that has a matching run ID and a matching run tag that was provided to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a>. If input parameter <span className="em">run\_id</span> is not specified, return statuses for all proc instances where a matching run tag was provided to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a>. The default value is ‘’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">proc\_names (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>The proc names corresponding to the returned run IDs.</p>
                    </div>

                    <div className="dt">params (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>The string params passed to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a> for the returned run IDs.</p>
                    </div>

                    <div className="dt">bin\_params (<span className="em">dict of str to dicts of str to bytes</span>) –</div>

                    <div className="dd">
                      <p>The binary params passed to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a> for the returned run IDs.</p>
                    </div>

                    <div className="dt">input\_table\_names (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>The input table names passed to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a> for the returned run IDs.</p>
                    </div>

                    <div className="dt">input\_column\_names (<span className="em">dict of str to dicts of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>The input column names passed to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a> for the returned run IDs, supplemented with the column names for input tables not included in the input column name map.</p>
                    </div>

                    <div className="dt">output\_table\_names (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>The output table names passed to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a> for the returned run IDs.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>The optional parameters passed to <a className="reference internal" href="#gpudb.GPUdb.execute_proc" title="gpudb.GPUdb.execute_proc"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.execute\_proc()</span></code></a> for the returned run IDs.</p>
                    </div>

                    <div className="dt">overall\_statuses (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Overall statuses for the returned run IDs. Note that these are rollups and individual statuses may differ between data segments for the same run ID; see output parameter <span className="em">statuses</span> and output parameter <span className="em">messages</span> for statuses from individual data segments. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>running</strong> – The proc instance is currently running.</p>
                        </li>

                        <li>
                          <p><strong>complete</strong> – The proc instance completed with no errors.</p>
                        </li>

                        <li>
                          <p><strong>killed</strong> – The proc instance was killed before completion.</p>
                        </li>

                        <li>
                          <p><strong>error</strong> – The proc instance failed with an error.</p>
                        </li>

                        <li>
                          <p><strong>none</strong> – The proc instance does not have a status, i.e. it has not yet ran.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">statuses (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Statuses for the returned run IDs, grouped by data segment ID. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>running</strong> – The proc instance is currently running.</p>
                        </li>

                        <li>
                          <p><strong>complete</strong> – The proc instance completed with no errors.</p>
                        </li>

                        <li>
                          <p><strong>killed</strong> – The proc instance was killed before completion.</p>
                        </li>

                        <li>
                          <p><strong>error</strong> – The proc instance failed with an error.</p>
                        </li>

                        <li>
                          <p><strong>none</strong> – The proc instance does not have a status, i.e. it has not yet ran.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">messages (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Messages containing additional status information for the returned run IDs, grouped by data segment ID.</p>
                    </div>

                    <div className="dt">results (<span className="em">dict of str to dicts of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>String results for the returned run IDs, grouped by data segment ID.</p>
                    </div>

                    <div className="dt">bin\_results (<span className="em">dict of str to dicts of str to dicts of str to bytes</span>) –</div>

                    <div className="dd">
                      <p>Binary results for the returned run IDs, grouped by data segment ID.</p>
                    </div>

                    <div className="dt">output (<span className="em">dict of str to dicts of str to dicts of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Output lines for the returned run IDs, grouped by data segment ID. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>stdout</strong> – Output lines from stdout.</p>
                        </li>

                        <li>
                          <p><strong>stderr</strong> – Output lines from stderr.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">timings (<span className="em">dict of str to dicts of str to dicts of str to longs</span>) –</div>

                    <div className="dd">
                      <p>Timing information for the returned run IDs, grouped by data segment ID.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_resource_objects"> <span className="sig-name descname"><span className="pre">show\_resource\_objects</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Returns information about the internal sub-components (tiered objects) which use resources of the system. The request can either return results from actively used objects (default) or it can be used to query the status of the objects of a given list of tables. Returns detailed information about the requested resource objects.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>tiers</strong> – Comma-separated list of tiers to query, leave blank for all tiers.</p>
                        </li>

                        <li>
                          <p><strong>expression</strong> – An expression to filter the returned objects. Expression is limited to the following operators: =,!=,\<,\<=,>,>=,+,-,\*,AND,OR,LIKE. For details see <a className="reference external" href="/content/concepts/expressions/">Expressions</a>. To use a more complex expression, query the ki\_catalog.ki\_tiered\_objects table directly.</p>
                        </li>

                        <li>
                          <p><strong>order\_by</strong> – Single column to be sorted by as well as the sort direction, e.g., ‘size asc’. Allowed values are:</p>

                          <ul>
                            <li>
                              <p>size</p>
                            </li>

                            <li>
                              <p>id</p>
                            </li>

                            <li>
                              <p>priority</p>
                            </li>

                            <li>
                              <p>tier</p>
                            </li>

                            <li>
                              <p>evictable</p>
                            </li>

                            <li>
                              <p>locked</p>
                            </li>

                            <li>
                              <p>pin\_count</p>
                            </li>

                            <li>
                              <p>ram\_evictions</p>
                            </li>

                            <li>
                              <p>persist\_evictions</p>
                            </li>

                            <li>
                              <p>owner\_resource\_group</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>limit</strong> – An integer indicating the maximum number of results to be returned, per rank, or (-1) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the <a className="reference external" href="/content/config/#config-main-general">max\_get\_records\_size</a> parameter in the server configuration. The default value is ‘100’.</p>
                        </li>

                        <li>
                          <p><strong>table\_names</strong> – Comma-separated list of tables to restrict the results to. Use ‘\*’ to show all tables.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">rank\_objects (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Tier usage across ranks. Layout is: response.rank\_usage\[rank\_number]\[resource\_group\_name] = group\_usage (as stringified JSON).</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_resource_statistics"> <span className="sig-name descname"><span className="pre">show\_resource\_statistics</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Requests various statistics for storage/memory tiers and resource groups. Returns statistics on a per-rank basis.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">statistics\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of resource statistics.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_resource_groups"> <span className="sig-name descname"><span className="pre">show\_resource\_groups</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Requests resource group properties. Returns detailed information about the requested resource groups.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of names of groups to be shown. A single entry with an empty string returns all groups. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>show\_default\_values</strong> – If <span className="em">true</span> include values of fields that are based on the default resource group. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>show\_default\_group</strong> – If <span className="em">true</span> include the default and system resource groups in the response. This value defaults to false if an explicit list of group names is provided, and true otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>show\_tier\_usage</strong> – If <span className="em">true</span> include the resource group usage on the worker ranks in the response. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">groups (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of resource group information.</p>
                    </div>

                    <div className="dt">rank\_usage (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Tier usage across ranks. Layout is: response.rank\_usage\[rank\_number]\[resource\_group\_name] = group\_usage (as stringified JSON).</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_schema"> <span className="sig-name descname"><span className="pre">show\_schema</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">schema\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves information about a <a className="reference external" href="/content/concepts/schemas/">schema</a> (or all schemas), as specified in input parameter <span className="em">schema\_name</span>.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the schema for which to retrieve the information. If blank, then info for all schemas is returned.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">false</span> will return an error if the provided input parameter <span className="em">schema\_name</span> does not exist. If <span className="em">true</span> then it will return an empty result if the provided input parameter <span className="em">schema\_name</span> does not exist. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">schema\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">schema\_name</span>.</p>
                    </div>

                    <div className="dt">schema\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of all schema names for which information is returned.</p>
                    </div>

                    <div className="dt">schema\_tables (<span className="em">list of lists of str</span>) –</div>

                    <div className="dd">
                      <p>An array of arrays containing a list of tables in each of the respective output parameter <span className="em">schema\_names</span>.</p>
                    </div>

                    <div className="dt">additional\_info (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information about the respective tables in output parameter <span className="em">schema\_names</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_security"> <span className="sig-name descname"><span className="pre">show\_security</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows security information relating to users and/or roles. If the caller is not a system administrator, only information relating to the caller and their roles is returned.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of names of users and/or roles about which security information is requested. If none are provided, information about all users and roles will be returned. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>show\_current\_user</strong> – If <span className="em">true</span>, returns only security information for the current user. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">types (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of user/role name to the type of that user/role. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>internal\_user</strong> – A user whose credentials are managed by the database system.</p>
                        </li>

                        <li>
                          <p><strong>external\_user</strong> – A user whose credentials are managed by an external LDAP.</p>
                        </li>

                        <li>
                          <p><strong>role</strong> – A role.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">roles (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Map of user/role name to a list of names of roles of which that user/role is a member.</p>
                    </div>

                    <div className="dt">permissions (<span className="em">dict of str to lists of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of user/role name to a list of permissions directly granted to that user/role.</p>
                    </div>

                    <div className="dt">resource\_groups (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Map of user name to resource group name.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_sql_proc"> <span className="sig-name descname"><span className="pre">show\_sql\_proc</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">procedure\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Shows information about SQL procedures, including the full definition of each requested procedure.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">procedure\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the procedure for which to retrieve the information. If blank, then information about all procedures is returned. The default value is ‘’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span>, no error will be returned if the requested procedure does not exist. If <span className="em">false</span>, an error will be returned if the requested procedure does not exist. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">procedure\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of the names of the requested procedures.</p>
                    </div>

                    <div className="dt">procedure\_definitions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of the definitions for the requested procedures.</p>
                    </div>

                    <div className="dt">additional\_info (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information about the respective tables in the requested procedures. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>execute\_as</strong> – The periodic execution impersonate user. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>execute\_interval</strong> – The periodic execution interval in seconds. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>execute\_start\_time</strong> – The initial date/time that periodic execution began. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>execute\_stop\_time</strong> – Time at which the periodic execution stops. The default value is ‘’.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_statistics"> <span className="sig-name descname"><span className="pre">show\_statistics</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves the collected column statistics for the specified table(s).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of tables whose metadata will be fetched, each in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. All provided tables must exist, or an error is returned. A single entry of ‘\*’ expands to every user table the caller may read (excluding system schemas, views, and temporary tables); when used it must be the only entry. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">true</span> and if the table names specified in input parameter <span className="em">table\_names</span> does not exist, no error is returned. If <span className="em">false</span> and if the table names specified in input parameter <span className="em">table\_names</span> does not exist, then an error is returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>column\_names</strong> – Columns, per table in input parameter <span className="em">table\_names</span>, to collect statistics for when @{"{"}input.key options.collect\_now{"}"} is <span className="em">true</span>; ignored otherwise. Encoded as a ‘;’-separated parallel array aligned with input parameter <span className="em">table\_names</span> (e.g. ‘x,y;z’ requests columns x,y for the first table and z for the second). A value of ‘\*’ expands to every collectable column on each table (geometry, vector, JSON, and array columns are skipped). An explicit list may not be combined with a ‘\*’ table\_names wildcard. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>collect\_now</strong> – If <span className="em">true</span>, the columns named by @{"{"}input.key options.column\_names{"}"} are collected synchronously during this request and reflected in the response. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">stastistics\_map (<span className="em">list of lists of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>A list of maps which contain the column statistics of the table input parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_system_properties"> <span className="sig-name descname"><span className="pre">show\_system\_properties</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Returns server configuration and version related information to the caller. The admin tool uses it to present server related information to the user.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>properties</strong> – A list of comma separated names of properties requested. If not specified, all properties will be returned.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">property\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>A map of server configuration parameters and version information. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>conf.enable\_worker\_http\_servers</strong> – Boolean value indicating whether the system is configured for multi-head ingestion. Allowed values are:</p>

                          <ul>
                            <li>
                              <p><strong>TRUE</strong> – Indicates that the system is configured for multi-head ingestion.</p>
                            </li>

                            <li>
                              <p><strong>FALSE</strong> – Indicates that the system is NOT configured for multi-head ingestion.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>conf.worker\_http\_server\_ips</strong> – Semicolon (‘;’) separated string of IP addresses of all the ingestion-enabled worker heads of the system.</p>
                        </li>

                        <li>
                          <p><strong>conf.worker\_http\_server\_ports</strong> – Semicolon (‘;’) separated string of the port numbers of all the ingestion-enabled worker ranks of the system.</p>
                        </li>

                        <li>
                          <p><strong>conf.hm\_http\_port</strong> – The host manager port number (an integer value).</p>
                        </li>

                        <li>
                          <p><strong>conf.enable\_ha</strong> – Flag indicating whether high availability (HA) is set up (a boolean value).</p>
                        </li>

                        <li>
                          <p><strong>conf.ha\_ring\_head\_nodes</strong> – A comma-separated string of high availability (HA) ring node URLs. If HA is not set up, then an empty string.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_system_status"> <span className="sig-name descname"><span className="pre">show\_system\_status</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Provides server configuration and health related status to the caller. The admin tool uses it to present server related information to the user.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters, currently unused. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">status\_map (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>A map of server configuration and health related status.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_system_timing"> <span className="sig-name descname"><span className="pre">show\_system\_timing</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Returns the last 100 database requests along with the request timing and internal job ID. The admin tool uses it to present request timing information to the user.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters, currently unused. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">endpoints (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of recently called endpoints, most recent first.</p>
                    </div>

                    <div className="dt">time\_in\_ms (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>List of time (in ms) of the recent requests.</p>
                    </div>

                    <div className="dt">jobIds (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of the internal job IDs for the recent requests.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_table"> <span className="sig-name descname"><span className="pre">show\_table</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves detailed information about a table, view, or schema, specified in input parameter <span className="em">table\_name</span>. If the supplied input parameter <span className="em">table\_name</span> is a schema the call can return information about either the schema itself or the tables and views it contains. If input parameter <span className="em">table\_name</span> is empty, information about all schemas will be returned.</p>
              <p>If the option <span className="em">get\_sizes</span> is set to <span className="em">true</span>, then the number of records in each table is returned (in output parameter <span className="em">sizes</span> and output parameter <span className="em">full\_sizes</span>), along with the total number of objects across all requested tables (in output parameter <span className="em">total\_size</span> and output parameter <span className="em">total\_full\_size</span>).</p>
              <p>For a schema, setting the <span className="em">show\_children</span> option to <span className="em">false</span> returns only information about the schema itself; setting <span className="em">show\_children</span> to <span className="em">true</span> returns a list of tables and views contained in the schema, along with their corresponding detail.</p>
              <p>To retrieve a list of every table, view, and schema in the database, set input parameter <span className="em">table\_name</span> to ‘\*’ and <span className="em">show\_children</span> to <span className="em">true</span>. When doing this, the returned output parameter <span className="em">total\_size</span> and output parameter <span className="em">total\_full\_size</span> will not include the sizes of non-base tables (e.g., filters, views, joins, etc.).</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table for which to retrieve the information, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. If blank, then returns information about all tables and views.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>dependencies</strong> – Include view dependencies in the output. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>force\_synchronous</strong> – If <span className="em">true</span> then the table sizes will wait for read lock before returning. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>get\_access\_data</strong> – If <span className="em">true</span> then data about the last read, write, alter and create will be returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>get\_cached\_sizes</strong> – If <span className="em">true</span> then the number of records in each table, along with a cumulative count, will be returned; blank, otherwise. This version will return the sizes cached at rank 0, which may be stale if there is a multihead insert occurring. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>get\_sizes</strong> – If <span className="em">true</span> then the number of records in each table, along with a cumulative count, will be returned; blank, otherwise. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>referencing\_materialized\_views</strong> – Include materialized views using this table as a source in the output. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>skip\_additional\_info</strong> – If <span className="em">true</span> then the response will not populate the additional\_info field. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>no\_error\_if\_not\_exists</strong> – If <span className="em">false</span> will return an error if the provided input parameter <span className="em">table\_name</span> does not exist. If <span className="em">true</span> then it will return an empty result. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>skip\_temp\_schemas</strong> – If <span className="em">true</span> then the table list will not include tables from SYS\_TEMP and other system temporary schemas. This is the default behavior for non-admin users. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>show\_children</strong> – If input parameter <span className="em">table\_name</span> is a schema, then <span className="em">true</span> will return information about the tables and views in the schema, and <span className="em">false</span> will return information about the schema itself. If input parameter <span className="em">table\_name</span> is a table or view, <span className="em">show\_children</span> must be <span className="em">false</span>. If input parameter <span className="em">table\_name</span> is empty, then <span className="em">show\_children</span> must be <span className="em">true</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>get\_column\_info</strong> – If <span className="em">true</span> then column info (memory usage, etc) will be returned. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_name</span>.</p>
                    </div>

                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>If input parameter <span className="em">table\_name</span> is a table or view, then the single element of the array is input parameter <span className="em">table\_name</span>. If input parameter <span className="em">table\_name</span> is a schema and <span className="em">show\_children</span> is set to <span className="em">true</span>, then this array is populated with the names of all tables and views in the given schema; if <span className="em">show\_children</span> is <span className="em">false</span>, then this array will only include the schema name itself. If input parameter <span className="em">table\_name</span> is an empty string, then the array contains the names of all tables in the user’s default schema.</p>
                    </div>

                    <div className="dt">table\_descriptions (<span className="em">list of lists of str</span>) –</div>

                    <div className="dd">
                      <p>List of descriptions for the respective tables in output parameter <span className="em">table\_names</span>. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>COLLECTION</p>
                        </li>

                        <li>
                          <p>JOIN</p>
                        </li>

                        <li>
                          <p>LOGICAL\_EXTERNAL\_TABLE</p>
                        </li>

                        <li>
                          <p>LOGICAL\_VIEW</p>
                        </li>

                        <li>
                          <p>MATERIALIZED\_EXTERNAL\_TABLE</p>
                        </li>

                        <li>
                          <p>MATERIALIZED\_VIEW</p>
                        </li>

                        <li>
                          <p>MATERIALIZED\_VIEW\_MEMBER</p>
                        </li>

                        <li>
                          <p>MATERIALIZED\_VIEW\_UNDER\_CONSTRUCTION</p>
                        </li>

                        <li>
                          <p>REPLICATED</p>
                        </li>

                        <li>
                          <p>RESULT\_TABLE</p>
                        </li>

                        <li>
                          <p>SCHEMA</p>
                        </li>

                        <li>
                          <p>VIEW</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">type\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Type IDs of the respective tables in output parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">type\_schemas (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Type schemas of the respective tables in output parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">type\_labels (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Type labels of the respective tables in output parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">properties (<span className="em">list of dicts of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Property maps of the respective tables in output parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">additional\_info (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information about the respective tables in output parameter <span className="em">table\_names</span>. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>request\_avro\_type</strong> – Method by which this table was created. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>create\_table</p>
                            </li>

                            <li>
                              <p>create\_projection</p>
                            </li>

                            <li>
                              <p>create\_union</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>request\_avro\_json</strong> – The JSON representation of request creating this table. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>protected</strong> – No longer used. Indicated whether the respective table was protected or not. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>record\_bytes</strong> – The number of in-memory bytes per record which is the sum of the byte sizes of all columns with property ‘data’.</p>
                        </li>

                        <li>
                          <p><strong>total\_bytes</strong> – The total size in bytes of all data stored in the table.</p>
                        </li>

                        <li>
                          <p><strong>collection\_names</strong> – \[DEPRECATED–use schema\_name instead] This will now contain the name of the schema for the table. There can only be one schema for a table.</p>
                        </li>

                        <li>
                          <p><strong>schema\_name</strong> – The name of the schema for the table. There can only be one schema for a table.</p>
                        </li>

                        <li>
                          <p><strong>table\_ttl</strong> – The value of the <a className="reference external" href="/content/concepts/ttl/">time-to-live</a> setting. Not present for schemas.</p>
                        </li>

                        <li>
                          <p><strong>remaining\_table\_ttl</strong> – The remaining <a className="reference external" href="/content/concepts/ttl/">time-to-live</a>, in minutes, before the respective table expires (-1 if it will never expire). Not present for schemas.</p>
                        </li>

                        <li>
                          <p><strong>primary\_key\_type</strong> – The primary key type of the table (if it has a primary key). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>memory</strong> – In-memory primary key.</p>
                            </li>

                            <li>
                              <p><strong>disk</strong> – On-disk primary key.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>foreign\_keys</strong> – Semicolon-separated list of <a className="reference external" href="/content/concepts/tables/#foreign-key">foreign keys</a>, of the format ‘source\_column references target\_table(primary\_key\_column)’. Not present for schemas. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>foreign\_shard\_key</strong> – Foreign shard key description of the format: \<fk\_foreign\_key> references \<pk\_column\_name> from \<pk\_table\_name>(\<pk\_primary\_key>). Not present for schemas. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_type</strong> – <a className="reference external" href="/content/concepts/tables/#partitioning">Partitioning</a> scheme used for this table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>RANGE</strong> – Using <a className="reference external" href="/content/concepts/tables/#partitioning-by-range">range partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>INTERVAL</strong> – Using <a className="reference external" href="/content/concepts/tables/#partitioning-by-interval">interval partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>LIST</strong> – Using <a className="reference external" href="/content/concepts/tables/#partitioning-by-list-manual">manual list partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>HASH</strong> – Using <a className="reference external" href="/content/concepts/tables/#partitioning-by-hash">hash partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>SERIES</strong> – Using <a className="reference external" href="/content/concepts/tables/#partitioning-by-series">series partitioning</a>.</p>
                            </li>

                            <li>
                              <p><strong>NONE</strong> – Using no partitioning.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘NONE’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_keys</strong> – Comma-separated list of partition keys. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>partition\_definitions</strong> – Comma-separated list of partition definitions, whose format depends on the partition\_type. See <a className="reference external" href="/content/concepts/tables/#partitioning">partitioning</a> documentation for details. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>is\_automatic\_partition</strong> – True if partitions will be created for LIST VALUES which don’t fall into existing partitions. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>attribute\_indexes</strong> – Semicolon-separated list of indexes. For <a className="reference external" href="/content/concepts/indexes/#column-index">column (attribute) indexes</a>, only the indexed column name will be listed. For other index types, the index type will be listed with the colon-delimited indexed column(s) and the comma-delimited index option(s) using the form: \<index\_type>@\<column\_list>@\<column\_options>. Not present for schemas. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>column\_info</strong> – JSON-encoded string representing a map of column name to information including memory usage if the <span className="em">get\_column\_info</span> option is <span className="em">true</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>global\_access\_mode</strong> – Returns the global access mode (i.e. lock status) for the table. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>no\_access</strong> – No read/write operations are allowed on this table.</p>
                            </li>

                            <li>
                              <p><strong>read\_only</strong> – Only read operations are allowed on this table.</p>
                            </li>

                            <li>
                              <p><strong>write\_only</strong> – Only write operations are allowed on this table.</p>
                            </li>

                            <li>
                              <p><strong>read\_write</strong> – All read/write operations are allowed on this table.</p>
                            </li>
                          </ul>
                        </li>

                        <li>
                          <p><strong>view\_table\_name</strong> – For materialized view the name of the view this member table is part of - if same as the table\_name then this is the root of the view. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>is\_view\_persisted</strong> – True if the view named view\_table\_name is persisted - reported for each view member. Means method of recreating this member is saved - not the members data. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>is\_dirty</strong> – True if some input table of the materialized view that affects this member table has been modified since the last refresh. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_method</strong> – For materialized view current refresh\_method - one of manual, periodic, on\_change. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_start\_time</strong> – For materialized view with periodic refresh\_method the initial datetime string that periodic refreshes began. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_stop\_time</strong> – Time at which the periodic view refresh stops. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>refresh\_period</strong> – For materialized view with periodic refresh\_method the current refresh period in seconds. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>last\_refresh\_time</strong> – For materialized view the datetime string indicating the last time the view was refreshed. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>next\_refresh\_time</strong> – For materialized view with periodic refresh\_method a datetime string indicating the next time the view is to be refreshed. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>user\_chunk\_size</strong> – User-specified number of records per chunk, if provided at table creation time. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>user\_chunk\_column\_max\_memory</strong> – User-specified target max bytes per column in a chunk, if provided at table creation time. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>user\_chunk\_max\_memory</strong> – User-specified target max bytes for all columns in a chunk, if provided at table creation time. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>owner\_resource\_group</strong> – Name of the owner resource group. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>alternate\_shard\_keys</strong> – Semicolon-separated list of shard keys that were equated in joins (applicable for join tables). The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>datasource\_subscriptions</strong> – Semicolon-separated list of datasource names the table has subscribed to. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>null\_modifying\_columns</strong> – Comma-separated list of null modifying column names. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>compression\_codec</strong> – Default <a className="reference external" href="/content/concepts/column_compression/">compression codec</a> for the table. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>created\_by</strong> – User that created this table or view. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>created\_time</strong> – Time (UTC) when this table or view was created. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>last\_read\_by</strong> – User that last read this table or view. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>last\_read\_time</strong> – Time (UTC) when this table or view was last read. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>read\_count</strong> – Count of times this table or view was read. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>last\_write\_by</strong> – User that last wrote to this table. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>last\_write\_time</strong> – Time (UTC) when this table was last written. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>write\_count</strong> – Count of times this table was written. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>last\_alter\_by</strong> – User that last altered this table or view. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>last\_alter\_time</strong> – Time (UTC) when this table or view was last altered. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>alter\_count</strong> – Count of times this table or view was altered. The default value is ‘’.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">sizes (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>If <span className="em">get\_sizes</span> is <span className="em">true</span>, an array containing the number of records of each corresponding table in output parameter <span className="em">table\_names</span>. Otherwise, an empty array.</p>
                    </div>

                    <div className="dt">full\_sizes (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>If <span className="em">get\_sizes</span> is <span className="em">true</span>, an array containing the number of records of each corresponding table in output parameter <span className="em">table\_names</span> (same values as output parameter <span className="em">sizes</span>). Otherwise, an empty array.</p>
                    </div>

                    <div className="dt">join\_sizes (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>If <span className="em">get\_sizes</span> is <span className="em">true</span>, an array containing the number of unfiltered records in the cross product of the sub-tables of each corresponding join-table in output parameter <span className="em">table\_names</span>. For simple tables, this number will be the same as output parameter <span className="em">sizes</span>. For join-tables, this value gives the number of joined-table rows that must be processed by any aggregate functions operating on the table. Otherwise, (if <span className="em">get\_sizes</span> is <span className="em">false</span>), an empty array.</p>
                    </div>

                    <div className="dt">total\_size (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>If <span className="em">get\_sizes</span> is <span className="em">true</span>, the sum of the elements of output parameter <span className="em">sizes</span>. Otherwise, -1.</p>
                    </div>

                    <div className="dt">total\_full\_size (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>If <span className="em">get\_sizes</span> is <span className="em">true</span>, the sum of the elements of output parameter <span className="em">full\_sizes</span> (same value as output parameter <span className="em">total\_size</span>). Otherwise, -1.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_table_metadata"> <span className="sig-name descname"><span className="pre">show\_table\_metadata</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves the user provided metadata for the specified tables.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of tables whose metadata will be fetched, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. All provided tables must exist, or an error is returned. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">metadata\_maps (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>A list of maps which contain the metadata of the tables in the order the tables are listed in input parameter <span className="em">table\_names</span>. Each map has (metadata attribute name, metadata attribute value) pairs.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_table_monitors"> <span className="sig-name descname"><span className="pre">show\_table\_monitors</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">monitor\_ids</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Show table monitors and their properties. Table monitors are created using <a className="reference internal" href="#gpudb.GPUdb.create_table_monitor" title="gpudb.GPUdb.create_table_monitor"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_table\_monitor()</span></code></a>. Returns detailed information about existing table monitors.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">monitor\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of monitors to be shown. An empty list or a single entry with an empty string returns all table monitors. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">monitor\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of monitor IDs.</p>
                    </div>

                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of source tables being monitored for the respective output parameter <span className="em">monitor\_ids</span>.</p>
                    </div>

                    <div className="dt">events (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of notification events for the respective output parameter <span className="em">monitor\_ids</span>.</p>
                    </div>

                    <div className="dt">increasing\_columns (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of columns used on the respective tables in output parameter <span className="em">table\_names</span> that will increase for new records.</p>
                    </div>

                    <div className="dt">filter\_expressions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of filter expressions used on the respective tables in output parameter <span className="em">table\_names</span> to limit records for notifications.</p>
                    </div>

                    <div className="dt">join\_table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of join table names.</p>
                    </div>

                    <div className="dt">join\_column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of join column names.</p>
                    </div>

                    <div className="dt">join\_expressions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of join expressions.</p>
                    </div>

                    <div className="dt">refresh\_method (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of refresh methods used on the respective tables in output parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">refresh\_period (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of refresh periods used on the respective tables in output parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">refresh\_start\_time (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of refresh start times used on the respective tables in output parameter <span className="em">table\_names</span>.</p>
                    </div>

                    <div className="dt">datasink\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of datasink names for the respective output parameter <span className="em">monitor\_ids</span> if one is defined.</p>
                    </div>

                    <div className="dt">max\_consecutive\_failures (<span className="em">list of ints</span>) –</div>

                    <div className="dd">
                      <p>Maximum number of consecutive failures for the respective output parameter <span className="em">monitor\_ids</span> before stream is automatically suspended.</p>
                    </div>

                    <div className="dt">failed\_notifications\_table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of table names that will hold failed notification events when the respective output parameter <span className="em">monitor\_ids</span> is suspended.</p>
                    </div>

                    <div className="dt">statuses (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Status of stream for the respective output parameter <span className="em">monitor\_ids</span>.</p>
                    </div>

                    <div className="dt">additional\_info (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information about the respective monitors in output parameter <span className="em">monitor\_ids</span>. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>monitor\_type</strong> – Notification type for the respective output parameter <span className="em">monitor\_ids</span> and output parameter <span className="em">table\_names</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>type\_schema</strong> – Notification type schemas for the respective output parameter <span className="em">monitor\_ids</span> and output parameter <span className="em">table\_names</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>materialized\_view\_for\_change\_detector</strong> – Materialized view that implements the change detector.</p>
                        </li>

                        <li>
                          <p><strong>materialized\_view\_for\_filter</strong> – Materialized views created for the output parameter <span className="em">filter\_expressions</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>references</strong> – Reference count on the respective output parameter <span className="em">monitor\_ids</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>datasink\_json</strong> – Datasink info in JSON format for the respective output parameter <span className="em">monitor\_ids</span> if one is defined. The default value is ‘’.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_tables_by_type"> <span className="sig-name descname"><span className="pre">show\_tables\_by\_type</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">type\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">label</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Gets names of the tables whose type matches the given criteria. Each table has a particular type. This type comprises the schema and properties of the table and sometimes a type label. This function allows a look up of the existing tables based on full or partial type information. The operation is synchronous.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Type id returned by a call to <a className="reference internal" href="#gpudb.GPUdb.create_type" title="gpudb.GPUdb.create_type"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_type()</span></code></a>.</p>
                    </div>

                    <div className="dt">label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Optional user supplied label which can be used instead of the type\_id to retrieve all tables with the given label.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of tables matching the input criteria.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_triggers"> <span className="sig-name descname"><span className="pre">show\_triggers</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">trigger\_ids</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves information regarding the specified triggers or all existing triggers currently active.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">trigger\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of IDs of the triggers whose information is to be retrieved. An empty list means information will be retrieved on all active triggers. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">trigger\_map (<span className="em">dict of str to dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>This dictionary contains (key, value) pairs of (trigger ID, information map/dictionary) where the key is a Unicode string representing a Trigger ID. The value is another embedded dictionary containing (key, value) pairs where the keys consist of ‘table\_name’, ‘type’ and the parameter names relating to the trigger type, e.g. <span className="em">nai</span>, <span className="em">min</span>, <span className="em">max</span>. The values are unicode strings (numeric values are also converted to strings) representing the value of the respective parameter. If a trigger is associated with multiple tables, then the string value for <span className="em">table\_name</span> contains a comma separated list of table names.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_types"> <span className="sig-name descname"><span className="pre">show\_types</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">type\_id</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">label</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves information for the specified data type ID or type label. For all data types that match the input criteria, the database returns the type ID, the type schema, the label (if available), and the type’s column properties.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">type\_id (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Type Id returned in response to a call to <a className="reference internal" href="#gpudb.GPUdb.create_type" title="gpudb.GPUdb.create_type"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_type()</span></code></a>.</p>
                    </div>

                    <div className="dt">label (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Option string that was supplied by user in a call to <a className="reference internal" href="#gpudb.GPUdb.create_type" title="gpudb.GPUdb.create_type"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_type()</span></code></a>.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>no\_join\_types</strong> – When set to ‘true’, no join types will be included. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">type\_ids (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The type IDs of the matching types.</p>
                    </div>

                    <div className="dt">type\_schemas (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The Avro schema strings describing each matching type.</p>
                    </div>

                    <div className="dt">labels (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The user-defined labels of each matching type.</p>
                    </div>

                    <div className="dt">properties (<span className="em">list of dicts of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>The column properties of each matching type.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_video"> <span className="sig-name descname"><span className="pre">show\_video</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">paths</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Retrieves information about rendered videos.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">paths (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The fully-qualified <a className="reference external" href="/content/tools/kifs/">KiFS</a> paths for the videos to show. If empty, shows all videos. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">creation\_times (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Creation time for each video as an ISO-8601 datetime.</p>
                    </div>

                    <div className="dt">elapsed\_render\_time\_seconds (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The elapsed time spent rendering each video in seconds.</p>
                    </div>

                    <div className="dt">job\_ids (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The job id of the rendering process, for each video that is still being rendered.</p>
                    </div>

                    <div className="dt">paths (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>KIFS path to each video.</p>
                    </div>

                    <div className="dt">rendered\_bytes (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The number of bytes emitted by the encoder for each video.</p>
                    </div>

                    <div className="dt">rendered\_frames (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The number of frames rendered for each video.</p>
                    </div>

                    <div className="dt">rendered\_percents (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Percent completion of each video’s rendering process (0-100).</p>
                    </div>

                    <div className="dt">requests (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>JSON-string reflecting each video’s creation parameters.</p>
                    </div>

                    <div className="dt">status (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>The status of the last rendered frame for each video. Either OK or Error with a message indicating the nature of the error.</p>
                    </div>

                    <div className="dt">ttls (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>The remaining <a className="reference external" href="/content/concepts/ttl/">TTL</a>, in minutes, before the respective video expires (-1 if it will never expire).</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.show_wal"> <span className="sig-name descname"><span className="pre">show\_wal</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Requests table write-ahead log (WAL) properties. Returns information about the requested table WAL entries.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of tables to query. An asterisk returns all tables. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>show\_settings</strong> – If <span className="em">true</span> include a map of the WAL settings for the requested tables. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">table\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of returned tables.</p>
                    </div>

                    <div className="dt">sizes (<span className="em">list of lists of longs</span>) –</div>

                    <div className="dd">
                      <p>List of current WAL usage.</p>
                    </div>

                    <div className="dt">capacities (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>List of WAL capacities.</p>
                    </div>

                    <div className="dt">uncommitted (<span className="em">list of lists of longs</span>) –</div>

                    <div className="dd">
                      <p>List of number of uncommitted entries.</p>
                    </div>

                    <div className="dt">settings (<span className="em">list of dicts of str to str</span>) –</div>

                    <div className="dd">
                      <p>List of table WAL settings.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.solve_graph"> <span className="sig-name descname"><span className="pre">solve\_graph</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">weights\_on\_edges</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">restrictions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">solver\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'SHORTEST\_PATH'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">source\_nodes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">destination\_nodes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">solution\_table</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'graph\_solutions'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Solves an existing graph for a type of problem (e.g., shortest path, page rank, traveling salesman, etc.) using source nodes, destination nodes, and additional, optional weights and restrictions.</p>
              <p>IMPORTANT: It’s highly recommended that you review the <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graphs and Solvers</a> concepts documentation, the <a className="reference external" href="/content/guides/graph_rest_guide/">Graph REST Tutorial</a>, and/or some <a className="reference external" href="/content/guides/tags/graph-solve">/solve/graph examples</a> before using this endpoint.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph resource to solve.</p>
                    </div>

                    <div className="dt">weights\_on\_edges (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Additional weights to apply to the edges of an existing graph. Weights must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS WEIGHTS\_EDGE\_ID’, expressions, e.g., ‘ST\_LENGTH(wkt) AS WEIGHTS\_VALUESPECIFIED’, or constant values, e.g., ‘{"{"}4, 15, 2{"}"} AS WEIGHTS\_VALUESPECIFIED’. Any provided weights will be added (in the case of ‘WEIGHTS\_VALUESPECIFIED’) to or multiplied with (in the case of ‘WEIGHTS\_FACTORSPECIFIED’) the existing weight(s). If using constant values in an identifier combination, the number of values specified must match across the combination. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">restrictions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Additional restrictions to apply to the nodes/edges of an existing graph. Restrictions must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS RESTRICTIONS\_EDGE\_ID’, expressions, e.g., ‘column/2 AS RESTRICTIONS\_VALUECOMPARED’, or constant values, e.g., ‘{"{"}0, 0, 0, 1{"}"} AS RESTRICTIONS\_ONOFFCOMPARED’. If using constant values in an identifier combination, the number of values specified must match across the combination. If remove\_previous\_restrictions option is set to true, any provided restrictions will replace the existing restrictions. Otherwise, any provided restrictions will be added (in the case of ‘RESTRICTIONS\_VALUECOMPARED’) to or replaced (in the case of ‘RESTRICTIONS\_ONOFFCOMPARED’). The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">solver\_type (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>The type of solver to use for the graph. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>SHORTEST\_PATH</strong> – Solves for the optimal (shortest) path based on weights and restrictions from one source to destinations nodes. Also known as the Dijkstra solver.</p>
                        </li>

                        <li>
                          <p><strong>PAGE\_RANK</strong> – Solves for the probability of each destination node being visited based on the links of the graph topology. Weights are not required to use this solver.</p>
                        </li>

                        <li>
                          <p><strong>PROBABILITY\_RANK</strong> – Solves for the transitional probability (Hidden Markov) for each node based on the weights (probability assigned over given edges).</p>
                        </li>

                        <li>
                          <p><strong>CENTRALITY</strong> – Solves for the degree of a node to depict how many pairs of individuals that would have to go through the node to reach one another in the minimum number of hops. Also known as betweenness.</p>
                        </li>

                        <li>
                          <p><strong>MULTIPLE\_ROUTING</strong> – Solves for finding the minimum cost cumulative path for a round-trip starting from the given source and visiting each given destination node once then returning to the source. Also known as the traveling salesman problem.</p>
                        </li>

                        <li>
                          <p><strong>INVERSE\_SHORTEST\_PATH</strong> – Solves for finding the optimal path cost for each destination node to route to the source node. Also known as inverse Dijkstra or the service man routing problem.</p>
                        </li>

                        <li>
                          <p><strong>BACKHAUL\_ROUTING</strong> – Solves for optimal routes that connect remote asset nodes to the fixed (backbone) asset nodes.</p>
                        </li>

                        <li>
                          <p><strong>ALLPATHS</strong> – Solves for paths that would give costs between max and min solution radia - Make sure to limit by the ‘max\_solution\_targets’ option. Min cost should be >= shortest\_path cost.</p>
                        </li>

                        <li>
                          <p><strong>STATS\_ALL</strong> – Solves for graph statistics such as graph diameter, longest pairs, vertex valences, topology numbers, average and max cluster sizes, etc.</p>
                        </li>

                        <li>
                          <p><strong>CLOSENESS</strong> – Solves for the centrality closeness score per node as the sum of the inverse shortest path costs to all nodes in the graph.</p>
                        </li>
                      </ul>

                      <p>The default value is ‘SHORTEST\_PATH’.</p>
                    </div>

                    <div className="dt">source\_nodes (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>It can be one of the nodal identifiers - e.g: ‘NODE\_WKTPOINT’ for source nodes. For <span className="em">BACKHAUL\_ROUTING</span>, this list depicts the fixed assets. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">destination\_nodes (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>It can be one of the nodal identifiers - e.g: ‘NODE\_WKTPOINT’ for destination (target) nodes. For <span className="em">BACKHAUL\_ROUTING</span>, this list depicts the remote assets. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">solution\_table (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to store the solution, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. The default value is ‘graph\_solutions’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>max\_solution\_radius</strong> – For <span className="em">ALLPATHS</span>, <span className="em">SHORTEST\_PATH</span> and <span className="em">INVERSE\_SHORTEST\_PATH</span> solvers only. Sets the maximum solution cost radius, which ignores the input parameter <span className="em">destination\_nodes</span> list and instead outputs the nodes within the radius sorted by ascending cost. If set to ‘0.0’, the setting is ignored. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>min\_solution\_radius</strong> – For <span className="em">ALLPATHS</span>, <span className="em">SHORTEST\_PATH</span> and <span className="em">INVERSE\_SHORTEST\_PATH</span> solvers only. Applicable only when <span className="em">max\_solution\_radius</span> is set. Sets the minimum solution cost radius, which ignores the input parameter <span className="em">destination\_nodes</span> list and instead outputs the nodes within the radius sorted by ascending cost. If set to ‘0.0’, the setting is ignored. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>max\_solution\_targets</strong> – For <span className="em">ALLPATHS</span>, <span className="em">SHORTEST\_PATH</span> and <span className="em">INVERSE\_SHORTEST\_PATH</span> solvers only. Sets the maximum number of solution targets, which ignores the input parameter <span className="em">destination\_nodes</span> list and instead outputs no more than n number of nodes sorted by ascending cost where n is equal to the setting value. If set to 0, the setting is ignored. The default value is ‘1000’.</p>
                        </li>

                        <li>
                          <p><strong>uniform\_weights</strong> – When specified, assigns the given value to all the edges in the graph. Note that weights provided in input parameter <span className="em">weights\_on\_edges</span> will override this value.</p>
                        </li>

                        <li>
                          <p><strong>left\_turn\_penalty</strong> – This will add an additional weight over the edges labeled as ‘left turn’ if the ‘add\_turn’ option parameter of the <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> was invoked at graph creation. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>right\_turn\_penalty</strong> – This will add an additional weight over the edges labeled as’ right turn’ if the ‘add\_turn’ option parameter of the <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> was invoked at graph creation. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>intersection\_penalty</strong> – This will add an additional weight over the edges labeled as ‘intersection’ if the ‘add\_turn’ option parameter of the <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> was invoked at graph creation. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>sharp\_turn\_penalty</strong> – This will add an additional weight over the edges labeled as ‘sharp turn’ or ‘u-turn’ if the ‘add\_turn’ option parameter of the <a className="reference internal" href="#gpudb.GPUdb.create_graph" title="gpudb.GPUdb.create_graph"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.create\_graph()</span></code></a> was invoked at graph creation. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>num\_best\_paths</strong> – For <span className="em">MULTIPLE\_ROUTING</span> solvers only; sets the number of shortest paths computed from each node. This is the heuristic criterion. Default value of zero allows the number to be computed automatically by the solver. The user may want to override this parameter to speed-up the solver. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>max\_num\_combinations</strong> – For <span className="em">MULTIPLE\_ROUTING</span> solvers only; sets the cap on the combinatorial sequences generated. If the default value of two millions is overridden to a lesser value, it can potentially speed up the solver. The default value is ‘2000000’.</p>
                        </li>

                        <li>
                          <p><strong>output\_edge\_path</strong> – If true then concatenated edge IDs will be added as the EDGE path column of the solution table for each source and target pair in shortest path solves. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>output\_wkt\_path</strong> – If true then concatenated wkt line segments will be added as the Wktroute column of the solution table for each source and target pair in shortest path solves. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>server\_id</strong> – Indicates which graph server(s) to send the request to. Default is to send to the server, amongst those containing the corresponding graph, that has the most computational bandwidth. For SHORTEST\_PATH solver type, the input is split amongst the server containing the corresponding graph.</p>
                        </li>

                        <li>
                          <p><strong>convergence\_limit</strong> – For <span className="em">PAGE\_RANK</span> solvers only; Maximum percent relative threshold on the page rank scores of each node between consecutive iterations to satisfy convergence. Default value is 1 (one) percent. The default value is ‘1.0’.</p>
                        </li>

                        <li>
                          <p><strong>max\_iterations</strong> – For <span className="em">PAGE\_RANK</span> solvers only; Maximum number of page rank iterations for satisfying convergence. Default value is 100. The default value is ‘100’.</p>
                        </li>

                        <li>
                          <p><strong>max\_runs</strong> – For all <span className="em">CENTRALITY</span> solvers only; Sets the maximum number of shortest path runs; maximum possible value is the number of nodes in the graph. Default value of 0 enables this value to be auto computed by the solver. The default value is ‘0’.</p>
                        </li>

                        <li>
                          <p><strong>output\_clusters</strong> – For <span className="em">STATS\_ALL</span> solvers only; the cluster index for each node will be inserted as an additional column in the output. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – An additional column ‘CLUSTER’ will be added for each node.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – No extra cluster info per node will be available in the output.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>solve\_heuristic</strong> – Specify heuristic search criterion only for the geo graphs and shortest path solves towards a single target. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>astar</strong> – Employs A-STAR heuristics to speed up the shortest path traversal.</p>
                            </li>

                            <li>
                              <p><strong>none</strong> – No heuristics are applied.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>

                        <li>
                          <p><strong>astar\_radius</strong> – For path solvers only when ‘solve\_heuristic’ option is ‘astar’. The shortest path traversal front includes nodes only within this radius (kilometers) as it moves towards the target location. The default value is ‘70’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">result (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>Indicates a successful solution on all servers.</p>
                    </div>

                    <div className="dt">result\_per\_destination\_node (<span className="em">list of floats</span>) –</div>

                    <div className="dd">
                      <p>Cost or page rank (based on solver type) for each destination node requested. Only populated if ‘export\_solve\_results’ option is set to true.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.update_records"> <span className="sig-name descname"><span className="pre">update\_records</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">expressions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">new\_values\_maps</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">records\_to\_insert</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">records\_to\_insert\_str</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_encoding</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'binary'</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">record\_type</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Runs multiple predicate-based updates in a single call. With the list of given expressions, any matching record’s column values will be updated as provided in input parameter <span className="em">new\_values\_maps</span>. There is also an optional ‘upsert’ capability where if a particular predicate doesn’t match any existing record, then a new record can be inserted.</p>
              <p>Note that this operation can only be run on an original table and not on a result view.</p>
              <p>This operation can update primary key values. By default only ‘pure primary key’ predicates are allowed when updating primary key values. If the primary key for a table is the column ‘attr1’, then the operation will only accept predicates of the form: “attr1 == ‘foo’” if the attr1 column is being updated. For a composite primary key (e.g. columns ‘attr1’ and ‘attr2’) then this operation will only accept predicates of the form: “(attr1 == ‘foo’) and (attr2 == ‘bar’)”. Meaning, all primary key columns must appear in an equality predicate in the expressions. Furthermore each ‘pure primary key’ predicate must be unique within a given request. These restrictions can be removed by utilizing some available options through input parameter <span className="em">options</span>.</p>
              <p>The <span className="em">update\_on\_existing\_pk</span> option specifies the record primary key collision policy for tables with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, while <span className="em">ignore\_existing\_pk</span> specifies the record primary key collision error-suppression policy when those collisions result in the update being rejected. Both are ignored on tables with no primary key.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of table to be updated, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>. Must be a currently existing table and not a view.</p>
                    </div>

                    <div className="dt">expressions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>A list of the actual predicates, one for each update; format should follow the guidelines <a className="reference internal" href="#gpudb.GPUdb.filter" title="gpudb.GPUdb.filter"><code className="xref py py-meth docutils literal notranslate"><span className="pre">here</span></code></a>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">new\_values\_maps (<span className="em">list of dicts of str to optional str</span>) –</div>

                    <div className="dd">
                      <p>List of new values for the matching records. Each element is a map with (key, value) pairs where the keys are the names of the columns whose values are to be updated; the values are the new values. The number of elements in the list should match the length of input parameter <span className="em">expressions</span>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">records\_to\_insert (<span className="em">list of bytes</span>) –</div>

                    <div className="dd">
                      <p>An <span className="em">optional</span> list of new binary-avro encoded records to insert, one for each update. If one of input parameter <span className="em">expressions</span> does not yield a matching record to be updated, then the corresponding element from this list will be added to the table. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">records\_to\_insert\_str (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>An optional list of JSON encoded objects to insert, one for each update, to be added if the particular update did not match any objects. The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">record\_encoding (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Identifies which of input parameter <span className="em">records\_to\_insert</span> and input parameter <span className="em">records\_to\_insert\_str</span> should be used. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>binary</p>
                        </li>

                        <li>
                          <p>json</p>
                        </li>
                      </ul>

                      <p>The default value is ‘binary’.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>global\_expression</strong> – An optional global expression to reduce the search space of the predicates listed in input parameter <span className="em">expressions</span>. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>bypass\_safety\_checks</strong> – When set to <span className="em">true</span>, all predicates are available for primary key updates. Keep in mind that it is possible to destroy data in this case, since a single predicate may match multiple objects (potentially all of records of a table), and then updating all of those records to have the same primary key will, due to the primary key uniqueness constraints, effectively delete all but one of those updated records. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>update\_on\_existing\_pk</strong> – Specifies the record collision policy for updating a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>. There are two ways that a record collision can occur.</p>
                          <p>The first is an “update collision”, which happens when the update changes the value of the updated record’s primary key, and that new primary key already exists as the primary key of another record in the table.</p>
                          <p>The second is an “insert collision”, which occurs when a given filter in input parameter <span className="em">expressions</span> finds no records to update, and the alternate insert record given in input parameter <span className="em">records\_to\_insert</span> (or input parameter <span className="em">records\_to\_insert\_str</span>) contains a primary key matching that of an existing record in the table.</p>
                          <p>If <span className="em">update\_on\_existing\_pk</span> is set to <span className="em">true</span>, “update collisions” will result in the existing record collided into being removed and the record updated with values specified in input parameter <span className="em">new\_values\_maps</span> taking its place; “insert collisions” will result in the collided-into record being updated with the values in input parameter <span className="em">records\_to\_insert</span> / input parameter <span className="em">records\_to\_insert\_str</span> (if given).</p>
                          <p>If set to <span className="em">false</span>, the existing collided-into record will remain unchanged, while the update will be rejected and the error handled as determined by <span className="em">ignore\_existing\_pk</span>. If the specified table does not have a primary key, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Overwrite the collided-into record when updating a record’s primary key or inserting an alternate record causes a primary key collision between the record being updated/inserted and another existing record in the table</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Reject updates which cause primary key collisions between the record being updated/inserted and an existing record in the table</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>ignore\_existing\_pk</strong> – Specifies the record collision error-suppression policy for updating a table with a <a className="reference external" href="/content/concepts/tables/#primary-keys">primary key</a>, only used when primary key record collisions are rejected (<span className="em">update\_on\_existing\_pk</span> is <span className="em">false</span>). If set to <span className="em">true</span>, any record update that is rejected for resulting in a primary key collision with an existing table record will be ignored with no error generated. If <span className="em">false</span>, the rejection of any update for resulting in a primary key collision will cause an error to be reported. If the specified table does not have a primary key or if <span className="em">update\_on\_existing\_pk</span> is <span className="em">true</span>, then this option has no effect. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Ignore updates that result in primary key collisions with existing records.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Treat as errors any updates that result in primary key collisions with existing records.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>update\_partition</strong> – Force qualifying records to be deleted and reinserted so their partition membership will be reevaluated. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>enable\_inplace\_updates</strong> – If set to <span className="em">true</span>, qualifying records are modified in place. If set to <span className="em">false</span>, they are updated by deleting the existing record and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>truncate\_strings</strong> – If set to <span className="em">true</span>, any strings which are too long for their charN string fields will be truncated to fit. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>use\_expressions\_in\_new\_values\_maps</strong> – When set to <span className="em">true</span>, all new values in input parameter <span className="em">new\_values\_maps</span> are considered as expression values. When set to <span className="em">false</span>, all new values in input parameter <span className="em">new\_values\_maps</span> are considered as constants. NOTE: When <span className="em">true</span>, string constants will need to be quoted to avoid being evaluated as expressions. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>record\_id</strong> – ID of a single record to be updated (returned in the call to <a className="reference internal" href="#gpudb.GPUdb.insert_records" title="gpudb.GPUdb.insert_records"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.insert\_records()</span></code></a> or <a className="reference internal" href="#gpudb.GPUdb.get_records_from_collection" title="gpudb.GPUdb.get_records_from_collection"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.get\_records\_from\_collection()</span></code></a>).</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">record\_type (<span className="em">RecordType</span>) –</div>

                    <div className="dd">
                      <p>A <code className="xref py py-class docutils literal notranslate"><span className="pre">RecordType</span></code> object using which the binary data will be encoded. If None, then it is assumed that the data is already encoded, and no further encoding will occur. Default is None.</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">count\_updated (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records updated.</p>
                    </div>

                    <div className="dt">counts\_updated (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Total number of records updated per predicate in input parameter <span className="em">expressions</span>.</p>
                    </div>

                    <div className="dt">count\_inserted (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Total number of records inserted (due to expressions not matching any existing records).</p>
                    </div>

                    <div className="dt">counts\_inserted (<span className="em">list of longs</span>) –</div>

                    <div className="dd">
                      <p>Total number of records inserted per predicate in input parameter <span className="em">expressions</span> (will be either 0 or 1 for each expression).</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.upload_files"> <span className="sig-name descname"><span className="pre">upload\_files</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">file\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">file\_data</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Uploads one or more files to <a className="reference external" href="/content/tools/kifs/">KiFS</a>. There are two methods for uploading files: load files in their entirety, or load files in parts. The latter is recommended for files of approximately 60 MB or larger.</p>
              <p>To upload files in their entirety, populate input parameter <span className="em">file\_names</span> with the file names to upload into on KiFS, and their respective byte content in input parameter <span className="em">file\_data</span>.</p>
              <p>Multiple steps are involved when uploading in multiple parts. Only one file at a time can be uploaded in this manner. A user-provided UUID is utilized to tie all the upload steps together for a given file. To upload a file in multiple parts:</p>

              <ol className="arabic simple">
                <li>
                  <p>Provide the file name in input parameter <span className="em">file\_names</span>, the UUID in the <span className="em">multipart\_upload\_uuid</span> key in input parameter <span className="em">options</span>, and a <span className="em">multipart\_operation</span> value of <span className="em">init</span>.</p>
                </li>

                <li>
                  <p>Upload one or more parts by providing the file name, the part data in input parameter <span className="em">file\_data</span>, the UUID, a <span className="em">multipart\_operation</span> value of <span className="em">upload\_part</span>, and the part number in the <span className="em">multipart\_upload\_part\_number</span>. The part numbers must start at 1 and increase incrementally. Parts may not be uploaded out of order.</p>
                </li>

                <li>
                  <p>Complete the upload by providing the file name, the UUID, and a <span className="em">multipart\_operation</span> value of <span className="em">complete</span>.</p>
                </li>
              </ol>

              <p>Multipart uploads in progress may be canceled by providing the file name, the UUID, and a <span className="em">multipart\_operation</span> value of <span className="em">cancel</span>. If an new upload is initialized with a different UUID for an existing upload in progress, the pre-existing upload is automatically canceled in favor of the new upload.</p>
              <p>The multipart upload must be completed for the file to be usable in KiFS. Information about multipart uploads in progress is available in <a className="reference internal" href="#gpudb.GPUdb.show_files" title="gpudb.GPUdb.show_files"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_files()</span></code></a>.</p>
              <p>File data may be pre-encoded using base64 encoding. This should be indicated using the <span className="em">file\_encoding</span> option, and is recommended when using JSON serialization.</p>
              <p>Each file path must reside in a top-level KiFS directory, i.e. one of the directories listed in <a className="reference internal" href="#gpudb.GPUdb.show_directories" title="gpudb.GPUdb.show_directories"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_directories()</span></code></a>. The user must have write permission on the directory. Nested directories are permitted in file name paths. Directories are delineated with the directory separator of ‘/’. For example, given the file path ‘/a/b/c/d.txt’, ‘a’ must be a KiFS directory.</p>
              <p>These characters are allowed in file name paths: letters, numbers, spaces, the path delimiter of ‘/’, and the characters: ‘.’ ‘-’ ‘:’ ‘\[’ ‘]’ ‘(’ ‘)’ ‘#’ ‘=’.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">file\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>An array of full file name paths to be used for the files uploaded to KiFS. File names may have any number of nested directories in their paths, but the top-level directory must be an existing KiFS directory. Each file must reside in or under a top-level directory. A full file name path cannot be larger than 1024 characters. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">file\_data (<span className="em">list of bytes</span>) –</div>

                    <div className="dd">
                      <p>File data for the files being uploaded, for the respective files in input parameter <span className="em">file\_names</span>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>file\_encoding</strong> – Encoding that has been applied to the uploaded file data. When using JSON serialization it is recommended to utilize <span className="em">base64</span>. The caller is responsible for encoding the data provided in this payload. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>base64</strong> – Specifies that the file data being uploaded has been base64 encoded.</p>
                            </li>

                            <li>
                              <p><strong>none</strong> – The uploaded file data has not been encoded.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>

                        <li>
                          <p><strong>multipart\_operation</strong> – Multipart upload operation to perform. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – Default, indicates this is not a multipart upload.</p>
                            </li>

                            <li>
                              <p><strong>init</strong> – Initialize a multipart file upload.</p>
                            </li>

                            <li>
                              <p><strong>upload\_part</strong> – Uploads a part of the specified multipart file upload.</p>
                            </li>

                            <li>
                              <p><strong>complete</strong> – Complete the specified multipart file upload.</p>
                            </li>

                            <li>
                              <p><strong>cancel</strong> – Cancel the specified multipart file upload.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>

                        <li>
                          <p><strong>multipart\_upload\_uuid</strong> – UUID to uniquely identify a multipart upload.</p>
                        </li>

                        <li>
                          <p><strong>multipart\_upload\_part\_number</strong> – Incremental part number for each part in a multipart upload. Part numbers start at 1, increment by 1, and must be uploaded sequentially</p>
                        </li>

                        <li>
                          <p><strong>delete\_if\_exists</strong> – If <span className="em">true</span>, any existing files specified in input parameter <span className="em">file\_names</span> will be deleted prior to start of upload. Otherwise the file is replaced once the upload completes. Rollback of the original file is no longer possible if the upload is cancelled, aborted or fails if the file was deleted beforehand. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.upload_files_fromurl"> <span className="sig-name descname"><span className="pre">upload\_files\_fromurl</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">file\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">urls</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Uploads one or more files to <a className="reference external" href="/content/tools/kifs/">KiFS</a>.</p>
              <p>Each file path must reside in a top-level KiFS directory, i.e. one of the directories listed in <a className="reference internal" href="#gpudb.GPUdb.show_directories" title="gpudb.GPUdb.show_directories"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.show\_directories()</span></code></a>. The user must have write permission on the directory. Nested directories are permitted in file name paths. Directories are delineated with the directory separator of ‘/’. For example, given the file path ‘/a/b/c/d.txt’, ‘a’ must be a KiFS directory.</p>
              <p>These characters are allowed in file name paths: letters, numbers, spaces, the path delimiter of ‘/’, and the characters: ‘.’ ‘-’ ‘:’ ‘\[’ ‘]’ ‘(’ ‘)’ ‘#’ ‘=’.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl simple">
                    <div className="dt">file\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>An array of full file name paths to be used for the files uploaded to KiFS. File names may have any number of nested directories in their paths, but the top-level directory must be an existing KiFS directory. Each file must reside in or under a top-level directory. A full file name path cannot be larger than 1024 characters. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">urls (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of URLs to upload, for each respective file in input parameter <span className="em">file\_names</span>. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">successful\_file\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of input parameter <span className="em">file\_names</span> that were successfully uploaded.</p>
                    </div>

                    <div className="dt">successful\_urls (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>List of input parameter <span className="em">urls</span> that were successfully uploaded.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.verify_backup"> <span className="sig-name descname"><span className="pre">verify\_backup</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">backup\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">datasource\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Inspects the requested database <a className="reference external" href="/content/admin/backup_restore/#database-backup">backup(s)</a> for conformity at the remote file store accessible via the <a className="reference external" href="/content/concepts/data_sources/">data source</a> specified by input parameter <span className="em">datasource\_name</span>. By default all snapshots are inspected unless the option <span className="em">backup\_id</span> is used to target a specific instance. Returns backup verification results.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the backup. An empty string or ‘\*’ will check all existing backups. Any text followed by a ‘\*’ will inspect backups whose name starts with that text. The default value is ‘’.</p>
                    </div>

                    <div className="dt">datasource\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Data source through which the backup is accessible.</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>backup\_id</strong> – ID of the snapshot to verify. Set to ‘-1’ to verify all snapshots in the backup. Leave empty to verify only the most recent snapshot. The default value is ‘-1’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">backup\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Value of input parameter <span className="em">backup\_name</span>.</p>
                    </div>

                    <div className="dt">backup\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Backup name(s).</p>
                    </div>

                    <div className="dt">backup\_ids (<span className="em">list of lists of longs</span>) –</div>

                    <div className="dd">
                      <p>IDs of individual snapshots per backup name.</p>
                    </div>

                    <div className="dt">errors (<span className="em">list of lists of str</span>) –</div>

                    <div className="dd">
                      <p>Any errors detected from the inspection of each backup.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.visualize_image_chart"> <span className="sig-name descname"><span className="pre">visualize\_image\_chart</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min\_x</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_x</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min\_y</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_y</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">width</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">height</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">bg\_color</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">style\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Scatter plot is the only plot type currently supported. A non-numeric column can be specified as x or y column and jitters can be added to them to avoid excessive overlapping. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). The image is contained in the output parameter <span className="em">image\_data</span> field.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">table\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table containing the data to be drawn as a chart, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
                    </div>

                    <div className="dt">x\_column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the columns containing the data mapped to the x axis of a chart. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">y\_column\_names (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Names of the columns containing the data mapped to the y axis of a chart. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">min\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower bound for the x column values. For non-numeric x column, each x column item is mapped to an integral value starting from 0.</p>
                    </div>

                    <div className="dt">max\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper bound for the x column values. For non-numeric x column, each x column item is mapped to an integral value starting from 0.</p>
                    </div>

                    <div className="dt">min\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower bound for the y column values. For non-numeric y column, each y column item is mapped to an integral value starting from 0.</p>
                    </div>

                    <div className="dt">max\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper bound for the y column values. For non-numeric y column, each y column item is mapped to an integral value starting from 0.</p>
                    </div>

                    <div className="dt">width (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Width of the generated image in pixels.</p>
                    </div>

                    <div className="dt">height (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Height of the generated image in pixels.</p>
                    </div>

                    <div className="dt">bg\_color (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Background color of the generated image.</p>
                    </div>

                    <div className="dt">style\_options (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Rendering style options for a chart. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>pointcolor</strong> – The color of points in the plot represented as a hexadecimal number. The default value is ‘0000FF’.</p>
                        </li>

                        <li>
                          <p><strong>pointsize</strong> – The size of points in the plot represented as number of pixels. The default value is ‘3’.</p>
                        </li>

                        <li>
                          <p><strong>pointshape</strong> – The shape of points in the plot. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>none</p>
                            </li>

                            <li>
                              <p>circle</p>
                            </li>

                            <li>
                              <p>square</p>
                            </li>

                            <li>
                              <p>diamond</p>
                            </li>

                            <li>
                              <p>hollowcircle</p>
                            </li>

                            <li>
                              <p>hollowsquare</p>
                            </li>

                            <li>
                              <p>hollowdiamond</p>
                            </li>
                          </ul>

                          <p>The default value is ‘square’.</p>
                        </li>

                        <li>
                          <p><strong>cb\_pointcolors</strong> – Point color class break information consisting of three entries: class-break attribute, class-break values/ranges, and point color values. This option overrides the pointcolor option if both are provided. Class-break ranges are represented in the form of “min:max”. Class-break values/ranges and point color values are separated by cb\_delimiter, e.g. {"{"}“price”, “20:30;30:40;40:50”, “0xFF0000;0x00FF00;0x0000FF”{"}"}.</p>
                        </li>

                        <li>
                          <p><strong>cb\_pointsizes</strong> – Point size class break information consisting of three entries: class-break attribute, class-break values/ranges, and point size values. This option overrides the pointsize option if both are provided. Class-break ranges are represented in the form of “min:max”. Class-break values/ranges and point size values are separated by cb\_delimiter, e.g. {"{"}“states”, “NY;TX;CA”, “3;5;7”{"}"}.</p>
                        </li>

                        <li>
                          <p><strong>cb\_pointshapes</strong> – Point shape class break information consisting of three entries: class-break attribute, class-break values/ranges, and point shape names. This option overrides the pointshape option if both are provided. Class-break ranges are represented in the form of “min:max”. Class-break values/ranges and point shape names are separated by cb\_delimiter, e.g. {"{"}“states”, “NY;TX;CA”, “circle;square;diamond”{"}"}.</p>
                        </li>

                        <li>
                          <p><strong>cb\_delimiter</strong> – A character or string which separates per-class values in a class-break style option string. The default value is ‘;’.</p>
                        </li>

                        <li>
                          <p><strong>x\_order\_by</strong> – An expression or aggregate expression by which non-numeric x column values are sorted, e.g. “avg(price) descending”.</p>
                        </li>

                        <li>
                          <p><strong>y\_order\_by</strong> – An expression or aggregate expression by which non-numeric y column values are sorted, e.g. “avg(price)”, which defaults to “avg(price) ascending”.</p>
                        </li>

                        <li>
                          <p><strong>scale\_type\_x</strong> – Type of x axis scale. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – No scale is applied to the x axis.</p>
                            </li>

                            <li>
                              <p><strong>log</strong> – A base-10 log scale is applied to the x axis.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>

                        <li>
                          <p><strong>scale\_type\_y</strong> – Type of y axis scale. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>none</strong> – No scale is applied to the y axis.</p>
                            </li>

                            <li>
                              <p><strong>log</strong> – A base-10 log scale is applied to the y axis.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>

                        <li>
                          <p><strong>min\_max\_scaled</strong> – If this options is set to <span className="em">false</span>, this endpoint expects request’s min/max values are not yet scaled. They will be scaled according to scale\_type\_x or scale\_type\_y for response. If this options is set to <span className="em">true</span>, this endpoint expects request’s min/max values are already scaled according to scale\_type\_x/scale\_type\_y. Response’s min/max values will be equal to request’s min/max values. The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>jitter\_x</strong> – Amplitude of horizontal jitter applied to non-numeric x column values. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>jitter\_y</strong> – Amplitude of vertical jitter applied to non-numeric y column values. The default value is ‘0.0’.</p>
                        </li>

                        <li>
                          <p><strong>plot\_all</strong> – If this options is set to <span className="em">true</span>, all non-numeric column values are plotted ignoring min\_x, max\_x, min\_y and max\_y parameters. The default value is ‘false’.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Optional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>image\_encoding</strong> – Encoding to be applied to the output image. When using JSON serialization it is recommended to specify this as <span className="em">base64</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>base64</strong> – Apply base64 encoding to the output image.</p>
                            </li>

                            <li>
                              <p><strong>none</strong> – Do not apply any additional encoding to the output image.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘none’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">min\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower bound for the x column values as provided in input parameter <span className="em">min\_x</span> or calculated for non-numeric columns when plot\_all option is used.</p>
                    </div>

                    <div className="dt">max\_x (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper bound for the x column values as provided in input parameter <span className="em">max\_x</span> or calculated for non-numeric columns when plot\_all option is used.</p>
                    </div>

                    <div className="dt">min\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Lower bound for the y column values as provided in input parameter <span className="em">min\_y</span> or calculated for non-numeric columns when plot\_all option is used.</p>
                    </div>

                    <div className="dt">max\_y (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Upper bound for the y column values as provided in input parameter <span className="em">max\_y</span> or calculated for non-numeric columns when plot\_all option is used.</p>
                    </div>

                    <div className="dt">width (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Width of the image as provided in input parameter <span className="em">width</span>.</p>
                    </div>

                    <div className="dt">height (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Height of the image as provided in input parameter <span className="em">height</span>.</p>
                    </div>

                    <div className="dt">bg\_color (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Background color of the image as provided in input parameter <span className="em">bg\_color</span>.</p>
                    </div>

                    <div className="dt">image\_data (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>The generated image data.</p>
                    </div>

                    <div className="dt">axes\_info (<span className="em">dict of str to lists of str</span>) –</div>

                    <div className="dd">
                      <p>Information returned for drawing labels for the axes associated with non-numeric columns. Allowed keys are:</p>

                      <ul className="simple">
                        <li>
                          <p><strong>sorted\_x\_values</strong> – Sorted non-numeric x column value list for drawing x axis label.</p>
                        </li>

                        <li>
                          <p><strong>location\_x</strong> – X axis label positions of sorted\_x\_values in pixel coordinates.</p>
                        </li>

                        <li>
                          <p><strong>sorted\_y\_values</strong> – Sorted non-numeric y column value list for drawing y axis label.</p>
                        </li>

                        <li>
                          <p><strong>location\_y</strong> – Y axis label positions of sorted\_y\_values in pixel coordinates.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>

          <div className="dl py method">
            <div className="dt sig sig-object py" id="gpudb.GPUdb.visualize_isochrone"> <span className="sig-name descname"><span className="pre">visualize\_isochrone</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">source\_node</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_solution\_radius</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-1.0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">weights\_on\_edges</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">restrictions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">num\_levels</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">1</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">generate\_image</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">levels\_table</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">style\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">solve\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">contour\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span></div>

            <div className="dd">
              <p>Generate an image containing isolines for travel results using an existing graph. Isolines represent curves of equal cost, with cost typically referring to the time or distance assigned as the weights of the underlying graph. See <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graphs and Solvers</a> for more information on graphs.</p>
              <p><strong>Parameters</strong></p>

              <blockquote>
                <div>
                  <div className="dl">
                    <div className="dt">graph\_name (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the graph on which the isochrone is to be computed.</p>
                    </div>

                    <div className="dt">source\_node (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Starting vertex on the underlying graph from/to which the isochrones are created.</p>
                    </div>

                    <div className="dt">max\_solution\_radius (<span className="em">float</span>) –</div>

                    <div className="dd">
                      <p>Extent of the search radius around input parameter <span className="em">source\_node</span>. Set to ‘-1.0’ for unrestricted search radius. The default value is -1.0.</p>
                    </div>

                    <div className="dt">weights\_on\_edges (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Additional weights to apply to the edges of an existing graph. Weights must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS WEIGHTS\_EDGE\_ID’, or expressions, e.g., ‘ST\_LENGTH(wkt) AS WEIGHTS\_VALUESPECIFIED’. Any provided weights will be added (in the case of ‘WEIGHTS\_VALUESPECIFIED’) to or multiplied with (in the case of ‘WEIGHTS\_FACTORSPECIFIED’) the existing weight(s). The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">restrictions (<span className="em">list of str</span>) –</div>

                    <div className="dd">
                      <p>Additional restrictions to apply to the nodes/edges of an existing graph. Restrictions must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS RESTRICTIONS\_EDGE\_ID’, or expressions, e.g., ‘column/2 AS RESTRICTIONS\_VALUECOMPARED’. If <span className="em">remove\_previous\_restrictions</span> is set to <span className="em">true</span>, any provided restrictions will replace the existing restrictions. If <span className="em">remove\_previous\_restrictions</span> is set to <span className="em">false</span>, any provided restrictions will be added (in the case of ‘RESTRICTIONS\_VALUECOMPARED’) to or replaced (in the case of ‘RESTRICTIONS\_ONOFFCOMPARED’). The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
                    </div>

                    <div className="dt">num\_levels (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Number of equally-separated isochrones to compute. The default value is 1.</p>
                    </div>

                    <div className="dt">generate\_image (<span className="em">bool</span>) –</div>

                    <div className="dd">
                      <p>If set to <span className="em">true</span>, generates a PNG image of the isochrones in the response. Allowed values are:</p>

                      <ul className="simple">
                        <li>
                          <p>True</p>
                        </li>

                        <li>
                          <p>False</p>
                        </li>
                      </ul>

                      <p>The default value is True.</p>
                    </div>

                    <div className="dt">levels\_table (<span className="em">str</span>) –</div>

                    <div className="dd">
                      <p>Name of the table to output the isochrones to, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. The table will contain levels and their corresponding WKT geometry. If no value is provided, the table is not generated. The default value is ‘’.</p>
                    </div>

                    <div className="dt">style\_options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Various style related options of the isochrone image. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>line\_size</strong> – The width of the contour lines in pixels. The default value is ‘3’. The minimum allowed value is ‘0’. The maximum allowed value is ‘20’.</p>
                        </li>

                        <li>
                          <p><strong>color</strong> – Color of generated isolines. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). If alpha is specified and flooded contours are enabled, it will be used for as the transparency of the latter. The default value is ‘FF696969’.</p>
                        </li>

                        <li>
                          <p><strong>bg\_color</strong> – When input parameter <span className="em">generate\_image</span> is set to <span className="em">true</span>, background color of the generated image. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). The default value is ‘00000000’.</p>
                        </li>

                        <li>
                          <p><strong>text\_color</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, color for the labels. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). The default value is ‘FF000000’.</p>
                        </li>

                        <li>
                          <p><strong>colormap</strong> – Colormap for contours or fill-in regions when applicable. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>jet</p>
                            </li>

                            <li>
                              <p>accent</p>
                            </li>

                            <li>
                              <p>afmhot</p>
                            </li>

                            <li>
                              <p>autumn</p>
                            </li>

                            <li>
                              <p>binary</p>
                            </li>

                            <li>
                              <p>blues</p>
                            </li>

                            <li>
                              <p>bone</p>
                            </li>

                            <li>
                              <p>brbg</p>
                            </li>

                            <li>
                              <p>brg</p>
                            </li>

                            <li>
                              <p>bugn</p>
                            </li>

                            <li>
                              <p>bupu</p>
                            </li>

                            <li>
                              <p>bwr</p>
                            </li>

                            <li>
                              <p>cmrmap</p>
                            </li>

                            <li>
                              <p>cool</p>
                            </li>

                            <li>
                              <p>coolwarm</p>
                            </li>

                            <li>
                              <p>copper</p>
                            </li>

                            <li>
                              <p>cubehelix</p>
                            </li>

                            <li>
                              <p>dark2</p>
                            </li>

                            <li>
                              <p>flag</p>
                            </li>

                            <li>
                              <p>gist\_earth</p>
                            </li>

                            <li>
                              <p>gist\_gray</p>
                            </li>

                            <li>
                              <p>gist\_heat</p>
                            </li>

                            <li>
                              <p>gist\_ncar</p>
                            </li>

                            <li>
                              <p>gist\_rainbow</p>
                            </li>

                            <li>
                              <p>gist\_stern</p>
                            </li>

                            <li>
                              <p>gist\_yarg</p>
                            </li>

                            <li>
                              <p>gnbu</p>
                            </li>

                            <li>
                              <p>gnuplot2</p>
                            </li>

                            <li>
                              <p>gnuplot</p>
                            </li>

                            <li>
                              <p>gray</p>
                            </li>

                            <li>
                              <p>greens</p>
                            </li>

                            <li>
                              <p>greys</p>
                            </li>

                            <li>
                              <p>hot</p>
                            </li>

                            <li>
                              <p>hsv</p>
                            </li>

                            <li>
                              <p>inferno</p>
                            </li>

                            <li>
                              <p>magma</p>
                            </li>

                            <li>
                              <p>nipy\_spectral</p>
                            </li>

                            <li>
                              <p>ocean</p>
                            </li>

                            <li>
                              <p>oranges</p>
                            </li>

                            <li>
                              <p>orrd</p>
                            </li>

                            <li>
                              <p>paired</p>
                            </li>

                            <li>
                              <p>pastel1</p>
                            </li>

                            <li>
                              <p>pastel2</p>
                            </li>

                            <li>
                              <p>pink</p>
                            </li>

                            <li>
                              <p>piyg</p>
                            </li>

                            <li>
                              <p>plasma</p>
                            </li>

                            <li>
                              <p>prgn</p>
                            </li>

                            <li>
                              <p>prism</p>
                            </li>

                            <li>
                              <p>pubu</p>
                            </li>

                            <li>
                              <p>pubugn</p>
                            </li>

                            <li>
                              <p>puor</p>
                            </li>

                            <li>
                              <p>purd</p>
                            </li>

                            <li>
                              <p>purples</p>
                            </li>

                            <li>
                              <p>rainbow</p>
                            </li>

                            <li>
                              <p>rdbu</p>
                            </li>

                            <li>
                              <p>rdgy</p>
                            </li>

                            <li>
                              <p>rdpu</p>
                            </li>

                            <li>
                              <p>rdylbu</p>
                            </li>

                            <li>
                              <p>rdylgn</p>
                            </li>

                            <li>
                              <p>reds</p>
                            </li>

                            <li>
                              <p>seismic</p>
                            </li>

                            <li>
                              <p>set1</p>
                            </li>

                            <li>
                              <p>set2</p>
                            </li>

                            <li>
                              <p>set3</p>
                            </li>

                            <li>
                              <p>spectral</p>
                            </li>

                            <li>
                              <p>spring</p>
                            </li>

                            <li>
                              <p>summer</p>
                            </li>

                            <li>
                              <p>terrain</p>
                            </li>

                            <li>
                              <p>viridis</p>
                            </li>

                            <li>
                              <p>winter</p>
                            </li>

                            <li>
                              <p>wistia</p>
                            </li>

                            <li>
                              <p>ylgn</p>
                            </li>

                            <li>
                              <p>ylgnbu</p>
                            </li>

                            <li>
                              <p>ylorbr</p>
                            </li>

                            <li>
                              <p>ylorrd</p>
                            </li>
                          </ul>

                          <p>The default value is ‘jet’.</p>
                        </li>
                      </ul>
                    </div>

                    <div className="dt">solve\_options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Solver specific parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>remove\_previous\_restrictions</strong> – Ignore the restrictions applied to the graph during the creation stage and only use the restrictions specified in this request if set to <span className="em">true</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>restriction\_threshold\_value</strong> – Value-based restriction comparison. Any node or edge with a ‘RESTRICTIONS\_VALUECOMPARED’ value greater than the <span className="em">restriction\_threshold\_value</span> will not be included in the solution.</p>
                        </li>

                        <li>
                          <p><strong>uniform\_weights</strong> – When specified, assigns the given value to all the edges in the graph. Note that weights provided in input parameter <span className="em">weights\_on\_edges</span> will override this value.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">contour\_options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Contour specific parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>projection</strong> – Spatial Reference System (i.e. EPSG Code). Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>3857</p>
                            </li>

                            <li>
                              <p>102100</p>
                            </li>

                            <li>
                              <p>900913</p>
                            </li>

                            <li>
                              <p>EPSG:4326</p>
                            </li>

                            <li>
                              <p>PLATE\_CARREE</p>
                            </li>

                            <li>
                              <p>EPSG:900913</p>
                            </li>

                            <li>
                              <p>EPSG:102100</p>
                            </li>

                            <li>
                              <p>EPSG:3857</p>
                            </li>

                            <li>
                              <p>WEB\_MERCATOR</p>
                            </li>
                          </ul>

                          <p>The default value is ‘PLATE\_CARREE’.</p>
                        </li>

                        <li>
                          <p><strong>width</strong> – When input parameter <span className="em">generate\_image</span> is set to <span className="em">true</span>, width of the generated image. The default value is ‘512’.</p>
                        </li>

                        <li>
                          <p><strong>height</strong> – When input parameter <span className="em">generate\_image</span> is set to <span className="em">true</span>, height of the generated image. If the default value is used, the <span className="em">height</span> is set to the value resulting from multiplying the aspect ratio by the <span className="em">width</span>. The default value is ‘-1’.</p>
                        </li>

                        <li>
                          <p><strong>search\_radius</strong> – When interpolating the graph solution to generate the isochrone, neighborhood of influence of sample data (in percent of the image/grid). The default value is ‘20’.</p>
                        </li>

                        <li>
                          <p><strong>grid\_size</strong> – When interpolating the graph solution to generate the isochrone, number of subdivisions along the x axis when building the grid (the y is computed using the aspect ratio of the output image). The default value is ‘100’.</p>
                        </li>

                        <li>
                          <p><strong>color\_isolines</strong> – Color each isoline according to the colormap; otherwise, use the foreground color. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>add\_labels</strong> – If set to <span className="em">true</span>, add labels to the isolines. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>labels\_font\_size</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, size of the font (in pixels) to use for labels. The default value is ‘12’.</p>
                        </li>

                        <li>
                          <p><strong>labels\_font\_family</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, font name to be used when adding labels. The default value is ‘arial’.</p>
                        </li>

                        <li>
                          <p><strong>labels\_search\_window</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, a search window is used to rate the local quality of each isoline. Smooth, continuous, long stretches with relatively flat angles are favored. The provided value is multiplied by the <span className="em">labels\_font\_size</span> to calculate the final window size. The default value is ‘4’.</p>
                        </li>

                        <li>
                          <p><strong>labels\_intralevel\_separation</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, this value determines the distance (in multiples of the <span className="em">labels\_font\_size</span>) to use when separating labels of different values. The default value is ‘4’.</p>
                        </li>

                        <li>
                          <p><strong>labels\_interlevel\_separation</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, this value determines the distance (in percent of the total window size) to use when separating labels of the same value. The default value is ‘20’.</p>
                        </li>

                        <li>
                          <p><strong>labels\_max\_angle</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, maximum angle (in degrees) from the vertical to use when adding labels. The default value is ‘60’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>

                    <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional parameters. Allowed keys are:</p>

                      <ul>
                        <li>
                          <p><strong>solve\_table</strong> – Name of the table to host intermediate solve results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. This table will contain the position and cost for each vertex in the graph. If the default value is used, a temporary table is created and deleted once the solution is calculated. The default value is ‘’.</p>
                        </li>

                        <li>
                          <p><strong>is\_replicated</strong> – If set to <span className="em">true</span>, replicate the <span className="em">solve\_table</span>. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p>true</p>
                            </li>

                            <li>
                              <p>false</p>
                            </li>
                          </ul>

                          <p>The default value is ‘true’.</p>
                        </li>

                        <li>
                          <p><strong>data\_min\_x</strong> – Lower bound for the x values. If not provided, it will be computed from the bounds of the input data.</p>
                        </li>

                        <li>
                          <p><strong>data\_max\_x</strong> – Upper bound for the x values. If not provided, it will be computed from the bounds of the input data.</p>
                        </li>

                        <li>
                          <p><strong>data\_min\_y</strong> – Lower bound for the y values. If not provided, it will be computed from the bounds of the input data.</p>
                        </li>

                        <li>
                          <p><strong>data\_max\_y</strong> – Upper bound for the y values. If not provided, it will be computed from the bounds of the input data.</p>
                        </li>

                        <li>
                          <p><strong>concavity\_level</strong> – Factor to qualify the concavity of the isochrone curves. The lower the value, the more convex (with ‘0’ being completely convex and ‘1’ being the most concave). The default value is ‘0.5’. The minimum allowed value is ‘0’. The maximum allowed value is ‘1’.</p>
                        </li>

                        <li>
                          <p><strong>use\_priority\_queue\_solvers</strong> – Sets the solver methods explicitly if true. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>true</strong> – Uses the solvers scheduled for ‘shortest\_path’ and ‘inverse\_shortest\_path’ based on <span className="em">solve\_direction</span>.</p>
                            </li>

                            <li>
                              <p><strong>false</strong> – Uses the solvers ‘priority\_queue’ and ‘inverse\_priority\_queue’ based on <span className="em">solve\_direction</span>.</p>
                            </li>
                          </ul>

                          <p>The default value is ‘false’.</p>
                        </li>

                        <li>
                          <p><strong>solve\_direction</strong> – Specify whether we are going to the source node, or starting from it. Allowed values are:</p>

                          <ul className="simple">
                            <li>
                              <p><strong>from\_source</strong> – Shortest path to get to the source (inverse Dijkstra).</p>
                            </li>

                            <li>
                              <p><strong>to\_source</strong> – Shortest path to source (Dijkstra).</p>
                            </li>
                          </ul>

                          <p>The default value is ‘from\_source’.</p>
                        </li>
                      </ul>

                      <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
                    </div>
                  </div>
                </div>
              </blockquote>

              <p><strong>Returns</strong></p>

              <blockquote>
                <div>
                  <p>A dict with the following entries–</p>

                  <div className="dl simple">
                    <div className="dt">width (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Width of the image as provided in <span className="em">width</span>.</p>
                    </div>

                    <div className="dt">height (<span className="em">int</span>) –</div>

                    <div className="dd">
                      <p>Height of the image as provided in <span className="em">height</span>.</p>
                    </div>

                    <div className="dt">bg\_color (<span className="em">long</span>) –</div>

                    <div className="dd">
                      <p>Background color of the image as provided in <span className="em">bg\_color</span>.</p>
                    </div>

                    <div className="dt">image\_data (<span className="em">bytes</span>) –</div>

                    <div className="dd">
                      <p>Generated contour image data.</p>
                    </div>

                    <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">solve\_info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>

                    <div className="dt">contour\_info (<span className="em">dict of str to str</span>) –</div>

                    <div className="dd">
                      <p>Additional information.</p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
