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

# add_known_type_from_table

&#x20;add\_known\_type\_from\_table(table\_name, type\_descriptor)[\[source\]](https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L9962)

Sets what records of a table’s type decode with, as [`add_known_type()`](https://docs.kinetica.com/content/api/python/source/gpudb/add-known-type#gpudb.GPUdb.add_known_type), finding the type out from the table. A class is mapped to the table’s type; a `TypeObjectMap` or [`GPUdbRecordType`](https://docs.kinetica.com/content/api/python/source/gpudbrecordtype#gpudb.GPUdbRecordType) must have the table’s columns, in its order and of its types.**Parameters**

table\_name (str) –

The table.

type\_descriptor –

As [`add_known_type()`](https://docs.kinetica.com/content/api/python/source/gpudb/add-known-type#gpudb.GPUdb.add_known_type) takes it.

**Returns**

The table’s type ID.

**Raises**

GPUdbException –

If the table cannot be shown, holds records of more than one type, or its type is not the one given.


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