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/05/19 19:29:49 UTC
[GitHub] [airflow] kazanzhy opened a new pull request, #23812: Fix UnboundLocalError when sql is empty list in ExasolHook
kazanzhy opened a new pull request, #23812:
URL: https://github.com/apache/airflow/pull/23812
Raises `ValueError` if the SQL parameter is an empty list in SnowflakeHook.
related: #23767
--
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
[GitHub] [airflow] uranusjr commented on pull request #23812: Fix UnboundLocalError when sql is empty list in ExasolHook
Posted by GitBox <gi...@apache.org>.
uranusjr commented on PR #23812:
URL: https://github.com/apache/airflow/pull/23812#issuecomment-1134573130
I wonder if we should silently return None when `sql` is empty, instead of failing the task.
--
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
[GitHub] [airflow] kazanzhy commented on pull request #23812: Fix UnboundLocalError when sql is empty list in ExasolHook
Posted by GitBox <gi...@apache.org>.
kazanzhy commented on PR #23812:
URL: https://github.com/apache/airflow/pull/23812#issuecomment-1134639957
@uranusjr there was a short discussion about the behavior
https://github.com/apache/airflow/pull/23767
It seems that raising an error when `sql` parameter is an empty list will be the similar to the situation when we try to run an empty string using `psycopg2` (`ProgrammingError: can't execute an empty query`)
--
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
[GitHub] [airflow] potiuk commented on pull request #23812: Fix UnboundLocalError when sql is empty list in ExasolHook
Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #23812:
URL: https://github.com/apache/airflow/pull/23812#issuecomment-1134628063
I think failing is more reasonable. I think explicit `SELECT 1 FROM DUAL` is better one to indicate "empty" query and there are at least few scenarios where empty response might be result of error (like typo in variable name). Those are super-nasty to diagnose and track down, so failure is likely a better choice.
--
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
[GitHub] [airflow] potiuk merged pull request #23812: Fix UnboundLocalError when sql is empty list in ExasolHook
Posted by GitBox <gi...@apache.org>.
potiuk merged PR #23812:
URL: https://github.com/apache/airflow/pull/23812
--
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