From b65b7cd0485a09d8903b93e1252592759c4af473 Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Fri, 28 Nov 2025 16:32:02 +0100 Subject: [PATCH] python ducklake client arg fix --- python-client/wmill/wmill/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python-client/wmill/wmill/client.py b/python-client/wmill/wmill/client.py index 0219b483f8..79066ae032 100644 --- a/python-client/wmill/wmill/client.py +++ b/python-client/wmill/wmill/client.py @@ -1699,12 +1699,12 @@ class DucklakeClient: def __init__(self, client: Windmill, name: str): self.client = client self.name = name - def fetch(self, sql: str, *args): + def fetch(self, sql: str, **kwargs): args_dict = {} args_def = "" - for i, arg in enumerate(args): - args_dict[f"arg{i+1}"] = arg - args_def += f"-- $arg{i+1}\n" + for key, value in kwargs.items(): + args_dict[key] = value + args_def += f"-- ${key}\n" attach = f"ATTACH 'ducklake://{self.name}' AS dl;USE dl;\n" sql = args_def + attach + sql return self.client.run_inline_script_preview(