This commit is contained in:
Diego Imbert
2025-12-03 11:51:14 +01:00
parent 4b779b6b7e
commit 48293f8234
+1 -1
View File
@@ -170,7 +170,7 @@ export async function getDucklakeSchema({
args: {}
}
})
let mainSchema = Array.isArray(result) && result.length && (result?.[0]?.['result'] ?? '[]')
let mainSchema = Array.isArray(result) && result.length && (result?.[0]?.['result'] ?? [])
// Safety for agent workers (duckdb ffi lib used to return JSON as stringified json)
if (typeof mainSchema === 'string') mainSchema = JSON.parse(mainSchema)