Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
ODBC: Change Tableau connector version (#622)
Browse files Browse the repository at this point in the history
* changing version of Tableau connector

* change driver version

* add tableau doc

* doc update

* doc update

* update user docs

* nit
  • Loading branch information
rupal-bq authored Jul 28, 2020
1 parent 9dac0ac commit e370ce9
Show file tree
Hide file tree
Showing 17 changed files with 79 additions and 11 deletions.
Binary file added sql-odbc/docs/user/img/tableau_columns_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/user/img/tableau_data_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/user/img/tableau_dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/user/img/tableau_download_taco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/user/img/tableau_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/user/img/tableau_select_table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/user/img/tableau_table_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sql-odbc/docs/user/microsoft_excel_support.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Microsoft Excel
# Connecting Open Distro For ElasticSearch to Microsoft Excel on Windows

## Prerequisites

Expand Down
2 changes: 1 addition & 1 deletion sql-odbc/docs/user/microsoft_excel_support_mac.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Micosoft Excel on Mac OS
# Connecting Open Distro For ElasticSearch to Micosoft Excel on Mac OS

## Prerequisites

Expand Down
2 changes: 1 addition & 1 deletion sql-odbc/docs/user/power_bi_support.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Microsoft Power BI Desktop
# Connecting Open Distro For ElasticSearch to Microsoft Power BI Desktop

**NOTE**: **The connector is under development. All connection options are not available yet. There could be issues while loading data**

Expand Down
68 changes: 68 additions & 0 deletions sql-odbc/docs/user/tableau_support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Connecting Open Distro For ElasticSearch to Tableau Desktop via the Tableau Connector

## Overview

Connect an Open Distro For ElasticSearch data source to Tableau Desktop via the Tableau Connector to create a basic graph.

## Prerequisites

* Download and Install [Tableau Desktop](https://www.tableau.com/products/desktop/download) 2020 and higher
* Install and Configure [Open Distro for Elasticsearch](https://opendistro.github.io/for-elasticsearch-docs/docs/install/)
* Download and Install [Open Distro for Elasticsearch SQL ODBC driver](../../README.md)
* Download Tableau Connector for `SQL by Open Distro for ES` ([odfe_sql_odbc.taco](../../src/TableauConnector/odfe_sql_odbc/odfe_sql_odbc.taco)).
Click on **Download** option for downloading `odfe_sql_odbc.taco` file.
<img src="img/tableau_download_taco.png" >

## Prepare data

* Copy `odfe_sql_odbc.taco` file to My Tableau Repository.

* On windows: **%User%/Documents/My Tableau Repository/Connectors/**.
* On Mac: **~/Documents/My Tableau Repository/Connectors/**.

* Open Tableau using following command

```
<full-Tableau-path>\bin\tableau.exe -DDisableVerifyConnectorPluginSignature=true
```

* Click on **Connect** > **More** > **SQL by Open Distro for ES**.

<img src="img/tableau_select_connector.png" width=600>

* Enter **Server** & **Port** value.
* Select required authentication option. For **AWS_SIGV4** authentication, select **Integrated Authentication** and enter value for **Region**.
* Use **Additional Options** section for specifying options like **FetchSize**, **ResponseTimeout**. Use `;` to separate values. For example,

```
FetchSize=2000;ResponseTimeout=20;
```

<img src="img/tableau_dialog.png" width=400>

* Click on **Sign In**.
* You will get a list of tables when the connection is successful.

<img src="img/tableau_table_list.png">

## Analyze Data

To generate a graph,

* Double click on any required table from the list and click on **Update Now** to load data preview.

<img src="img/tableau_select_table.png">

* Data preview will be loaded.

<img src="img/tableau_data_preview.png">

* Click on **Sheet 1**. You can see a list of attributes under section **Data**.

<img src="img/tableau_columns_list.png">

* Double click on any required attributes to generate a simple graph.

<img src="img/tableau_graph.png">

* You can change visualizations by selecting any active visualization from **Show Me**.
4 changes: 2 additions & 2 deletions sql-odbc/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ set(INSTALL_SRC "${CMAKE_CURRENT_SOURCE_DIR}/installer")
set(DSN_INSTALLER_SRC "${CMAKE_CURRENT_SOURCE_DIR}/DSNInstaller")

# ODBC Driver version
set(DRIVER_PACKAGE_VERSION "1.9.0.0")
set(DRIVER_PACKAGE_VERSION_COMMA_SEPARATED "1,9,0,0")
set(DRIVER_PACKAGE_VERSION "1.9.0.1")
set(DRIVER_PACKAGE_VERSION_COMMA_SEPARATED "1,9,0,1")
add_compile_definitions( ES_ODBC_VERSION="${DRIVER_PACKAGE_VERSION}"
# Comma separated version is required for odbc administrator's driver file.
ES_ODBC_DRVFILE_VERSION=${DRIVER_PACKAGE_VERSION_COMMA_SEPARATED} )
Expand Down
6 changes: 3 additions & 3 deletions sql-odbc/src/TableauConnector/odfe_sql_odbc/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version='1.0' encoding='utf-8' ?>

<connector-plugin class='odfe_sql_odbc' superclass='odbc' plugin-version='1.8.0.0' name='SQL' version='18.1' min-version-tableau='2020.1'>
<connector-plugin class='odfe_sql_odbc' superclass='odbc' plugin-version='1.9.0.1' name='SQL' version='18.1' min-version-tableau='2020.1'>
<vendor-information>
<company name="Open Distro for ES"/>
<support-link url="https://github.com/opendistro-for-elasticsearch/sql/tree/master/sql-odbc"/>
<driver-download-link url="https://github.com/opendistro-for-elasticsearch/sql/tree/master/sql-odbc"/>
<support-link url="https://github.com/opendistro-for-elasticsearch/sql"/>
<driver-download-link url="https://github.com/opendistro-for-elasticsearch/sql"/>
</vendor-information>
<connection-customization class="odfe_sql_odbc" enabled="true" version="10.0">
<vendor name="Open Distro for ES"/>
Expand Down
Binary file modified sql-odbc/src/TableauConnector/odfe_sql_odbc/odfe_sql_odbc.taco
Binary file not shown.
6 changes: 3 additions & 3 deletions sql-odbc/src/TableauConnector/odfe_sql_odbc_dev/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version='1.0' encoding='utf-8' ?>

<connector-plugin class='odfe_sql_odbc_dev' superclass='odbc' plugin-version='0.2.0' name='Open Distro for Elasticsearch SQL ODBC DEV' version='18.1' min-version-tableau='2020.1'>
<connector-plugin class='odfe_sql_odbc_dev' superclass='odbc' plugin-version='1.9.0.1' name='Open Distro for Elasticsearch SQL ODBC DEV' version='18.1' min-version-tableau='2020.1'>
<vendor-information>
<company name="Open Distro for Elasticsearch"/>
<support-link url="https://github.com/opendistro-for-elasticsearch/sql/tree/master/sql-odbc"/>
<driver-download-link url="https://github.com/opendistro-for-elasticsearch/sql/tree/master/sql-odbc"/>
<support-link url="https://github.com/opendistro-for-elasticsearch/sql"/>
<driver-download-link url="https://github.com/opendistro-for-elasticsearch/sql"/>
</vendor-information>
<connection-customization class="odfe_sql_odbc_dev" enabled="true" version="10.0">
<vendor name="Open Distro for Elasticsearch"/>
Expand Down
Binary file not shown.

0 comments on commit e370ce9

Please sign in to comment.