You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "tanishqgandhi1908 (via GitHub)" <gi...@apache.org> on 2026/08/24 18:16:25 UTC
[PR] refactor(amber): make the hub and unified search resource-agnostic [texera]
tanishqgandhi1908 opened a new pull request, #7928:
URL: https://github.com/apache/texera/pull/7928
### What changes were proposed in this PR?
The hub dispatched on `EntityType` in four separate places, and `DatasetSearchQueryBuilder`
carried its own copy of the access-scoped join, the keyword/date/id filter and the
LakeFS-sized hydration. Adding a second resource type meant four dispatch edits plus a
clone of the query logic, and two of those sites compiled cleanly but failed at runtime.
- `EntityTables` now exposes one `EntityTableSet` per entity type, with `cloneTable` as an
`Option` and a new `AccessTable` that removes the non-exhaustive match in
`HubResource.userAccess`.
- `VersionedResourceTables` names the columns of a LakeFS-backed resource;
`VersionedResourceSearchQueryBuilder` holds the single copy of FROM / WHERE / hydration.
`DatasetSearchQueryBuilder` keeps only its projection.
- The five dataset-only slots in `UnifiedResourceSchema` become shared versioned-resource
slots, so the next resource type widens the union by two columns instead of seven.
Two existing bugs are fixed as a result: `getTops?entityType=dataset` with no `actionTypes`
no longer 500s on a throwing `CloneTable(Dataset)`, and `getCounts`' clone guard now asks
whether the entity type has a clone table instead of whether it is not a dataset.
No user-facing behavior changes.
### Any related issues, documentation, discussions?
Prepares the amber side of #6501 (part of #6494): adding models becomes one descriptor plus
one registry entry. Contains #6872 and #7922, so their commits show in the diff until they
merge.
### How was this PR tested?
Existing suites, unmodified except where they pin the renamed projection aliases:
`WorkflowExecutionService/testOnly *dashboard*` — 467/467, and `FileService/test` — 376/376.
New `VersionedResourceTablesSpec` covers the descriptor contract and the access-join
predicate; `EntityTablesSpec` covers the registry; regression tests added for the two bugs
above (`getTops` with no `actionTypes`, and the clone bucket for a cloneless entity type).
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): make the hub and unified search resource-agnostic [texera]
Posted by "tanishqgandhi1908 (via GitHub)" <gi...@apache.org>.
tanishqgandhi1908 commented on PR #7928:
URL: https://github.com/apache/texera/pull/7928#issuecomment-5428316216
/request-review @aicam
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): make the hub and unified search resource-agnostic [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7928:
URL: https://github.com/apache/texera/pull/7928#issuecomment-5399521442
<!-- texera-benchmarks-comment -->
## ✅ No material benchmark regressions detected
🟢 2 better · 🔴 0 worse · ⚪ 13 noise (<±5%) · 0 without baseline
> Compared against main `6b8027e` 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](https://apache.github.io/texera/dev/bench/) · [Run](https://github.com/apache/texera/actions/runs/32761474076)
| | config | throughput | MB/s | latency | max Δ latest / 7d |
|---|---|---:|---:|---:|---:|
| 🟢 | bs=10 sw=10 sl=64 | 428 | 0.261 | 22,407/31,346/31,346 us | 🟢 -10.5% / 🔴 +122.8% |
| ⚪ | bs=100 sw=10 sl=64 | 937 | 0.572 | 105,303/136,734/136,734 us | ⚪ within ±5% / 🔴 +41.7% |
| ⚪ | bs=1000 sw=10 sl=64 | 1,104 | 0.674 | 902,326/1,010,345/1,010,345 us | ⚪ within ±5% / 🔴 +8.6% |
<details><summary>Baseline details</summary>
Latest main `6b8027e` from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---:|---:|---:|---:|---:|
| bs=10 sw=10 sl=64 | throughput | 428 tuples/sec | 439 tuples/sec | 863.81 tuples/sec | -2.5% | -50.5% |
| bs=10 sw=10 sl=64 | MB/s | 0.261 MB/s | 0.268 MB/s | 0.527 MB/s | -2.6% | -50.5% |
| bs=10 sw=10 sl=64 | p50 | 22,407 us | 22,829 us | 11,488 us | -1.8% | +95.0% |
| bs=10 sw=10 sl=64 | p95 | 31,346 us | 35,013 us | 14,067 us | -10.5% | +122.8% |
| bs=10 sw=10 sl=64 | p99 | 31,346 us | 35,013 us | 17,591 us | -10.5% | +78.2% |
| bs=100 sw=10 sl=64 | throughput | 937 tuples/sec | 931 tuples/sec | 1,127 tuples/sec | +0.6% | -16.9% |
| bs=100 sw=10 sl=64 | MB/s | 0.572 MB/s | 0.568 MB/s | 0.688 MB/s | +0.7% | -16.9% |
| bs=100 sw=10 sl=64 | p50 | 105,303 us | 103,559 us | 89,893 us | +1.7% | +17.1% |
| bs=100 sw=10 sl=64 | p95 | 136,734 us | 134,371 us | 96,506 us | +1.8% | +41.7% |
| bs=100 sw=10 sl=64 | p99 | 136,734 us | 134,371 us | 104,915 us | +1.8% | +30.3% |
| bs=1000 sw=10 sl=64 | throughput | 1,104 tuples/sec | 1,104 tuples/sec | 1,156 tuples/sec | 0.0% | -4.5% |
| bs=1000 sw=10 sl=64 | MB/s | 0.674 MB/s | 0.674 MB/s | 0.705 MB/s | 0.0% | -4.4% |
| bs=1000 sw=10 sl=64 | p50 | 902,326 us | 901,957 us | 886,448 us | +0.0% | +1.8% |
| bs=1000 sw=10 sl=64 | p95 | 1,010,345 us | 968,358 us | 930,093 us | +4.3% | +8.6% |
| bs=1000 sw=10 sl=64 | p99 | 1,010,345 us | 968,358 us | 963,104 us | +4.3% | +4.9% |
</details>
<details><summary>Raw CSV</summary>
```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,467.42,200,128000,428,0.261,22406.51,31345.62,31345.62
1,100,10,64,20,2135.21,2000,1280000,937,0.572,105302.61,136733.86,136733.86
2,1000,10,64,20,18124.13,20000,12800000,1104,0.674,902325.98,1010344.73,1010344.73
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): make the hub and unified search resource-agnostic [texera]
Posted by "aicam (via GitHub)" <gi...@apache.org>.
aicam merged PR #7928:
URL: https://github.com/apache/texera/pull/7928
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): make the hub and unified search resource-agnostic [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7928:
URL: https://github.com/apache/texera/pull/7928#issuecomment-5399453474
<!-- texera-reviewer-suggestion -->
### Automated Reviewer Suggestions
Based on the `git blame` history of the changed files, we recommend the following reviewers:
- **Contributors with relevant context:** `@aglinxinyuan`, `@Mrudhulraj`, `@VuMartin`
You can notify them by mentioning `@aglinxinyuan`, `@Mrudhulraj`, `@VuMartin` in a comment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): make the hub and unified search resource-agnostic [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #7928:
URL: https://github.com/apache/texera/pull/7928#issuecomment-5399484205
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/7928?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `87.78626%` with `16 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 92.57%. Comparing base ([`6b8027e`](https://app.codecov.io/gh/apache/texera/commit/6b8027e0d80eaddeff57cdae1407190fb36f5a8d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`25ebef8`](https://app.codecov.io/gh/apache/texera/commit/25ebef839d7afe599719e9be12022e88d007220a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:white_check_mark: All tests successful. No failed tests found.
| [Files with missing lines](https://app.codecov.io/gh/apache/texera/pull/7928?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...apache/texera/service/resource/ModelResource.scala](https://app.codecov.io/gh/apache/texera/pull/7928?src=pr&el=tree&filepath=file-service%2Fsrc%2Fmain%2Fscala%2Forg%2Fapache%2Ftexera%2Fservice%2Fresource%2FModelResource.scala&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZmlsZS1zZXJ2aWNlL3NyYy9tYWluL3NjYWxhL29yZy9hcGFjaGUvdGV4ZXJhL3NlcnZpY2UvcmVzb3VyY2UvTW9kZWxSZXNvdXJjZS5zY2FsYQ==) | 84.46% | [9 Missing and 7 partials :warning: ](https://app.codecov.io/gh/apache/texera/pull/7928?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #7928 +/- ##
============================================
+ Coverage 92.52% 92.57% +0.05%
- Complexity 4620 4625 +5
============================================
Files 1175 1175
Lines 47466 47447 -19
Branches 5307 5293 -14
============================================
+ Hits 43916 43923 +7
+ Misses 1980 1956 -24
+ Partials 1570 1568 -2
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
|---|---|---|---|
| [access-control-service](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.00% <ø> (ø)` | | |
| [agent-service](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `98.62% <ø> (ø)` | | Carriedforward from [eafd888](https://app.codecov.io/gh/apache/texera/commit/eafd88830765ca145c5407d0db50d2f9fa6165f1?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [amber](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `89.19% <ø> (+0.06%)` | :arrow_up: | Carriedforward from [eafd888](https://app.codecov.io/gh/apache/texera/commit/eafd88830765ca145c5407d0db50d2f9fa6165f1?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `73.67% <ø> (ø)` | | Carriedforward from [eafd888](https://app.codecov.io/gh/apache/texera/commit/eafd88830765ca145c5407d0db50d2f9fa6165f1?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [config-service](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `86.73% <ø> (ø)` | | Carriedforward from [eafd888](https://app.codecov.io/gh/apache/texera/commit/eafd88830765ca145c5407d0db50d2f9fa6165f1?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [file-service](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `86.17% <87.78%> (+1.69%)` | :arrow_up: | Carriedforward from [eafd888](https://app.codecov.io/gh/apache/texera/commit/eafd88830765ca145c5407d0db50d2f9fa6165f1?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [frontend](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `94.40% <ø> (ø)` | | Carriedforward from [eafd888](https://app.codecov.io/gh/apache/texera/commit/eafd88830765ca145c5407d0db50d2f9fa6165f1?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `79.13% <ø> (ø)` | | |
| [pyamber](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `97.57% <ø> (+0.04%)` | :arrow_up: | Carriedforward from [eafd888](https://app.codecov.io/gh/apache/texera/commit/eafd88830765ca145c5407d0db50d2f9fa6165f1?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/7928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `77.19% <ø> (ø)` | | Carriedforward from [eafd888](https://app.codecov.io/gh/apache/texera/commit/eafd88830765ca145c5407d0db50d2f9fa6165f1?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
*This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/7928?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org