> ## 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.

# get_known_type

<div className="kinetica-pydoc">
  <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><a href="https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L8070"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></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>

      <div className="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>
      </div>

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

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