potiuk commented on code in PR #27912: URL: https://github.com/apache/airflow/pull/27912#discussion_r1032470425
########## airflow/providers/common/sql/hooks/sql.py: ########## @@ -30,6 +30,25 @@ from airflow.version import version +def has_scalar_return_value(sql: str | Iterable[str], return_last: bool, split_statements: bool): + """ + Determines when scalar value should be returned. + + Scalar value should be returned when: Review Comment: Yeah. I do not like `scalar` name in this context too - it is super confusing (this is actually that caused my changes in #27854 to go completely wrong. Let me see if I can change it. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
