Flow Schema Hints | VantageCloud Lake - Schema Hints - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Schema hints override inferred target column data types. Teradata recommends schema hints in the following situations:

Situation Where to Use Schema Hints
Flow created a target table that does not meet your expectations. Use schema hints for columns that did not map as expected.

For example, if Flow infers VARCHAR(134) but the column value can exceed 134 characters, use a schema hint to specify VARCHAR(200).

You know exactly how you want to map your input data to the target table. Use a schema hint for every column.
You specify an existing target table. Use schema hints for columns whose types differ from those that Flow infers (see Schema Inference).

This practice helps prevent load errors.

Specify schema hints in load directives, which are in Source Details > Advanced Settings. Enter the column names and types. For example:

column name: type:
ticket_cost_usd DECIMAL(4,2)
showing_time TIME(0)
movie_release_date DATE FORMAT 'YY-MM-DD'