Title: feat(dataframe): expose introspection methods (schema, explain, cache, describe) · Issue #45 · apache/datafusion-java · GitHub
Open Graph Title: feat(dataframe): expose introspection methods (schema, explain, cache, describe) · Issue #45 · apache/datafusion-java
X Title: feat(dataframe): expose introspection methods (schema, explain, cache, describe) · Issue #45 · apache/datafusion-java
Description: Is your feature request related to a problem or challenge? DataFrame introspection is currently limited to count(), show(), and show(int). Users wanting to inspect schema, see the planned query, or materialize an intermediate result have...
Open Graph Description: Is your feature request related to a problem or challenge? DataFrame introspection is currently limited to count(), show(), and show(int). Users wanting to inspect schema, see the planned query, or...
X Description: Is your feature request related to a problem or challenge? DataFrame introspection is currently limited to count(), show(), and show(int). Users wanting to inspect schema, see the planned query, or...
Opengraph URL: https://github.com/apache/datafusion-java/issues/45
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(dataframe): expose introspection methods (schema, explain, cache, describe)","articleBody":"### Is your feature request related to a problem or challenge?\n\nDataFrame introspection is currently limited to `count()`, `show()`,\nand `show(int)`. Users wanting to inspect schema, see the planned\nquery, or materialize an intermediate result have no Java entry point.\n\n### Describe the solution you'd like\n\n- **`DataFrame.schema()`** — return an Arrow `Schema`. Reuse the IPC\n round-trip already established for `SessionContext.tableSchema`\n (`tableSchemaIpc` pattern in `SessionContext.java`). Non-consuming;\n the DataFrame remains usable.\n- **`DataFrame.explain(boolean verbose, boolean analyze)`** — wraps\n `DataFusion::DataFrame::explain`, returning a `DataFrame` whose rows\n are the plan-explanation strings. Caller calls `show()` / `collect()`\n on the result. Matches DataFusion's own semantics.\n- **`DataFrame.cache()`** — materializes the plan into an in-memory\n table and returns a new DataFrame. Async on the Rust side; blocks on\n the Tokio runtime, same pattern as `collect`. Caller-closes the\n returned DataFrame.\n- **`DataFrame.describe()`** — async, returns a DataFrame with summary\n stats (count, mean, stddev, min, max) per numeric column. Same\n pattern as `cache`.\n\n### Describe alternatives you've considered\n\nFor `schema`: `ctx.tableSchema(name)` works only for *registered*\ntables. A user who built a DataFrame via `sql(\"SELECT …\")` or chained\ntransformations has no schema accessor.\n\nFor `explain`: `ctx.sql(\"EXPLAIN \u003cquery>\")` works but only against a\nSQL string.\n\n### Additional context\n\nAll four are non-consuming except `cache` and `describe` (which return\nnew DataFrames the caller owns and closes). The schema/explain pair are\nthe most-requested and could land first as a smaller PR; `cache` and\n`describe` are independent and can follow.","author":{"url":"https://github.com/andygrove","@type":"Person","name":"andygrove"},"datePublished":"2026-05-13T22:08:55Z","url":"https://github.com/apache/datafusion-java/issues/45"}
| 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:9aa99567-06d8-f0d8-a005-931c09bff7cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E096:376486:24E0EB:34593F:6B046A0A |
| html-safe-nonce | 1fc0219ac8fdf1109323ffd77bfb1fe0340dee26e4370fb9aec814f2b7157ff4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDk2OjM3NjQ4NjoyNEUwRUI6MzQ1OTNGOjZCMDQ2QTBBIiwidmlzaXRvcl9pZCI6IjE3Nzk2NjQ3Njc5ODQ4ODgzMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d18e489f22066430eee6348fc1e7d1bafedea7bb6b16383e05664c85e3498aac |
| hovercard-subject-tag | issue:4441515279 |
| 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/45/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18e0f0aab3a7b0bf5056e4c500c0d1b4ad5c5cdd13c62a43a81fe723c7a3891a/apache/datafusion-java/issues/45 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18e0f0aab3a7b0bf5056e4c500c0d1b4ad5c5cdd13c62a43a81fe723c7a3891a/apache/datafusion-java/issues/45 |
| og:image:alt | Is your feature request related to a problem or challenge? DataFrame introspection is currently limited to count(), show(), and show(int). Users wanting to inspect schema, see the planned query, or... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andygrove |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| 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