Introducing Agent Safe Governance for the AI Era

bteqImport

Last updated: June 9, 2026

Loads data from a delimited file on the BTEQ execution host into a Teradata table. Generates the complete BTEQ import sequence (.IMPORT, .REPEAT, USING, and INSERT) so you do not need to hand-write the multi-command block in a <sql> element.

Getting the USING(...) clause wrong can silently corrupt data. This change type builds it from structured column definitions, reducing the risk of type mismatches.

Note: This change type does not support automatic rollback.

Available attributes

Attribute

Type

Required

Description

file

String

Yes

Absolute path to the input file on the BTEQ execution host. Must not contain newline characters.

tableName

String

Yes

Target table for the INSERT.

schemaName

String

No

Database or schema qualifier.

format

String

No

Import format. In VARTEXT mode, columns are read as delimited text, declared as VARCHAR in the USING clause, and non-VARCHAR types are cast in the generated VALUES clause. In DATA mode, columns use native types directly from a binary file produced by BTEQ .EXPORT DATA. Accepted values: VARTEXT or DATA. Default: VARTEXT.

delimiter

String

No

Field delimiter character. Applies to VARTEXT mode only. Default: ,.

repeatCount

String

No

Number of rows to import. Use * for all rows, or a positive integer to limit the import. Default: *.

Column nested attributes

Each <pro-teradata:column> element defines a column in the import file and its target data type.

Attribute

Type

Required

Description

name

String

Yes

Column name. Must match a column in the target table.

type

String

Yes

Teradata data type. In VARTEXT mode, non-VARCHAR types (e.g., INTEGER, DATE) are declared as VARCHAR buffers in the USING clause and cast to this type in the generated VALUES clause. In DATA mode, the native type is used directly.

format

String

No

Date or timestamp format string for casting in VARTEXT mode (e.g., YYYY-MM-DD).

Example code

Be sure to replace your_table, your_author, and your_file_path with your actual values.

loading

loading

loading

loading