Title: feat(session): add tableExists and deregisterTable to SessionContext · Issue #101 · apache/datafusion-java · GitHub
Open Graph Title: feat(session): add tableExists and deregisterTable to SessionContext · Issue #101 · apache/datafusion-java
X Title: feat(session): add tableExists and deregisterTable to SessionContext · Issue #101 · apache/datafusion-java
Description: Is your feature request related to a problem or challenge? Problem SessionContext can let a caller register tables but there is no way to Check whether a table name is already registered Remove a registered table from the session This ma...
Open Graph Description: Is your feature request related to a problem or challenge? Problem SessionContext can let a caller register tables but there is no way to Check whether a table name is already registered Remove a r...
X Description: Is your feature request related to a problem or challenge? Problem SessionContext can let a caller register tables but there is no way to Check whether a table name is already registered Remove a r...
Opengraph URL: https://github.com/apache/datafusion-java/issues/101
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(session): add tableExists and deregisterTable to SessionContext","articleBody":"### Is your feature request related to a problem or challenge?\n\n# Problem\n \n `SessionContext` can let a caller register tables but there is no way to \n\n - Check whether a table name is already registered\n - Remove a registered table from the session\n \n This makes it tough to write safer code while registering:\n \n ```java\n // guard against double-registration — not possible today\n if (!ctx.tableExists(\"orders\")) {\n ctx.registerCsv(\"orders\", path);\n }\n \n // clean up a table when done — not possible today\n ctx.deregisterTable(\"orders\");\n\n Long-lived sessions that register and swap out tables dynamically, tests\n that need to clean up state between runs, and any application managing\n multiple datasets in one session all hit this gap.\n\n\n### Describe the solution you'd like\n\nAdd two methods to SessionContext:\n\n public boolean tableExists(String name)\n public void deregisterTable(String name)\n\n Both are thin wrappers over SessionContext::table_exist and\n SessionContext::deregister_table which already exist in the\n DataFusion Rust API.\n\n\n### Describe alternatives you've considered\n\nUsing ctx.sql(\"SHOW TABLES\") to check for table existence is possible but requires executing a full query. For the deregistering, there is no SQL based workaround\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/devoopsman45","@type":"Person","name":"devoopsman45"},"datePublished":"2026-06-05T23:39:33Z","url":"https://github.com/apache/datafusion-java/issues/101"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fb246a76-fd70-a3de-7e4c-0b7dabb738e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC28:623E7:1BC12A:26FD94:6B04719E |
| html-safe-nonce | b386cba774952af0889170cea5f3bb1040b54077ef306984cafb4351785fca2e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzI4OjYyM0U3OjFCQzEyQToyNkZEOTQ6NkIwNDcxOUUiLCJ2aXNpdG9yX2lkIjoiNjA4MjE4MDk4MDEwODcxODQ5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c872d2c68fa96d584271e12d154f562d3b72258e48f3cf6696ed91317f375305 |
| hovercard-subject-tag | issue:4600877810 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/datafusion-java/101/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1bb778d5babfc159c601e9adfad9ca693302a1bae15033767f8c16b0db87bd8c/apache/datafusion-java/issues/101 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1bb778d5babfc159c601e9adfad9ca693302a1bae15033767f8c16b0db87bd8c/apache/datafusion-java/issues/101 |
| og:image:alt | Is your feature request related to a problem or challenge? Problem SessionContext can let a caller register tables but there is no way to Check whether a table name is already registered Remove a r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | devoopsman45 |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/datafusion-java git https://github.com/apache/datafusion-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 1237105117 |
| octolytics-dimension-repository_nwo | apache/datafusion-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1237105117 |
| octolytics-dimension-repository_network_root_nwo | apache/datafusion-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width