From 7d2762162ea9e5eababb3f0979a8a5964f2603cd Mon Sep 17 00:00:00 2001 From: Alexandre Bourret Date: Mon, 11 Mar 2024 15:58:28 +0100 Subject: [PATCH] [sc-175069] Dumping faulty batch on upload error --- CHANGELOG.md | 4 ++++ plugin.json | 2 +- python-lib/tableau_table_writer.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15c443b..3fa682b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [Version 0.2.2](https://github.com/dataiku/dss-plugin-tableau-hyper/releases/tag/v0.2.2) - Bugfix release - 2024-03-11 + +- Dumping faulty batch instead of last row in case of upload error + ## [Version 0.2.1](https://github.com/dataiku/dss-plugin-tableau-hyper/releases/tag/v0.2.1) - Feature release - 2023-06-21 - Feature: add secure personal preset diff --git a/plugin.json b/plugin.json index dc47a83..a258d7d 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "id": "tableau-hyper-export", - "version": "0.2.1", + "version": "0.2.2", "meta": { "label": "Tableau Hyper format", "description": "Export datasets to Tableau .hyper format.", diff --git a/python-lib/tableau_table_writer.py b/python-lib/tableau_table_writer.py index a513d0c..5bb36e1 100644 --- a/python-lib/tableau_table_writer.py +++ b/python-lib/tableau_table_writer.py @@ -120,7 +120,7 @@ def write_row(self, row): self.update_table() # send data to hyper file, flush buffer self.data = [] except Exception as err: - logger.warning("Failed to perform writing on following row:\n{}".format(row)) + logger.warning("Failed to perform writing on following batch:\n{}".format(self.data)) raise err return True