cushionbadak opened a new pull request, #32509:
URL: https://github.com/apache/airflow/pull/32509

   ## Description
   
   In the context of lines 232 and 234 within the 
`ElasticsearchTaskHandler._read` method, `metadata["offset"]` is initialized 
with an integer value of `0`. This integer is subsequently passed to the 
`self.es_read` method, an action which the current type hint does not account 
for.
   
   Relevant code selections:
   
https://github.com/apache/airflow/blob/3b97eb08c0280a5a63b6b165a31a0413b98f7032/airflow/providers/elasticsearch/log/es_task_handler.py#L231-L238
   
https://github.com/apache/airflow/blob/3b97eb08c0280a5a63b6b165a31a0413b98f7032/airflow/providers/elasticsearch/log/es_task_handler.py#L302
   
   This pull request proposes the modification  of the `offset` parameter's 
type hint from `str` to `int | str` in order to reflect its accurate usage 
within the aforementioned code sections.


-- 
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]

Reply via email to