Introducing Agent Safe Governance for the AI Era

Use native executors with Teradata

Last updated: June 9, 2026

The Teradata BTEQ native executor runs your SQL through the Teradata BTEQ client instead of the standard JDBC connection. This captures row counts, elapsed time, query results, and macro output that JDBC cannot return.

Before you begin

  • BTEQ client — Install the Teradata Tools and Utilities (TTU) package from the Teradata downloads page. Ensure bteq is available on your system PATH.

Procedure

1

Verify BTEQ is installed

Check that BTEQ is available on your system PATH.

which bteq

If BTEQ is not found, install the Teradata Tools and Utilities (TTU) package from the Teradata downloads page.

2

Configure your liquibase.properties

Your connection settings should already be in liquibase.properties from the connect guide. If BTEQ is not on your PATH, add the path explicitly:

liquibase.bteq.path=/opt/teradata/client/bin/bteq
3

Add runWith:bteq to a changeset

Add runWith:bteq to the changeset header in your changelog file.

Be sure to:

  • Replace your_table with your actual Teradata table name

loading

loading

loading

loading
4

Run liquibase update

Be sure to:

  • Replace validate-deployment.sql with your changelog filename

liquibase update --changelog-file=validate-deployment.sql

The output includes row counts and query results:

loading

Troubleshooting

BTEQ not found

Error:

ERROR: BTEQ executable not found in PATH

Cause: The BTEQ client is not installed or not on your system PATH.

Solution:

1. Verify BTEQ is installed: which bteq

2. If BTEQ is installed in a non-standard location, configure the path explicitly: liquibase.bteq.path=/opt/teradata/client/bin/bteq