René's URL Explorer Experiment


Title: feat(dataframe): add select/filter/count/show methods by andygrove · Pull Request #19 · apache/datafusion-java · GitHub

Open Graph Title: feat(dataframe): add select/filter/count/show methods by andygrove · Pull Request #19 · apache/datafusion-java

X Title: feat(dataframe): add select/filter/count/show methods by andygrove · Pull Request #19 · apache/datafusion-java

Description: Summary Adds four transformation/action methods to org.apache.datafusion.DataFrame, expanding the Java surface beyond sql → collect: DataFrame select(String... columnNames); DataFrame filter(String sqlPredicate); long count(); void show(); void show(int limit); Callers can now chain small queries in Java without round-tripping through SQL strings for every step: try (SessionContext ctx = new SessionContext()) { ctx.registerParquet("lineitem", "tpch-data/sf1/lineitem.parquet"); try (DataFrame df = ctx.sql("SELECT * FROM lineitem")) { long n = df.filter("l_orderkey < 100").count(); df.select("l_orderkey", "l_quantity").show(20); } } Design notes Non-destructive on the Rust side. DataFusion's DataFrame::select_columns/filter/count/show all take self by value, so each new JNI fn clones the borrowed DataFrame (cheap: Arc + LogicalPlan) and operates on the clone. The caller's original Java DataFrame stays usable for further operations. This is intentionally different from collect(), which still consumes its receiver because it ships the actual execution stream out. filter parsing. Uses DataFrame::parse_sql_expr so the predicate is parsed against the DataFrame's own schema. show() output. Goes to native stdout via DataFusion's printer (same behavior as the Rust / Python APIs). This collides with Surefire's forked-JVM IPC stream and produces a Corrupted channel warning during tests — non-fatal, BUILD SUCCESS — but worth addressing in a follow-up (Surefire forkNode extension or a formatString() companion method). Sync API. All four methods are synchronous to match the existing sql/collect shape. A future async refactor would touch all of DataFrame and SessionContext together. Out of scope sort, join, aggregate, limit, distinct, withColumn, typed Expr/Column API, async/CompletableFuture overloads. All can land in follow-ups using the same pattern. Testing 12 new tests in DataFrameTransformationsTest cover: Each new method on small inline VALUES tables. Non-destructive semantics — original DataFrame still usable after select/filter/count/show. Chained operations: filter().select().count(). IllegalStateException after close() and after collect(). RuntimeException on invalid column / malformed predicate. TPC-H lineitem smoke: filter(...).count() matches SELECT COUNT(*) ... WHERE ... (guarded by Assumptions.assumeTrue on file presence — skipped when TPC-H data is absent, as it is on CI). make test runs both the existing 13 tests and the 12 new ones — all 25 pass. cargo clippy --all-targets -- -D warnings is clean. ./mvnw spotless:check and ./mvnw apache-rat:check are clean.

