Repository navigation
Fixes 24231: Tableau Prep flows and extract refreshes as a pipeline service #26500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
harshach
merged 40 commits into
main
from
task/24231-tableau-as-a-pipeline-service-B1FC6FFB
Sep 29, 2026
Merged
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 a66b3c2
Update generated TypeScript types
github-actions[bot] 85012f5
fix: improve connector quality to address review findings
harshach d0de6b1
fix: decouple flow runs from pipeline details for memory safety
harshach 05f9afe
fix: address PR review - error propagation, dedup, and checkstyle
harshach 4c3848e
style: apply black formatting to test file
harshach 11f04ee
fix: make get_flow_runs idempotent by using cache.get instead of pop
harshach cea6cc5
fix: fix test_yield_pipeline_status by using MagicMock connection
harshach 88c739b
update: #24231 Tableau as a pipeline service
harshach de7e95b
update: #24231 Tableau as a pipeline service
harshach 049dd55
Merge remote-tracking branch 'origin/main' into task/24231-tableau-as…
harshach 4357c6c
feat: #24231 full lineage, owners, tags, and node-level tasks for Tab…
harshach d5d4abe
Update generated TypeScript types
github-actions[bot] 007d510
test: expand Tableau pipeline coverage to 97%
harshach 1ec2c5d
test: exercise real __init__ for default numberOfStatus fallback
harshach e2ad6ea
fix: address Copilot review comments + py_format + pylint cleanups
harshach 01658d9
fix(ci): Tableau pipeline example yaml + integration test imports
harshach 8e61823
Merge remote-tracking branch 'origin/main' into task/24231-tableau-as…
harshach 400f74a
fix(ci): basedpyright + ruff on Tableau pipeline connector
harshach b89a746
fix(security): silence CodeQL URL-substring false positive in connect…
harshach a53890e
fix(ci): restore Linux baseline entries dropped by macOS writebaseline
harshach 7c95a6b
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshach dfd7d13
fix: chain SourceConnectionException with `from exc` in dashboard tab…
harshach 8bc8220
style: collapse SourceConnectionException raise to single line
harshach 67e017a
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshach 7e2e68a
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
IceS2 48d14f5
Merge main into Tableau pipeline connector (#26500)
harshach e13d0f4
fix(tableau-pipeline): make runs and lineage work against a real Tableau
harshach 5c6ba6c
feat(ui): register Tableau Pipeline display name, beta flag and setup…
harshach 6d40848
feat(tableau-pipeline): ingest extract refreshes as pipelines with ru…
harshach e9121f6
fix(tableau-pipeline): end the extract refresh job scan on any error
harshach e2458f3
fix(tableau-pipeline): address connector review findings
harshach cdfa21c
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshach 7cca3f3
chore(playwright): auto-refresh impact-map.generated.json
github-actions[bot] 8aa0b1e
fix(tableau-pipeline): keep a flow's lineage when its custom SQL quer…
harshach 314d81a
chore(tableau): drop basedpyright entries left by the old build_serve…
harshach d9ebec9
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshach d625548
fix(tableau-pipeline): link flow inputs to outputs and resolve single…
harshsoni2024 f75c0fc
Merge branch 'main' into task/24231-tableau-as-a-pipeline-service-B1F…
harshsoni2024 4b8c25c
fix(tableau-pipeline): resolve single-DB tables exactly, not by first…
harshsoni2024 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
ingestion/src/metadata/examples/workflows/tableaupipeline.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 166 additions & 0 deletions
166
ingestion/src/metadata/ingestion/source/pipeline/tableaupipeline/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.