datasource-dependencies columns being passed as fields

Open
#138 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start at _get_column_objects and inspect how it walks the datasource XML, focusing on column tags nested under datasource-dependencies. Confirm how those nodes are currently surfaced as fields; done means dependency columns can be distinguished from ordinary datasource fields so parameters from another datasource are not reported as belonging to this datasource.

Written by the indexing model from the issue text.

Description

connectorRequest

Hello again,

I'm not sure if this is actually a bug or if its intentional.

_get_column_objects finds all column tags in a datasourcexml. My problem occurs when there is a dependency in the datasource. These occur when a blend is done on a field or when a parameter is used in a calculation in that datasource. The following structure occurs:

image

The highlighted column element, inside of the datasource-dependencies element, gets passed as a field. This gives me the illusion that my [Parameter 1] is part of this datasource, while in reality it is part of the 'Parameters'-datasource.

Is there any way I can distinguish these fields from datasource-dependencies, from other fields?

Thanks again!

Marco

Dominant language
Python
Stars
363
Forks
183
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tableau/document-api-python

All issues in tableau/document-api-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.