-
Notifications
You must be signed in to change notification settings - Fork 4
Tableau TDVT Quick Setup
Reference to Tableau TDVT setup instructions: https://tableau.github.io/connector-plugin-sdk/docs/tdvt
These steps have been verified to work with:
- ODBC connector actian_odbc.taco (Manifest-Version: 1.0)
- JDBC connector actian_jdbc.taco (Manifest-Version: 1.0)
- Tableau Desktop 2022.2
- Actian Ingres 11.2
Assumptions:
- The git client is installed locally on Windows.
- Tableau Desktop is installed.
Note the distinction between the "base" directory and the "workspace" directory. The workspace directory needs to be a subdirectory of the base directory.
-
Create a base directory and change to this directory.
-
Create and activate a python virtual environment.
python -m venv .venv
.venv\Scripts\activate.bat
(Optional) Update pip version: python -m pip install --upgrade pip
- Clone the connector-plugin-sdk.
git clone https://github.com/tableau/connector-plugin-sdk.git
-
Change to directory
connector-plugin-sdk/tdvt
-
Create archive package (ignore "Error while finding module specification...").
python -m setup.py sdist --formats gztar
- Change to the
dist
directory and install the test suite.
python -m pip install tdvt-2.7.0.tar.gz
- Verify the tdvt package is installed.
python -m pip list
-
Ensure tdvt database data is loaded. See instructions (based on original tests).
-
Return to the base directory and create a workspace directory (use any unique name).
-
Change into the workspace directory and run remaining commands from the workspace directory.
-
Set up TDVT workspace with empty environment.
python -m tdvt.tdvt action --setup
- Set the path to tabquerytool in
<workspace directory>/config/tdvt/tdvt_override.ini
Do not use quotes in the ini file for the path to tabquerytool.exe
e.g.
TAB_CLI_EXE_X64 = C:\Program Files\Tableau\Tableau 2022.2\bin\tabquerytool.exe
-
Start Tableau Desktop and follow connector_plugin-sdk instructions under section "Test a new data source".
a. Save tds files to<workspace>/tds
directory.
b. Use data source file names:cast_calcs.<dsname>.tds
,Staples.<dsname>.tds
-
Run the TDVT
generate
command from workspace directory to update config files.
python -m tdvt.tdvt run <dsname> --generate
- Add the data source.
Set password now (or optionally later).
Skip logical config for now. Dealt with in next step.
python -m tdvt.tdvt action --add_ds <dsname>
- Edit
config/<dsname>.ini
file and add the logical config to use (if one not chosen already).
# Example
LogicalQueryFormat = mhabiger_Camel
[LogicalConfig]
Name = mhabiger_Camel
tablename = $dsName
tablePrefix = [mhabiger].
Reminder: Tests must be generated and run from the workspace directory.
- Re-Generate tests
python -m tdvt.tdvt run <dsname> --generate
- List tests
python -m tdvt.tdvt list <dsname>
- Run smoke tests
python -m tdvt.tdvt run <dsname> --verify
- Run full test suite
python -m tdvt.tdvt run <dsname>