jroachgolf84 commented on code in PR #54475:
URL: https://github.com/apache/airflow/pull/54475#discussion_r2277554269
##########
providers/common/sql/src/airflow/providers/common/sql/hooks/sql.py:
##########
@@ -804,10 +806,15 @@ def _make_common_data_structure(self, result: T |
Sequence[T]) -> tuple | list[t
return cast("list[tuple]", result)
return cast("tuple", result)
+ def _truncate_text(self,text):
+ if self._max_log_sql_str is None or len(text) <= self._max_log_sql_str
+ return text
+ return text[:self._max_log_sql_str] + '.......'
Review Comment:
Agreed!
--
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]