Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi all,
My question is in the subject 🙂
Do anyone have a solution please?
Hi @oscieux ,
You can use the get_dataset() get_settings() get_raw() to retrieve SQL Probe code:
import dataiku
import pprint
pp = pprint.PrettyPrinter(indent=4)
client = dataiku.api_client()
project = client.get_default_project()
dataset = project.get_dataset("IMPORT_FROM_V5_sql_bad")
settings = dataset.get_settings()
params = settings.get_raw()['metrics']['probes']
for i in params:
if i['type'] == 'sql_query':
pp.pprint(i['configuration']['code'])
Let me know if that's what you were looking for!
Hi @oscieux ,
You can use the get_dataset() get_settings() get_raw() to retrieve SQL Probe code:
import dataiku
import pprint
pp = pprint.PrettyPrinter(indent=4)
client = dataiku.api_client()
project = client.get_default_project()
dataset = project.get_dataset("IMPORT_FROM_V5_sql_bad")
settings = dataset.get_settings()
params = settings.get_raw()['metrics']['probes']
for i in params:
if i['type'] == 'sql_query':
pp.pprint(i['configuration']['code'])
Let me know if that's what you were looking for!
U are the best 🙂
Thxs a lot !