2022-05-02 00:18:15 -07:00
### Prerequisites
2022-02-08 14:26:44 -08:00
2023-03-03 06:23:19 +05:30
In order to ingest metadata from Tableau, you will need:
2022-05-02 00:18:15 -07:00
- Tableau Server Version 2021.1.10 and above. It may also work for older versions.
- [Enable the Tableau Metadata API ](https://help.tableau.com/current/api/metadata_api/en-us/docs/meta_api_start.html#enable-the-tableau-metadata-api-for-tableau-server ) for Tableau Server, if its not already enabled.
2022-08-10 22:00:31 +00:00
- Tableau Credentials (Username/Password or [Personal Access Token ](https://help.tableau.com/current/pro/desktop/en-us/useracct.htm#create-and-revoke-personal-access-tokens ))
2022-11-18 03:31:16 -05:00
- The user or token must have **Site Administrator Explorer** permissions.
2022-02-08 14:26:44 -08:00
2022-10-05 14:50:44 -07:00
### Ingestion through UI
The following video shows you how to get started with ingesting Tableau metadata through the UI.
< div
style={{
position: "relative",
paddingBottom: "57.692307692307686%",
height: 0
}}
>
< iframe
src="https://www.loom.com/embed/ef521c4e66564614a6ddde35dc3840f8"
frameBorder={0}
webkitallowfullscreen=""
mozallowfullscreen=""
allowFullScreen=""
style={{
position: "absolute",
top: 0,
left: 0,
width: "100%",
height: "100%"
}}
/>
< / div >
2022-11-18 03:31:16 -05:00
### Integration Details
2022-02-08 14:26:44 -08:00
2022-04-04 16:45:08 +05:30
This plugin extracts Sheets, Dashboards, Embedded and Published Data sources metadata within Workbooks in a given project
2023-03-03 06:23:19 +05:30
on a Tableau site. Tableau's GraphQL interface is used to extract metadata information. Queries used to extract metadata are located
2022-04-04 16:45:08 +05:30
in `metadata-ingestion/src/datahub/ingestion/source/tableau_common.py`
2022-02-08 14:26:44 -08:00
2022-11-18 03:31:16 -05:00
#### Concept Mapping
2022-02-08 14:26:44 -08:00
2022-04-04 16:45:08 +05:30
This ingestion source maps the following Source System Concepts to DataHub Concepts:
2022-02-08 14:26:44 -08:00
2023-03-03 06:23:19 +05:30
| Source Concept | DataHub Concept | Notes |
| --------------------------- | ------------------------------------------------------------- | --------------------------------- |
| `"Tableau"` | [Data Platform ](../../metamodel/entities/dataPlatform.md ) |
| Project | [Container ](../../metamodel/entities/container.md ) | SubType `"Project"` |
| Embedded DataSource | [Dataset ](../../metamodel/entities/dataset.md ) | SubType `"Embedded Data Source"` |
| Published DataSource | [Dataset ](../../metamodel/entities/dataset.md ) | SubType `"Published Data Source"` |
| Custom SQL Table | [Dataset ](../../metamodel/entities/dataset.md ) | SubTypes `"View"` , `"Custom SQL"` |
| Embedded or External Tables | [Dataset ](../../metamodel/entities/dataset.md ) | |
| Sheet | [Chart ](../../metamodel/entities/chart.md ) | |
| Dashboard | [Dashboard ](../../metamodel/entities/dashboard.md ) | |
| User | [User (a.k.a CorpUser) ](../../metamodel/entities/corpuser.md ) | Optionally Extracted |
| Workbook | [Container ](../../metamodel/entities/container.md ) | SubType `"Workbook"` |
| Tag | [Tag ](../../metamodel/entities/tag.md ) | Optionally Extracted |
2022-02-08 14:26:44 -08:00
2022-04-04 16:45:08 +05:30
#### Lineage
2022-08-10 22:00:31 +00:00
2022-03-31 04:02:15 +05:30
Lineage is emitted as received from Tableau's metadata API for
2022-08-10 22:00:31 +00:00
2023-03-03 06:23:19 +05:30
- Sheets contained within a Dashboard
- Embedded or Published Data Sources depended on by a Sheet
- Published Data Sources upstream to Embedded datasource
- Tables upstream to Embedded or Published Data Source
- Custom SQL datasources upstream to Embedded or Published Data Source
- Tables upstream to Custom SQL Data Source
2022-03-31 04:02:15 +05:30
2022-04-04 16:45:08 +05:30
#### Caveats
2022-08-10 22:00:31 +00:00
2022-04-06 03:26:35 +05:30
- Tableau metadata API might return incorrect schema name for tables for some databases, leading to incorrect metadata in DataHub. This source attempts to extract correct schema from databaseTable's fully qualified name, wherever possible. Read [Using the databaseTable object in query ](https://help.tableau.com/current/api/metadata_api/en-us/docs/meta_api_model.html#schema_attribute ) for caveats in using schema attribute.
2022-04-04 16:45:08 +05:30
2022-11-18 03:31:16 -05:00
### Troubleshooting
2022-02-08 14:26:44 -08:00
2022-06-22 21:23:31 +05:30
### Why are only some workbooks/custom SQLs/published datasources ingested from the specified project?
2022-02-08 14:26:44 -08:00
2022-08-10 22:00:31 +00:00
This may happen when the Tableau API returns NODE_LIMIT_EXCEEDED error in response to metadata query and returns partial results with message "Showing partial results. , The request exceeded the ‘ n’ node limit. Use pagination, additional filtering, or both in the query to adjust results." To resolve this, consider
2022-06-22 21:23:31 +05:30
- reducing the page size using the `page_size` config param in datahub recipe (Defaults to 10).
2022-08-10 22:00:31 +00:00
- increasing tableau configuration [metadata query node limit ](https://help.tableau.com/current/server/en-us/cli_configuration-set_tsm.htm#metadata_nodelimit ) to higher value.