I want to create pipeline on Azure Synapse and one of the flow is using notebook to read, validate and then continue the pipeline or stop the pipeline
if(validation=True): #success on validation
return df #continue the pipeline
if(validation=False): #failed on validation
return error #stop the pipeline
I already research in stackoverflow and google but I can't find the specific way. I already tried break and mssparkutils.notebook.exit but it doesn't worked
Already solve. you can do this
if validations==True:
print(df)
else:
raise TypeError('Validation failed')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.