Owen-CH-Leung commented on issue #39323:
URL: https://github.com/apache/airflow/issues/39323#issuecomment-2298171683

   Also no problem. I wrote a simple DAG that executes a `SHOW TABLE` query :
   
   ```
   def query_elasticsearch():
       es = ElasticsearchSQLHook(elasticsearch_conn_id='elasticsearch_default')
   
       es_connection = es.get_conn()
       response = es_connection.execute_sql("SHOW TABLES")
       for i in range(5000):
           for row in response["rows"]:
               print(f"row: {row}")
   ```
   
   This results in a log file which consists of around 35k log lines: 
   
   ```
   airflow git:(main) ✗ cat 
logs/dag_id=elasticsearch_sql_dag/run_id=manual__2024-08-20T07:19:51.268943+00:00/task_id=run_es_query/attempt=1.log
 | wc -l
      35028
   ```
   
   And the UI is still able to render it : 
   
   
![image](https://github.com/user-attachments/assets/effafa66-3553-48b1-8878-0c661ed7fc8f)
   
   
   


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