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

# DynamicSchemaData

> DynamicSchemaData — Kinetica Node.js API

<div className="kinetica-typedoc">
  <div className="tsd-page-title" />

  <div className="section tsd-panel tsd-comment">
    <div className="tsd-comment tsd-typography">
      <p>Decoded payload of an endpoint that returns a dynamic schema, such as execute\_sql or aggregate\_group\_by.</p>
      <p>Always present on the responses that declare it: the client decodes the payload on every such response before handing it back, so consumers never need to guard the field.</p>
      <p>A statement that returns no result set -- DDL such as CREATE TABLE ... AS SELECT -- still carries the field, but with no columns: read <code>count\_affected</code> for those rather than <code>column\_headers</code>.</p>
      <p>The values are column-major, not a list of records: <code>column\_1</code> holds every value for the column named by <code>column\_headers\[0]</code>, <code>column\_2</code> for <code>column\_headers\[1]</code>, and so on.</p>
    </div>

    <div className="tsd-comment tsd-typography">
      <div className="tsd-tag-example">
        <h4 className="tsd-anchor-link" id="example">Example</h4>

        <div>
          ```
          const response = await gpudb.execute_sql('SELECT category FROM t', 0, 10, '', [], {});
          const data = response.data;
          // data.column_headers -> ['category']
          // data.column_1       -> ['A', 'B']
          ```
        </div>
      </div>
    </div>
  </div>

  <div className="tsd-signature"><span className="tsd-signature-keyword">interface</span> <span className="tsd-kind-interface">DynamicSchemaData</span> <span className="tsd-signature-symbol">{"{"}</span><br /> <a className="tsd-kind-property" href="#column_datatypes">column\_datatypes</a><span className="tsd-signature-symbol">:</span> <span className="tsd-signature-type">string</span><span className="tsd-signature-symbol">\[]</span><span className="tsd-signature-symbol">;</span><br /> <a className="tsd-kind-property" href="#column_headers">column\_headers</a><span className="tsd-signature-symbol">:</span> <span className="tsd-signature-type">string</span><span className="tsd-signature-symbol">\[]</span><span className="tsd-signature-symbol">;</span><br /> <span className="tsd-signature-symbol">\[</span><span className="tsd-kind-index-signature">column</span><span className="tsd-signature-symbol">:</span> <span className="tsd-signature-type">string</span><span className="tsd-signature-symbol">]:</span> <span className="tsd-signature-type">any</span><span className="tsd-signature-symbol">;</span><br /><span className="tsd-signature-symbol">{"}"}</span></div>

  <div className="section tsd-panel">
    <h4 className="tsd-before-signature">Indexable</h4>

    <ul className="tsd-signatures">
      <li className="tsd-index-signature">
        <div className="tsd-signature"><span className="tsd-signature-symbol">\[</span><span className="tsd-kind-parameter">column</span>: <span className="tsd-signature-type">string</span><span className="tsd-signature-symbol">]:</span> <span className="tsd-signature-type">any</span></div>

        <div className="tsd-comment tsd-typography">
          <p>Column values, keyed <code>column\_1</code> through <code>column\_N</code></p>
        </div>
      </li>
    </ul>
  </div>

  <div className="aside tsd-sources">
    <ul>
      <li>Defined in <a href="https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L31">src/types.ts:31</a></li>
    </ul>
  </div>

  <div className="section tsd-panel-group tsd-index-group">
    <div className="section tsd-panel tsd-index-panel">
      <div className="details tsd-index-content tsd-accordion" open="">
        <div className="summary tsd-accordion-summary tsd-index-summary">
          <h5 className="tsd-index-heading uppercase">Index</h5>
        </div>

        <div className="tsd-accordion-details">
          <div className="section tsd-index-section">
            <h3 className="tsd-index-heading tsd-anchor-link" id="properties">Properties</h3>
            <div className="tsd-index-list"><a href="#column_datatypes" className="tsd-index-link"><span>column\_datatypes</span></a> <a href="#column_headers" className="tsd-index-link"><span>column\_headers</span></a> </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div className="details tsd-panel-group tsd-member-group tsd-accordion" open="">
    <div className="summary tsd-accordion-summary" data-key="section-Properties">
      <h2 className="tsd-anchor-link" id="properties-1">Properties</h2>
    </div>

    <div className="section">
      <div className="section tsd-panel tsd-member">
        <h3 className="tsd-anchor-link" id="column_datatypes"><span>column\_datatypes</span></h3>
        <div className="tsd-signature"><span className="tsd-kind-property">column\_datatypes</span><span className="tsd-signature-symbol">:</span> <span className="tsd-signature-type">string</span><span className="tsd-signature-symbol">\[]</span></div>

        <div className="tsd-comment tsd-typography">
          <p>Data type of each column, in order</p>
        </div>

        <div className="aside tsd-sources">
          <ul>
            <li>Defined in <a href="https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L35">src/types.ts:35</a></li>
          </ul>
        </div>
      </div>

      <div className="section tsd-panel tsd-member">
        <h3 className="tsd-anchor-link" id="column_headers"><span>column\_headers</span></h3>
        <div className="tsd-signature"><span className="tsd-kind-property">column\_headers</span><span className="tsd-signature-symbol">:</span> <span className="tsd-signature-type">string</span><span className="tsd-signature-symbol">\[]</span></div>

        <div className="tsd-comment tsd-typography">
          <p>Name of each column, in order</p>
        </div>

        <div className="aside tsd-sources">
          <ul>
            <li>Defined in <a href="https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L33">src/types.ts:33</a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.