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
2 changes: 1 addition & 1 deletion src/dremioai/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def ensure_query_allowed(s: str):
)

@secured
async def invoke(self, s: str) -> Dict[str, List[Dict[Any, Any]]]:
async def invoke(self, s: str) -> Dict[str, Union[List[Dict[Any, Any]] | str]]:
"""Run a SELECT sql query on the Dremio cluster and return the results.
Ensure that SQL keywords like 'day', 'month', 'count', 'table' etc are enclosed in double quotes
You are premitted to run only SELECT queries. No DML statements are allowed.
Expand Down