Skip to content

Conversation

@JC1738
Copy link
Owner

@JC1738 JC1738 commented Jan 23, 2026

Summary

  • Skip MotherDuck's internal cache tables (mdClientCache_*) in replacement scan
  • Prevents errors when using DuckDB WASM with both MotherDuck and duckarrow attached
  • Refactors skip logic to validation.ShouldSkipTable() for testability

Test plan

  • make test-unit passes with new TestShouldSkipTable tests
  • Test in DuckDB WASM with MotherDuck attached: select * from my_db.ApiEvent order by createdAt desc LIMIT 100;

When using DuckDB WASM with both MotherDuck and duckarrow attached,
MotherDuck's internal cache tables (mdClientCache_*) were being
intercepted by the replacement scan and forwarded to GizmoSQL.

- Add ShouldSkipTable() to validation package for testability
- Skip tables matching mdclientcache_* prefix (case-insensitive)
- Add comprehensive unit tests for skip logic
@JC1738 JC1738 merged commit 0e7b4c3 into main Jan 23, 2026
8 checks passed
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