Last active
June 22, 2025 16:18
-
-
Save jordanburke/5f5838b64faa7a79b8760b758a4d12b1 to your computer and use it in GitHub Desktop.
Revisions
-
jordanburke renamed this gist
Jun 22, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jordanburke created this gist
Jun 22, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ // Minimal reproduction of Kuzu ALTER TABLE getAll() hang bug // Bug: getAll() intermittently hangs on subsequent ALTER TABLE results in batch queries // Tested with: Kuzu 0.10.0, Node.js v22.14.0 const kuzu = require('kuzu'); async function reproduceBug() { const db = new kuzu.Database('./test-db'); const conn = new kuzu.Connection(db); // Create table await conn.query('CREATE NODE TABLE Test(id INT64, PRIMARY KEY(id));'); // Execute multiple ALTER TABLE statements const results = await conn.query(` ALTER TABLE Test ADD col1 STRING; ALTER TABLE Test ADD col2 STRING; `); console.log('Got', results.length, 'results'); // Process first result - this works console.log('Processing result 1...'); const rows1 = await results[0].getAll(); console.log('Result 1:', rows1); // Output: [{ result: 'Table Test altered.' }] results[0].close(); // Process second result - this hangs intermittently (~30-50% of the time) console.log('Processing result 2...'); const rows2 = await results[1].getAll(); // <-- HANGS HERE INTERMITTENTLY console.log('Result 2:', rows2); // Sometimes never reached results[1].close(); } reproduceBug().catch(console.error);