You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/22 07:37:26 UTC

[GitHub] [airflow] ephraimbuddy commented on a change in pull request #21709: Add-showing-runtime-error-feature-to-DatabricksSubmitRunOperator

ephraimbuddy commented on a change in pull request #21709:
URL: https://github.com/apache/airflow/pull/21709#discussion_r811649582



##########
File path: airflow/providers/databricks/operators/databricks.py
##########
@@ -87,7 +87,10 @@ def _handle_databricks_operator_execution(operator, hook, log, context) -> None:
                     log.info('View run status, Spark UI, and logs at %s', run_page_url)
                     return
                 else:
-                    error_message = f'{operator.task_id} failed with terminal state: {run_state}'
+                    run_output = hook.get_run_output(operator.run_id)
+                    notebook_error = run_output['error']
+                    error_message = f'{operator.task_id} failed with terminal state: {run_state} ' \

Review comment:
       It'll make sense to add a test for this




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org