This commit is contained in:
Guillermo Garcia 2026-07-13 09:59:06 +00:00 committed by GitHub
commit 10e128e520
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 5 deletions

View file

@ -3293,12 +3293,12 @@ def convert(
db.conn.create_function("preview_transform", 1, preview)
sql = """
select
[{column}] as value,
preview_transform([{column}]) as preview
from [{table}]{where} limit 10
{column} as value,
preview_transform({column}) as preview
from {table}{where} limit 10
""".format(
column=columns[0],
table=table,
column=quote_identifier(columns[0]),
table=quote_identifier(table),
where=" where {}".format(where) if where is not None else "",
)
for row in db.conn.execute(sql, where_args).fetchall():