D toc |
---|
By default, the
D s platform | ||
---|---|---|
|
Data types are inferred by the
D s platform |
---|
- Imported datasets are originally loaded.
- A new transformation step is added in a recipe.
- Non-inferred types are imported as String type.
Tip |
---|
Tip: You can use the Change Column Type transformation to override the data type inferred for a column. However, if a new transformation step is added, the column data type is re-inferred, which may override your specific typing. You should consider applying Change Column Type transformations as late as possible in your recipes. |
For more information on how the
D s platform |
---|
Configure Type Inference for Schematized Sources
Optionally, you can choose to disable type inference for schematized sources. A schematized source includes column data type information as part of the object definition. The following schematized sources are supported for import into the
D s platform |
---|
All JDBC sources
Info NOTE: You cannot disable type inference for Oracle sources. This is a known issue.
- Hive
- Redshift
- Avro file format
Enable
Type inference on schematized sources | Setting | Behavior | ||
---|---|---|---|---|
Enabled | "webapp.connectivity.disableRelationalTypeInference": false, | All imported datasets from schematized sources are automatically inferred by the type system in the
The inferred data types may be different from those in the source. When the dataset is loaded, data types can be applied to individual columns through the application. Users can apply overrides for:
| ||
Disabled | "webapp.connectivity.disableRelationalTypeInference": true, | For schematized data sources, type inference is not automatically inferred by
Data type information is taken from the source schema and applied where applicable to the dataset. If there is no corresponding data type in the
Users can apply overrides for:
|
Please perform the following configuration change to disable type inference of schematized sources at the global level.
Steps:
D s config Change the following configuration setting to
true
:Code Block "webapp.connectivity.disableRelationalTypeInference": false,
- Save your changes.
Use
In the application, type inference can be applied to your imported data through the following mechanisms.
Define for individual connections
You can specify individual connections to apply or not apply
D s item | ||
---|---|---|
|
Info | ||||
---|---|---|---|---|
NOTE: When Default Column Data Type Inference is disabled for an individual connection,
|
For more information, see Create Connection Window.
Specify on dataset import
When type inference has been disabled globally for schematized sources, you can choose to enable or disable it for individual source import.
Tip | |
---|---|
Tip: To compare how data types are imported from the schematized source or when applied by the
|
In the Import Data page, click Edit Settings on the data source card.
For more information, see Import Data Page.
Configure Type Inference in the Data Grid
Type inference is automatically enabled in the data grid. It cannot be disabled.
Tip | ||||
---|---|---|---|---|
Tip: You can override the
|
When a new transformation step is applied, each column is re-inferred for its
D s item | ||
---|---|---|
|
Type Inference on Export
When you generate results, the current data types in the data grid are applied to the generated results.
If the publishing destination is a schematized environment, the generated results are written to the target environment based on the environment type. These data type mappings cannot be modified.
For more information on output types, see Type Conversions.