Autodetect settings
jvijayakumar2
Partner, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 30 Partner
Autodetect settings on DSSDataset give an error.
dataiku_api_client = dataiku.api_client() project = dataiku_api_client.get_default_project() builder = project.new_managed_dataset(metadata_dataset_name) builder.with_store_into(connection) dataset = builder.create() settings = dataset.autodetect_settings( settings.save()
Best Answer
-
JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 297 Dataiker
Hi @jvijayakumar2
,What is your goal here? Note, autodetect_settings() is intended for "input" datasets, not for datasets that are in the middle of the Flow.
Please provide context on where this code is being run and for what purpose.
Thanks!
Jordan
Answers
-
jvijayakumar2 Partner, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 30 Partner
Hi @JordanB
,Thanks for your reply. I used this in a custom plugin. I wanted to create a dataset from inside the plugin and so tried this. But I later found another way to do that.