Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f7c6a7f
feat: #24231 Tableau as a pipeline service
harshach Mar 15, 2026
a66b3c2
Update generated TypeScript types
github-actions[bot] Mar 15, 2026
85012f5
fix: improve connector quality to address review findings
harshach Mar 15, 2026
d0de6b1
fix: decouple flow runs from pipeline details for memory safety
harshach Mar 15, 2026
05f9afe
fix: address PR review - error propagation, dedup, and checkstyle
harshach Mar 15, 2026
4c3848e
style: apply black formatting to test file
harshach Mar 15, 2026
11f04ee
fix: make get_flow_runs idempotent by using cache.get instead of pop
harshach Mar 15, 2026
cea6cc5
fix: fix test_yield_pipeline_status by using MagicMock connection
harshach Mar 15, 2026
88c739b
update: #24231 Tableau as a pipeline service
harshach Mar 16, 2026
de7e95b
update: #24231 Tableau as a pipeline service
harshach Mar 16, 2026
049dd55
Merge remote-tracking branch 'origin/main' into task/24231-tableau-as…
harshach Apr 24, 2026
4357c6c
feat: #24231 full lineage, owners, tags, and node-level tasks for Tab…
harshach Apr 24, 2026
d5d4abe
Update generated TypeScript types
github-actions[bot] Apr 24, 2026
007d510
test: expand Tableau pipeline coverage to 97%
harshach Apr 24, 2026
1ec2c5d
test: exercise real __init__ for default numberOfStatus fallback
harshach Apr 24, 2026
e2ad6ea
fix: address Copilot review comments + py_format + pylint cleanups
harshach Apr 24, 2026
01658d9
fix(ci): Tableau pipeline example yaml + integration test imports
harshach Apr 25, 2026
8e61823
Merge remote-tracking branch 'origin/main' into task/24231-tableau-as…
harshach Apr 28, 2026
400f74a
fix(ci): basedpyright + ruff on Tableau pipeline connector
harshach Apr 28, 2026
b89a746
fix(security): silence CodeQL URL-substring false positive in connect…
harshach Apr 28, 2026
a53890e
fix(ci): restore Linux baseline entries dropped by macOS writebaseline
harshach Apr 28, 2026
7c95a6b
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshach Apr 29, 2026
dfd7d13
fix: chain SourceConnectionException with `from exc` in dashboard tab…
harshach Apr 29, 2026
8bc8220
style: collapse SourceConnectionException raise to single line
harshach Apr 29, 2026
67e017a
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshach Apr 29, 2026
7e2e68a
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
IceS2 Apr 30, 2026
48d14f5
Merge main into Tableau pipeline connector (#26500)
harshach Sep 25, 2026
e13d0f4
fix(tableau-pipeline): make runs and lineage work against a real Tableau
harshach Sep 25, 2026
5c6ba6c
feat(ui): register Tableau Pipeline display name, beta flag and setup…
harshach Sep 25, 2026
6d40848
feat(tableau-pipeline): ingest extract refreshes as pipelines with ru…
harshach Sep 25, 2026
e9121f6
fix(tableau-pipeline): end the extract refresh job scan on any error
harshach Sep 25, 2026
e2458f3
fix(tableau-pipeline): address connector review findings
harshach Sep 25, 2026
cdfa21c
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshach Sep 25, 2026
7cca3f3
chore(playwright): auto-refresh impact-map.generated.json
github-actions[bot] Sep 25, 2026
8aa0b1e
fix(tableau-pipeline): keep a flow's lineage when its custom SQL quer…
harshach Sep 25, 2026
314d81a
chore(tableau): drop basedpyright entries left by the old build_serve…
harshach Sep 25, 2026
d9ebec9
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshach Sep 25, 2026
d625548
fix(tableau-pipeline): link flow inputs to outputs and resolve single…
harshsoni2024 Sep 28, 2026
f75c0fc
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshsoni2024 Sep 28, 2026
4b8c25c
fix(tableau-pipeline): resolve single-DB tables exactly, not by first…
harshsoni2024 Sep 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 106 additions & 16 deletions ingestion/.basedpyright/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -24881,14 +24881,6 @@
}
],
"./src/metadata/ingestion/source/dashboard/tableau/connection.py": [
{
"code": "reportArgumentType",
"range": {
"startColumn": 32,
"endColumn": 51,
"lineCount": 1
}
},
{
"code": "reportArgumentType",
"range": {
Expand Down Expand Up @@ -24936,14 +24928,6 @@
"endColumn": 66,
"lineCount": 1
}
},
{
"code": "reportReturnType",
"range": {
"startColumn": 11,
"endColumn": 23,
"lineCount": 1
}
}
],
"./src/metadata/ingestion/source/dashboard/tableau/metadata.py": [
Expand Down Expand Up @@ -66548,6 +66532,112 @@
}
}
],
"./src/metadata/ingestion/source/pipeline/tableaupipeline/metadata.py": [
{
"code": "reportOptionalMemberAccess",
"range": {
"startColumn": 46,
"endColumn": 50,
"lineCount": 1
}
},
{
"code": "reportIncompatibleMethodOverride",
"range": {
"startColumn": 8,
"endColumn": 26,
"lineCount": 1
}
},
{
"code": "reportAttributeAccessIssue",
"range": {
"startColumn": 44,
"endColumn": 60,
"lineCount": 1
}
},
{
"code": "reportAttributeAccessIssue",
"range": {
"startColumn": 68,
"endColumn": 84,
"lineCount": 1
}
},
{
"code": "reportCallIssue",
"range": {
"startColumn": 18,
"endColumn": 48,
"lineCount": 1
}
},
{
"code": "reportCallIssue",
"range": {
"startColumn": 18,
"endColumn": 13,
"lineCount": 7
}
},
{
"code": "reportIncompatibleMethodOverride",
"range": {
"startColumn": 8,
"endColumn": 43,
"lineCount": 1
}
},
{
"code": "reportCallIssue",
"range": {
"startColumn": 22,
"endColumn": 43,
"lineCount": 1
}
},
{
"code": "reportCallIssue",
"range": {
"startColumn": 18,
"endColumn": 13,
"lineCount": 7
}
},
{
"code": "reportAttributeAccessIssue",
"range": {
"startColumn": 44,
"endColumn": 60,
"lineCount": 1
}
},
{
"code": "reportGeneralTypeIssues",
"range": {
"startColumn": 22,
"endColumn": 48,
"lineCount": 1
}
},
{
"code": "reportCallIssue",
"range": {
"startColumn": 22,
"endColumn": 17,
"lineCount": 6
}
},
{
"code": "reportCallIssue",
"range": {
"startColumn": 18,
"endColumn": 13,
"lineCount": 7
}
}
],
"./src/metadata/ingestion/source/search/elasticsearch/connection.py": [
{
"code": "reportArgumentType",
Expand Down
5 changes: 5 additions & 0 deletions ingestion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,11 @@
"ssrs": {"requests-ntlm"},
"superset": {}, # uses requests
"tableau": {VERSIONS["tableau"], VERSIONS["validators"], VERSIONS["packaging"]},
"tableaupipeline": {
Comment thread
harshach marked this conversation as resolved.
Resolved
VERSIONS["tableau"],
VERSIONS["validators"],
Comment thread
harshach marked this conversation as resolved.
Resolved
VERSIONS["packaging"],
},
"teradata": {VERSIONS["teradata"]},
"trino": {VERSIONS["trino"], DATA_DIFF["trino"]},
"vertica": {VERSIONS["sqlalchemy-vertica"], DATA_DIFF["vertica"]},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ class PipelineStep(StepName):
PipelineDetailsAccess = "PipelineDetailsAccess"
TaskDetailAccess = "TaskDetailAccess"
GetPipelines = "GetPipelines"
GetLineage = "GetLineage"
30 changes: 30 additions & 0 deletions ingestion/src/metadata/examples/workflows/tableaupipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
source:
type: tableaupipeline
serviceName: local_tableau_pipeline
serviceConnection:
config:
type: TableauPipeline
# For Tableau, choose one of basic or access token authentication
authType:
username: username
password: password
# # For access token authentication, swap the authType block above with:
# authType:
# personalAccessTokenName: personal_access_token_name
# personalAccessTokenSecret: personal_access_token_secret
hostPort: http://localhost
siteName: site_name
sourceConfig:
config:
type: PipelineMetadata
pipelineFilterPattern: {}
sink:
type: metadata-rest
config: {}
workflowConfig:
# loggerLevel: INFO # DEBUG, INFO, WARN or ERROR
openMetadataServerConfig:
hostPort: http://localhost:8585/api
authProvider: openmetadata
securityConfig:
jwtToken: "eyJraWQiOiJHYjM4OWEtOWY3Ni1nZGpzLWE5MmotMDI0MmJrOTQzNTYiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImlzQm90IjpmYWxzZSwiaXNzIjoib3Blbi1tZXRhZGF0YS5vcmciLCJpYXQiOjE2NjM5Mzg0NjIsImVtYWlsIjoiYWRtaW5Ab3Blbm1ldGFkYXRhLm9yZyJ9.tS8um_5DKu7HgzGBzS1VTA5uUjKWOCU0B_j08WXBiEC0mr0zNREkqVfwFDD-d24HlNEbrqioLsBuFRiwIWKc1m_ZlVQbG7P36RUxhuv2vbSp80FKyNM-Tj93FDzq91jsyNmsQhyNv_fNr3TXfzzSPjHt8Go0FMMP66weoKMgW2PbXlhVKwEuXUHyakLLzewm9UMeQaEiRzhiTMU3UkLXcKbYEJJvfNFcLwSl9W8JCO_l0Yj3ud-qt_nQYEZwqW6u5nfdQllN133iikV4fM5QZsMCnm8Rq1mvLR0y9bmJiD7fwM1tmJ791TUWqmKaTnP49U493VanKpUAfzIiOiIbhg"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from __future__ import annotations

import traceback
from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING

import tableauserverclient as TSC # noqa: N812
from requests.exceptions import SSLError
Expand Down Expand Up @@ -62,6 +62,9 @@
if TYPE_CHECKING:
from metadata.core.connections.lifetime import Borrowed
from metadata.core.connections.test_connection import ChecksProvider
from metadata.generated.schema.entity.services.connections.pipeline.tableauPipelineConnection import (
TableauPipelineConnection,
)

logger = ingestion_logger()

Expand Down Expand Up @@ -172,7 +175,7 @@ def get_connection(connection: TableauConnectionConfig) -> TableauClient:


def set_verify_ssl(
connection: TableauConnectionConfig,
connection: TableauConnectionConfig | TableauPipelineConnection,
) -> tuple[bool | str, SSLManager | None]:
"""
Set verify ssl based on connection configuration
Expand Down Expand Up @@ -207,7 +210,9 @@ def set_verify_ssl(
)


def build_server_config(connection: TableauConnectionConfig) -> dict[str, dict[str, Any]]:
def build_server_config(
connection: TableauConnectionConfig | TableauPipelineConnection,
) -> TSC.TableauAuth | TSC.PersonalAccessTokenAuth:
"""
Comment thread
harshach marked this conversation as resolved.
Resolved
Build client configuration
Args:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
# Tableau Pipeline Connector

Ingests Tableau Prep flows as OpenMetadata Pipelines. Captures the flow DAG,
run history for observability, and flow-level lineage — the tables and
published data sources a flow reads and writes, and the flows that consume
it — via the Tableau Metadata API. Extract refreshes of published data
sources and workbooks are ingested as pipelines too, with their refresh jobs
as run history.

## Capability matrix

| Capability | Status | Notes |
|------------|--------|-------|
| Pipeline metadata (flow → Pipeline) | Yes | Name, description, display name, source URL |
| Task DAG (node-level) | Yes | Input tasks per upstream table / data source, processing task, output tasks per `FlowOutputStep`, wired via `downstreamTasks` |
| Pipeline status (per flow run) | Yes | Most recent `numberOfStatus` runs per flow, keyed on `startedAt` with `executionId` = flow run id |
| Per-task status | Yes (flow-level) | Every task in a flow run receives the same status — Tableau reports status at flow granularity, not per step |
| Owner extraction | Yes | Resolves the owner of the flow / data source / workbook → Tableau user email (or an email-shaped username, as on Tableau Cloud) → OpenMetadata user; honours `includeOwners` |
| Tag extraction | Yes | Emits a `TableauTags` classification and attaches tags to the pipeline |
| Table and data model lineage (input → output) | Yes | Each input (`Flow.upstreamTables`, `Flow.upstreamDatasources`) is linked to the outputs it feeds (`Flow.downstreamTables` for output to a database, `Flow.downstreamDatasources` for a published data source), with the flow in `lineageDetails.pipeline` |
| Custom SQL input parsing | Yes | Only for upstream tables Tableau returns without a name, as the dashboard connector does |
| Downstream flow lineage (pipeline → pipeline) | Yes | `Flow.nextDownstreamFlows` (direct consumers only); edges to flows listed later are drawn in the post-process |
| Column-level lineage | No | Not built yet: the edges run between assets, so the field lineage the input → output pairing reads could carry it |
| Extract refresh pipelines | Yes | One pipeline per data source / workbook with an extract refresh task; `includeExtractRefreshes` (default on) |
| Extract refresh status | Yes | Refresh jobs (full and incremental) as pipeline status, with Tableau's job notes as the failure reason; needs a site administrator |
| Extract refresh lineage (pipeline → data model) | Yes | The published data source, or each embedded extract of the workbook, resolved to the dashboard connector's data model; see [Lineage resolution](#lineage-resolution) for why the refresh is an endpoint |
| Failure reason on flow runs | Yes | Notes of the flow run's background job |
| Schedule metadata | No | Planned |

## Requirements

- **Tableau Server** or **Tableau Cloud** with authenticated access.
- **Metadata API enabled** for lineage extraction. The connector degrades
gracefully without it — metadata and status still ingest, but no lineage
edges are produced. See
[Start the Metadata API](https://help.tableau.com/current/api/metadata_api/en-us/docs/meta_api_start.html).
- A user with permission to list flows, flow runs, and (for lineage) query
the Metadata API. Non-admin users only see runs of flows they can view.
- Flows can run manually without Data Management, but scheduled runs need
[Tableau Prep Conductor](https://help.tableau.com/current/prep/en-us/prep_conductor_overview.htm).
- **Extract refresh status needs a site administrator.** Query Jobs only
answers server and site administrators; other users still get extract
refresh pipelines (for the refresh tasks they own), without status.

## Connection configuration

Key fields on `TableauPipelineConnection`:

| Field | Purpose |
|-------|---------|
| `hostPort` | Tableau Server URL |
| `authType` | `BasicAuth` (username/password) or `AccessTokenAuth` (PAT name + secret) |
| `siteName` | Tableau site (empty for default) |
| `apiVersion` | Optional REST API version override |
| `verifySSL` + `sslConfig` | TLS validation mode, CA certificate, and client certificate + key (mutual TLS) when `verifySSL=validate` |
| `pipelineFilterPattern` | Include/exclude regex on the pipeline's display name: the flow name, or `<data source / workbook name> extract refresh` |
| `numberOfStatus` | Most recent runs kept per flow or extract refresh (default 10, 1–100) |
| `includeExtractRefreshes` | Ingest extract refreshes as pipelines (default `true`) |

## Lineage resolution

A flow's edges run between the assets it reads and the assets it writes, with
the flow in `lineageDetails.pipeline`, as other pipeline connectors draw them:
a flow's input and output tables are direct neighbours, and the platform's
pipeline view mode decides whether the flow shows as a node or on the edge.

Which inputs feed which outputs:

1. A flow with a single input, or a single output, links every input to every
output.
2. A flow with several of each can run separate branches, so the pairs are
read from the lineage of the fields its output steps write
(`FlowOutputField.upstream*` / `downstream*`), in a query of its own so a
flow that exceeds the node budget keeps its main lineage.
3. When Tableau does not say, no input → output edge is drawn for that flow
(a warning names it) rather than every input being tied to every output.

A flow that also updates a table it reads draws no edge from the table to
itself.

Tables (inputs and outputs) resolve as follows, trying the database, schema
and table Tableau reports first and then those in the table's full name
(`[db].[schema].[table]`, `[schema].[table]` or `schema.table`), as the
dashboard Tableau connector does:

1. With `lineageInformation.dbServiceNames` set, only those services are
tried, in order, each with its own database naming. A single-database
service (MySQL, Oracle, Hive, …) has one database, its configured or
`default` one, and a table Tableau reports with a database but no schema
is looked up with that database as its schema, as OpenMetadata files a
MySQL database. BigQuery's database is left to the search. A name still
missing its database or schema, such as a table in custom SQL, must match
a single table of the service: the first of several would be a guess.
2. Without them, a search across every database service is used, and only
a single match is accepted — a same-named table elsewhere never gets the
edge, and names that match several tables do not fall back to looser ones.
3. For an upstream table Tableau returns without a name, its custom SQL is
fetched (in a separate query, so popular tables do not spend the main
query's node budget) and parsed (ANSI dialect); each source table resolves
via steps 1–2.

A file a flow reads (Excel, CSV, …) is reported with the file as its database
and no schema, so it is not mistaken for a database table of the same name.

Published data sources resolve to the `DashboardDataModel`s the dashboard
Tableau connector created — in every dashboard service that ingests the site
— matched on the Metadata API `id` (the name that connector gives its data
models). Run the dashboard connector first.

Cross-flow lineage resolves by looking up the downstream flow in the same
pipeline service; a flow listed after its upstream flow is linked in the
post-process, once every flow is ingested. It stays a pipeline → pipeline
edge: the asset between two flows is often not in OpenMetadata (a data source
no workbook uses, a file output).

An extract refresh reads no asset of its own, so it is the upstream end of
its edges to the data models it refreshes. The table → data model edges it
keeps fresh belong to the dashboard Tableau connector; writing them from here
would replace their column lineage whenever `overrideLineage` is on.

## Known limitations

- **Flow runs are fetched per flow.** `GET /flows/runs` is filtered on
`flowId` and sorted on `startedAt` descending with a page size of
`numberOfStatus`. TSC's `FlowRuns.get` returns a plain list, so it cannot
be driven through `Pager`. The endpoint documents neither paging nor
sorting: if the sort is rejected, runs are read unsorted page by page, and
the first page that brings no run not seen before ends the listing, so a
server that ignores `pageNumber` is not read forever.
- **Extract refresh jobs are looked up one by one.** Query Jobs cannot filter
by data source or workbook, so jobs are read newest first
(`jobType:in:[refresh_extracts,increment_extracts]`, `createdAt:desc`) and
each needs a Query Job call to learn its target. Reading stops once every
extract refresh the filter pattern keeps has `numberOfStatus` runs, or
after 1,000 lookups per ingestion. If the server rejects the sort, every
job up to the cap is read and the newest runs are kept.
History depth is bounded by Tableau's job retention (about 30 days on
Tableau Cloud). Queued jobs are skipped until they start.
- **Flow-step status is flow-level.** Tableau reports one execution status
per flow run. Each task in the DAG receives that same status.
- **Intermediate step metadata** (cleaning / join / aggregation nodes
inside the flow) is not exposed by the Metadata API. The Task DAG captures
the flow boundary (inputs → processing → outputs) only.
- **Metadata API outages keep the DAG.** When the Metadata API cannot be
queried, a flow keeps the tasks it already has in OpenMetadata rather than
collapsing to a single task; a flow with no lineage records is a single
task.
- **Partial listings delete nothing.** When the extract refresh tasks, or one
of their data sources / workbooks, cannot be read, no pipeline is marked as
deleted that run. A data source or workbook that no longer exists is
skipped normally.
- **Retries.** 429 and 502-504 answers are retried three times with backoff,
honouring `Retry-After`.
- **Metadata API node limit.** A query that exceeds the node limit (20,000
by default on Tableau Server) returns partial data plus `errors`; the
connector logs the errors and ingests what was returned.

## Test connection steps

- `GetPipelines` (mandatory) — lists flows with a single-page REST call.
- `GetRuns` (optional) — lists one flow run, proving run history is readable.
- `GetJobs` (optional) — lists the extract refresh tasks and one extract
refresh job, proving refresh history is readable (site administrator
only). Passes without calling Tableau when `includeExtractRefreshes` is off.
- `GetLineage` (optional) — runs a `flowsConnection(first: 1)` Metadata API
query to confirm lineage extraction will work.
Loading
Loading