Troubleshooting¶
First, run the built-in health check to inspect binaries, parsers, and connection profiles:
:checkhealth vim-teradata
bteq: command not found¶
- Cause: BTEQ is not available on
$PATH. - Fix: Install TTU and ensure
bteqis on your$PATH. Verify in your shell withwhich bteq.
tdwallet ... no entry / Authentication failures¶
- Cause: No password is stored for the configured user profile in
tdwallet. - Fix: Run
tdwallet add <USER>on your host machine to store the password, then retry.
:TDSync errors with permission denied on dbc.columnsv¶
- Cause: The current user lacks read permission on system catalog views.
- Fix: Grant
SELECTondbc.columnsvto the user configured for:TDSync. This is the only database privilege required by the plugin. - If
:TDSyncis very slow on large systems, consider filtering catalogs usingfilter_db.
Diagnostics or syntax highlighting not showing¶
- Cause: The
teradataTree-sitter parser is not installed or not detected. - Fix: Run
:checkhealth treesitter(confirm that theteradataparser is listed) and follow the parser installation steps in Tree-sitter guide. Also ensure your filetype matchesftorsql_detection.
Completion returns no suggestions¶
- Confirm a successful
:TDSynchas run. - Confirm the cache directory contains JSON files:
:echo stdpath('data') . '/teradata' - With
nvim-cmp, verifytd_sql_completionis included in your source list. - If not using a completion plugin, press
<C-X><C-O>in insert mode to trigger native omnifunc.
:TDR does nothing¶
- Cause: Missing picker backend or search binaries.
- Fix: Install one of the supported pickers (
fzf-lua,snacks.nvim,telescope.nvim,fzf.vim, or configurepicker = 'native'), and ensure bothripgrep(rg) andbatare installed on$PATH.
Results are truncated¶
- Increase
retlimitin yoursetup()configuration. Note that very large exports (> 10k rows) should preferably use TPT.
A command in a persistent session never finishes¶
- Cause: BTEQ is still waiting for the end of a SQL statement (due to a missing semicolon
;, unclosed/* ... */comment, or open quote), which swallows boundary markers. - Fix: Close the session with
:TDSession!and correct the statement syntax. You can also configuretimeout_msin your setup options so hanging commands terminate automatically.
Object 'vt_xxx' does not exist after a re-run or an edit¶
- Cause: The volatile table was created in a persistent session that has since been closed (e.g. buffer was wiped,
:TDSession!was executed, a command timed out, or the connection dropped). - Fix: Open a fresh persistent session with
:TDSessionand re-execute theCREATE VOLATILE TABLEstatement.
BTEQ session could not log on¶
- Cause: Missing
tdwalletpassword entry, invalidtdpid, or wrong authentication mechanismlog_mech. - Fix: Run
tdwallet add <USER>on your host and verify your connection profile parameters in:checkhealth vim-teradata.
"BTEQ reported an error but printed no message"¶
- Cause: The request failed (BTEQ error code != 0), but BTEQ wrote no
*** Failure/*** Errorline on standard output or error streams. - Fix: Run the query once outside of a persistent session (close it with
:TDSession!) to view the raw BTEQ output, and check your TTU version compatibility.