Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions providers/src/airflow/providers/microsoft/azure/hooks/adx.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

.. spelling:word-list::

KustoResponseDataSetV
KustoResponseDataSet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, cool did not notice and did not know that spelling wordlists can also be adjusted non-global in a py file locally...

kusto
"""

Expand All @@ -41,7 +41,7 @@
)

if TYPE_CHECKING:
from azure.kusto.data.response import KustoResponseDataSetV2
from azure.kusto.data.response import KustoResponseDataSet


class AzureDataExplorerHook(BaseHook):
Expand Down Expand Up @@ -206,11 +206,11 @@ def get_required_param(name: str) -> str:

return KustoClient(kcsb)

def run_query(self, query: str, database: str, options: dict | None = None) -> KustoResponseDataSetV2:
def run_query(self, query: str, database: str, options: dict | None = None) -> KustoResponseDataSet:
"""
Run KQL query using provided configuration, and return KustoResponseDataSet instance.

See: `azure.kusto.data.response.KustoResponseDataSet`
See: azure.kusto.data.response.KustoResponseDataSet
If query is unsuccessful AirflowException is raised.

:param query: KQL query to run
Expand Down