Configure Table Metadata
After you build a Kumo Relational schema, review the inferred metadata for every table. Access a table through schema["table_name"] and a column through schema["table_name"]["column_name"]. You do not need to construct table or column objects directly.
Prerequisites
Before you start, build a schema as described in Build a Schema.
Inspect Inferred Metadata
Inspect the schema and an inferred table and column before changing their metadata:
Assign each table to a variable for use in the following procedures:
A table built with Schema.from_source() holds column metadata and keys, but no rows. It reports its column count the same way, with no row count to show. You still inspect and correct its columns the same way as the columns of a table built with Schema.from_data().
Configure Keys and Timestamps
Set the primary key for each table and the time column explicitly:
The time column should represent when an event became available to the prediction workflow. Kumo Relational has no supported way to also declare when a row stopped being valid. Refer to Time Columns.
Tables can use composite primary keys when one column is not sufficient to identify a row:
Every component must be present, non-null, and use a foldable physical type. A floating-point column cannot be part of a composite key. Kumo Relational refuses a composite key if it has duplicates beyond a small tolerance, or if any component is null.
Correct Semantic Types
Assign the ID semantic type to identifier columns and the timestamp semantic type to the time column:
A semantic type assignment must be compatible with the column’s physical data type. An incompatible assignment raises immediately rather than being accepted and refused later. Refer to Data Types and Semantic Types for the supported combinations.
Assigning a table’s primary_key automatically types every component ID, and assigning time_column automatically types that column timestamp. You still need to correct any other column inference got wrong, such as an identifier-shaped number that should be categorical.
Metadata Checklist
Confirm the following:
- Each table’s primary key values are non-null and unique.
- Foreign-key columns use values and physical data types that are compatible with those of the referenced keys.
- The time column represents when an event became available to the prediction workflow.
- Identifier columns use the
IDsemantic type. - Low-cardinality labels use the
categoricalsemantic type. Free-form language has no semantic type the model can read, so leave it out of the request.
Inspect the result after making corrections:
Next Steps
Continue to Define Relationships to review and define relationships.