Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

Exporter plugin - reference dataset name

trevor_g
Level 1
Exporter plugin - reference dataset name

Hi all

 

I'm trying to write an exporter with the "exportBehavior": "OUTPUT_TO_FILE" option - to be used in a similar way to Export Schema -> Download

I'd like to be able to reference the current dataset name that i'm currently in (same way as the  Export Schema -> Download -> Format = CSV (*.csv) must be able to)

I know there's a DATASET type parameter - but I'd rather it default to the dataset i'm in rather than have to choose it from the drop down.

So question is, how do I reference the dataset name in the exporter.py or exporter.json (predefinedConfig?) file?

 

Thanks in advance

0 Kudos
1 Reply
trevor_g
Level 1
Author

Hi

The generic Export Schema exporter (e.g. CSV (*.csv)) must know the current working dataset name given that it uses the dataset name in file name that it outputs to save.

Strangely, interrogating the destination_file_path  parameter in the open_to_file method doesn't help as it seems to be a random file name.

Any ideas?

0 Kudos

Labels

?
Labels (1)
A banner prompting to get Dataiku