Skip to content

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 bteq is on your $PATH. Verify in your shell with which 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 SELECT on dbc.columnsv to the user configured for :TDSync. This is the only database privilege required by the plugin.
  • If :TDSync is very slow on large systems, consider filtering catalogs using filter_db.

Diagnostics or syntax highlighting not showing

  • Cause: The teradata Tree-sitter parser is not installed or not detected.
  • Fix: Run :checkhealth treesitter (confirm that the teradata parser is listed) and follow the parser installation steps in Tree-sitter guide. Also ensure your filetype matches ft or sql_detection.

Completion returns no suggestions

  1. Confirm a successful :TDSync has run.
  2. Confirm the cache directory contains JSON files:
    :echo stdpath('data') . '/teradata'
    
  3. With nvim-cmp, verify td_sql_completion is included in your source list.
  4. 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 configure picker = 'native'), and ensure both ripgrep (rg) and bat are installed on $PATH.

Results are truncated

  • Increase retlimit in your setup() 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 configure timeout_ms in 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 :TDSession and re-execute the CREATE VOLATILE TABLE statement.

BTEQ session could not log on

  • Cause: Missing tdwallet password entry, invalid tdpid, or wrong authentication mechanism log_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 / *** Error line 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.