Skip to content

fix(csv-generate): throw synchronous generation validation errors - #530

Open
xiehuanyi wants to merge 1 commit into
adaltas:masterfrom
xiehuanyi:fix/generate-sync-errors-round3
Open

xiehuanyi wants to merge 1 commit into
adaltas:masterfrom
xiehuanyi:fix/generate-sync-errors-round3

Conversation

@xiehuanyi

Copy link
Copy Markdown
Contributor

The synchronous generator enters an endless loop when a column returns an unsupported value: the shared generator calls destroy(error), but the sync loop never receives that asynchronous stream error or a completion signal. Surface those validation errors synchronously in the sync adapter.

A standalone reproduction with columns: [() => true] timed out after two seconds before this change. Regression tests now verify immediate errors for unsupported values, errors after a valid record, and preservation of exceptions thrown by column functions. Rebuilt distributed bundles.

Validation: npm test --workspace csv-generate (84 passing; 2 existing pending), npm run lint:check --workspace csv-generate (no errors; 2 existing pending-test warnings), and npm run build --workspace csv-generate.

Copilot AI balanced review requested due to automatic review settings October 11, 2026 18:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants