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
bteqis available on your system PATH.
Procedure
Verify BTEQ is installed
Check that BTEQ is available on your system PATH.
which bteqIf BTEQ is not found, install the Teradata Tools and Utilities (TTU) package from the Teradata downloads page.
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/bteqIf you haven't set up a connection yet, see Connect to Teradata with Liquibase Using TD2 Authentication or Connect to Teradata with Liquibase Using LDAP Authentication before continuing.
Add runWith:bteq to a changeset
Add runWith:bteq to the changeset header in your changelog file.
Be sure to:
Replace
your_tablewith your actual Teradata table name
Run liquibase update
Be sure to:
Replace
validate-deployment.sqlwith your changelog filename
liquibase update --changelog-file=validate-deployment.sqlThe output includes row counts and query results:
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