eladkal commented on code in PR #24895: URL: https://github.com/apache/airflow/pull/24895#discussion_r915637328
########## airflow/providers/elasticsearch/hooks/elasticsearch_python.py: ########## @@ -0,0 +1,56 @@ +# Review Comment: So we have two ways to interact with elastic one is Python based with the SDK and one is SQL based by using sql query syntax. i think we should rename this file as `python.py` or something similar? and the current `ElasticsearchHook` in hooks/elasticsearch.py https://github.com/apache/airflow/blob/7a9c03caaf5b954057f7a566b7406982e67f9749/airflow/providers/elasticsearch/hooks/elasticsearch.py#L27 should be hooks/sql.py with `ElasticsearchSqlHook` Alternatively, we can have both classes `ElasticsearchSqlHook` + `ElasticsearchPythonHook` in the same `hooks/elasticsearch.py` ? -- 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]