Open Graph Description: Summary Adds four transformation/action methods to org.apache.datafusion.DataFrame, expanding the Java surface beyond sql → collect: DataFrame select(String... columnNames); DataFrame filter(String...

X Description: Summary Adds four transformation/action methods to org.apache.datafusion.DataFrame, expanding the Java surface beyond sql → collect: DataFrame select(String... columnNames); DataFrame filter(String...

Opengraph URL: https://github.com/apache/datafusion-java/pull/19

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5b2a8144-e518-e645-55ae-668c2211d8e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE9F8:E046C:2A0B14:3B5EF8:6B046A65
html-safe-nonce6784ca32befa1dcf729b459d6451651e654015673d190a49d0ea6fb8f8a0b854
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUY4OkUwNDZDOjJBMEIxNDozQjVFRjg6NkIwNDZBNjUiLCJ2aXNpdG9yX2lkIjoiNjk5OTU5MzI4MzA5MzgxNzk1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac99612d779898d13ab98808608e3447b6816333ce6c0260575b54d045c1ee7cc2
hovercard-subject-tagpull_request:3674002133
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/apache/datafusion-java/pull/19/files
twitter:imagehttps://avatars.githubusercontent.com/u/934084?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/934084?s=400&v=4
og:image:altSummary Adds four transformation/action methods to org.apache.datafusion.DataFrame, expanding the Java surface beyond sql → collect: DataFrame select(String... columnNames); DataFrame filter(String...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/apache/datafusion-java git https://github.com/apache/datafusion-java.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id1237105117
octolytics-dimension-repository_nwoapache/datafusion-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1237105117
octolytics-dimension-repository_network_root_nwoapache/datafusion-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseca4d07a7cef4e4b75f821dc25e7300d80c1450a9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/datafusion-java/pull/19/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F19%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F19%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=apache%2Fdatafusion-java
Reloadhttps://github.com/apache/datafusion-java/pull/19/files
Reloadhttps://github.com/apache/datafusion-java/pull/19/files
Reloadhttps://github.com/apache/datafusion-java/pull/19/files
apachehttps://github.com/apache
datafusion-javahttps://github.com/apache/datafusion-java
Codehttps://github.com/apache/datafusion-java
Issues10 (10)https://github.com/apache/datafusion-java/issues
Pull requests10 (10)https://github.com/apache/datafusion-java/pulls
Discussionshttps://github.com/apache/datafusion-java/discussions
Actionshttps://github.com/apache/datafusion-java/actions
Security and qualityhttps://github.com/apache/datafusion-java/security
Insightshttps://github.com/apache/datafusion-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fapache%2Fdatafusion-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fapache%2Fdatafusion-java%2Fissues%2Fnew%2Fchoose
andygrovehttps://github.com/andygrove
apache:mainhttps://github.com/apache/datafusion-java/tree/main
andygrove:feat/dataframe-select-filter-count-showhttps://github.com/andygrove/datafusion-java/tree/feat/dataframe-select-filter-count-show
Conversation 0 https://github.com/apache/datafusion-java/pull/19
Commits 7 https://github.com/apache/datafusion-java/pull/19/commits
Checks 1 https://github.com/apache/datafusion-java/pull/19/checks
Files changed https://github.com/apache/datafusion-java/pull/19/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/19/files
feat(dataframe): add select/filter/count/show methods https://github.com/apache/datafusion-java/pull/19/files#top
Show all changes 7 commits https://github.com/apache/datafusion-java/pull/19/files
f0990e9 feat(dataframe): add count() method andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/19/commits/f0990e9d89732a5620d62a5f5b4abe62f7a04dbe
e9eb7dd feat(dataframe): add show() and show(int) methods andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/19/commits/e9eb7ddbf479b3d44c818a361da0a1b7778e4987
68417cb feat(dataframe): add select(String...) method andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/19/commits/68417cb26366116e2ef781e953be4164722d8e17
5b4689e feat(dataframe): add filter(String) method andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/19/commits/5b4689ee7a1ab238c2e9dabeef745482939c806d
17f5851 test(dataframe): cover closed-handle and invalid-arg error paths andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/19/commits/17f5851ec73336f510367eca9b2106ee12ac5e40
6daabd9 test(dataframe): add TPC-H lineitem filter/count smoke test andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/19/commits/6daabd978e6354ad4d67ea8c8c5de578c0c5e8bd
59e7a0f style: apply spotless formatting andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/19/commits/59e7a0fd26c0d386e519392606eba2fa28c37528
Clear filters https://github.com/apache/datafusion-java/pull/19/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/19/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/19/files
lib.rs https://github.com/apache/datafusion-java/pull/19/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
DataFrame.java https://github.com/apache/datafusion-java/pull/19/files#diff-c00652b91d74b1a25919d498f9d01ab26806820c9dab0549275b6748dc5d2450
DataFrameTransformationsTest.java https://github.com/apache/datafusion-java/pull/19/files#diff-3bbf74356473e4f2dc18068d11cd58e335635546456f3b5e2a34807f8266e484
native/src/lib.rshttps://github.com/apache/datafusion-java/pull/19/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
View file https://github.com/andygrove/datafusion-java/blob/59e7a0fd26c0d386e519392606eba2fa28c37528/native/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/19/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/19/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/19/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/19/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/19/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
src/main/java/org/apache/datafusion/DataFrame.javahttps://github.com/apache/datafusion-java/pull/19/files#diff-c00652b91d74b1a25919d498f9d01ab26806820c9dab0549275b6748dc5d2450
View file https://github.com/andygrove/datafusion-java/blob/59e7a0fd26c0d386e519392606eba2fa28c37528/src/main/java/org/apache/datafusion/DataFrame.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/19/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/19/files#diff-c00652b91d74b1a25919d498f9d01ab26806820c9dab0549275b6748dc5d2450
https://github.com/apache/datafusion-java/pull/19/files#diff-c00652b91d74b1a25919d498f9d01ab26806820c9dab0549275b6748dc5d2450
src/test/java/org/apache/datafusion/DataFrameTransformationsTest.javahttps://github.com/apache/datafusion-java/pull/19/files#diff-3bbf74356473e4f2dc18068d11cd58e335635546456f3b5e2a34807f8266e484
View file https://github.com/andygrove/datafusion-java/blob/59e7a0fd26c0d386e519392606eba2fa28c37528/src/test/java/org/apache/datafusion/DataFrameTransformationsTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/19/{{ revealButtonHref }}
Please reload this pagehttps://github.com/apache/datafusion-java/pull/19/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.