Issue with Downloading Large Views from Tableau Server to CSV
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 42/100
Piste de recherche
Start with server.views.populate_csv and the subsequent view.csv handling shown in the report, then reproduce the behavior using a large Tableau view with Python 3.9 and TSC 0.30. Trace where the large response stops progressing or is retained, and compare it with the reported successful small-file path. Done means the large CSV is written successfully, or the limitation and required handling are clearly documented.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
I'm encountering an issue when trying to download a view that is around 200 MB in size. My script works perfectly for smaller files (5 MB or 10 MB), but it keeps running indefinitely and doesn't write data into the CSV file for the larger view.
The script successfully logs "CSV populated," indicating that server.views.populate_csv completes, but the file is not written for larger views.
Here's the code I'm using:
def download_file(client, server, content_url, output_file, region):
# NOTE: Monkey patched TSC.RequestOptions.Field class
# since the contentUrl filter parameter was not supported
setattr(TSC.RequestOptions.Field, 'ContentURL', 'contentUrl')
req_option = TSC.RequestOptions()
req_option.filter.add(TSC.Filter(TSC.RequestOptions.Field.ContentURL,
TSC.RequestOptions.Operator.Equals,
content_url))
logger.info('Fetching views...')
views, pagination_item = server.views.get(req_option)
logger.info(f'Views fetched: {len(views)}')
if len(views) == 1:
only_matched_index = 0
view = views[only_matched_index]
logger.info('Populating CSV...')
server.views.populate_csv(view, TSC.CSVRequestOptions(maxage = 5))
logger.info('CSV populated.')
with open(output_file, 'wb') as f:
f.write(b''.join(view.csv))
logger.info(f"CSV DATA WRITTEN TO the {output_file}")
OUTPUT:
INFO:main:Fetching views...
INFO:main:Views fetched: 1
INFO:main:Populating CSV...
INFO:main:CSV populated.
Could anyone suggest what might be going wrong with handling larger views? Are there any additional steps or considerations when dealing with larger files in Tableau Server that I might be missing?
Any insights or suggestions would be greatly appreciated!
Thank you!
Versions
Details of your environment, including:
- Python version:3.9
- TSC library version:0.30
- Langage dominant
- Python
- Étoiles
- 716
- Forks
- 445
- Merge moyen
- 1 j 2 h
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de tableau/server-client-python
-
in-progress
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
tableau/server-client-python#1884 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
tableau/server-client-python#1865 ·
-
in-progress
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
tableau/server-client-python#1829 · 1 commentaire ·
-
enhancement gap needs investigation stale
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
tableau/server-client-python#1322 · 2 commentaires ·
-
[Type2] Allow Incremental Refresh type schedules to be added via `server.schedules.add_to_schedule`Ouvertehelp wanted Server-Side Enhancement ui-exists
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
tableau/server-client-python#1101 · 3 commentaires ·
Toutes les issues de tableau/server-client-python
Issues similaires
-
[request] poppler-data/0.4.12Ouverteupstream update
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
conan-io/conan-center-index#31098 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
john-kurkowski/tldextract#382 ·
-
comp/tools duplicate P2 sweeper:risk-compatibility tool/mcp type/bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
NousResearch/hermes-agent#132042 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
deepset-ai/haystack#13092 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 1-3 heures Accessibilité débutants 85/100
feder-cr/invisible_playwright_mcp#1408 ·
Les mainteneurs répondent en général sous 1 jour