Skip to content

fix: use deregisterTable for dropTable and dropTable for purgeTable#209

Merged
jackye1995 merged 2 commits intolance-format:mainfrom
jackye1995:fix-drop-table-semantics
Feb 6, 2026
Merged

fix: use deregisterTable for dropTable and dropTable for purgeTable#209
jackye1995 merged 2 commits intolance-format:mainfrom
jackye1995:fix-drop-table-semantics

Conversation

@jackye1995
Copy link
Copy Markdown
Contributor

@jackye1995 jackye1995 commented Feb 6, 2026

Summary

  • dropTable() now calls namespace.deregisterTable() which only removes metadata without deleting the underlying data
  • purgeTable() now calls namespace.dropTable() which removes metadata and deletes the underlying data

Changes

  • Modified dropTable() to use DeregisterTableRequest and call namespace.deregisterTable()
  • Modified purgeTable() to use DropTableRequest and call namespace.dropTable()
  • Updated DirectoryNamespace tests to disable extra_level config and explicitly create the "default" namespace so that manifest mode is used instead of directory listing mode

Related PR

🤖 Generated with Claude Code

@github-actions github-actions bot added the bug Something isn't working label Feb 6, 2026
@jackye1995 jackye1995 force-pushed the fix-drop-table-semantics branch from 9eb8261 to 4de2127 Compare February 6, 2026 00:43
@jackye1995 jackye1995 changed the title fix: use deregisterTable for dropTable, add purgeTable for data deletion fix: add purgeTable override that delegates to dropTable Feb 6, 2026
- dropTable now calls namespace.deregisterTable() which only removes
  metadata without deleting the underlying data
- purgeTable now calls namespace.dropTable() which removes metadata
  and deletes the underlying data
- Updated DirectoryNamespace tests to disable extra_level config and
  explicitly create the "default" namespace so that manifest mode is
  used instead of directory listing mode

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jackye1995 jackye1995 force-pushed the fix-drop-table-semantics branch from 4de2127 to 9225261 Compare February 6, 2026 00:56
@jackye1995 jackye1995 changed the title fix: add purgeTable override that delegates to dropTable fix: use deregisterTable for dropTable and dropTable for purgeTable Feb 6, 2026
@jackye1995 jackye1995 merged commit acf3e16 into lance-format:main Feb 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant