Skip to content

[TEMP] feat: datasets prefix for dataset file paths - #7

Closed
aicam wants to merge 4 commits into
mainfrom
feat/repo-type-update-logical-path
Closed

aicam wants to merge 4 commits into
mainfrom
feat/repo-type-update-logical-path

Conversation

@aicam

@aicam aicam commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Temporary PR for review visibility — opened to make the diff easy to inspect.

This branch differs from `main` by a single commit: `54de47b4c — feat: `datasets` prefix`.

Summary

Introduces a `datasets/` resource-type prefix as the first segment of dataset file paths:

before:  /ownerEmail/datasetName/versionName/fileRelativePath
after:   /datasets/ownerEmail/datasetName/versionName/fileRelativePath

The backend uses a RESOURCE_TYPE_PREFIXES = Set("datasets") set (extensible) so other resource types can coexist under a namespaced root.

Changes (6 files, +45 / −21)

Backend (Scala)

  • FileResolver.scala — adds RESOURCE_TYPE_PREFIXES; strips a leading datasets segment before parsing owner/dataset/version.
  • DatasetFileNode.scala — builds a datasets directory node under root; owner nodes hang off it (extra tree level).
  • DatasetResource.scala — adapts to new tree depth (ownerNode = datasetsNode.children.head); total-size calc starts from datasetsNode.
  • FileResolverSpec.scala — test fixtures updated to /datasets/....

Frontend (TypeScript)

  • dataset-file.ts — parse strips a leading datasets segment; generation emits the /datasets/... prefix.
  • datasetVersionFileTree.ts — relative-path now strips the first 4 segments instead of 3.

Note

Parsing is backward-compatible (strips prefix only if present), but path generation always emits /datasets/.... Verify persisted paths / external callers before relying on this.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @Yicong-Huang, @aglinxinyuan, @Ma77Ball
    You can notify them by mentioning @Yicong-Huang, @aglinxinyuan, @Ma77Ball in a comment.

@github-actions

Copy link
Copy Markdown

⚠️ Benchmark changes need a look

🟢 2 better · 🔴 5 worse · ⚪ 8 noise (<±5%) · 0 without baseline

Compared against main 607f581 benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 386 0.235 24,834/37,729/37,729 us 🔴 +18.6% / ⚪ within ±5%
🟢 bs=100 sw=10 sl=64 825 0.503 119,856/136,630/136,630 us 🟢 -13.7% / ⚪ within ±5%
⚪ bs=1000 sw=10 sl=64 918 0.561 1,098,451/1,137,318/1,137,318 us ⚪ within ±5% / ⚪ within ±5%
Baseline details

Latest main 607f581 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 386 tuples/sec 447 tuples/sec n/a -13.6% n/a
bs=10 sw=10 sl=64 MB/s 0.235 MB/s 0.273 MB/s n/a -13.9% n/a
bs=10 sw=10 sl=64 p50 24,834 us 20,937 us n/a +18.6% n/a
bs=10 sw=10 sl=64 p95 37,729 us 32,665 us n/a +15.5% n/a
bs=10 sw=10 sl=64 p99 37,729 us 32,665 us n/a +15.5% n/a
bs=100 sw=10 sl=64 throughput 825 tuples/sec 813 tuples/sec n/a +1.5% n/a
bs=100 sw=10 sl=64 MB/s 0.503 MB/s 0.496 MB/s n/a +1.4% n/a
bs=100 sw=10 sl=64 p50 119,856 us 119,948 us n/a -0.1% n/a
bs=100 sw=10 sl=64 p95 136,630 us 158,346 us n/a -13.7% n/a
bs=100 sw=10 sl=64 p99 136,630 us 158,346 us n/a -13.7% n/a
bs=1000 sw=10 sl=64 throughput 918 tuples/sec 927 tuples/sec n/a -1.0% n/a
bs=1000 sw=10 sl=64 MB/s 0.561 MB/s 0.566 MB/s n/a -0.9% n/a
bs=1000 sw=10 sl=64 p50 1,098,451 us 1,080,174 us n/a +1.7% n/a
bs=1000 sw=10 sl=64 p95 1,137,318 us 1,116,855 us n/a +1.8% n/a
bs=1000 sw=10 sl=64 p99 1,137,318 us 1,116,855 us n/a +1.8% n/a
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,518.60,200,128000,386,0.235,24833.63,37728.77,37728.77
1,100,10,64,20,2425.52,2000,1280000,825,0.503,119855.61,136630.11,136630.11
2,1000,10,64,20,21777.43,20000,12800000,918,0.561,1098450.92,1137317.67,1137317.67

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has
not had any activity for 30 days. It will be closed in 7 days if no
further activity occurs.

If this PR is still relevant, please:

  • Push new commits or rebase onto the latest main, or
  • Comment with a status update, or
  • Address any open review feedback.

To exempt this PR from auto-close, a maintainer can add the pinned label.
Thank you for your contribution to Apache Texera (incubating)!

@github-actions github-actions Bot added the stale label Aug 10, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed due to 37 days of inactivity.
If you would like to continue this work, please re-open the PR or open a new
one referencing this. Thank you for your contribution.

@github-actions github-actions Bot closed this Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant