You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "kz930 (via GitHub)" <gi...@apache.org> on 2026/08/02 07:24:01 UTC

[PR] fix(visualization): retarget attributeTypeRules at the properties they name [texera]

kz930 opened a new pull request, #7249:
URL: https://github.com/apache/texera/pull/7249

   ### What changes were proposed in this pull request?
   
   Four `attributeTypeRules` name keys that match no property, so the property editor's `findAttributeType` returns `undefined` and `checkConstraint` returns without checking anything.
   
   `LineConfig` used the Scala field names rather than the `@JsonProperty` names, and `ScatterMatrixChartOpDesc` named `value` where the property is `Selected Attributes`; both are retargeted at the property they meant. `Scatter3dChartOpDesc` and `FunnelPlotOpDesc` constrained a `title` that neither operator declares, and did so with the bare string `"string"` rather than an object, so even under a correct key `constraint.enum` / `const` / `allOf` would all be undefined and the check would still no-op; those two rules are removed rather than invented anew.
   
   ### Why are the changes needed?
   
   A line chart's x and y axes accept string columns today despite declaring `["integer", "long", "double"]`, and the same holds for the scatter matrix's dimensions. `BandConfig` extends `LineConfig` and inherited the same dead rule. Nothing reports a key that names no property, so the rules read as enforced while enforcing nothing.
   
   ### Does this PR introduce any user-facing change?
   
   Yes. Selecting a non-numeric column for a line chart's axes or the scatter matrix's Selected Attributes now shows the type warning the rule always intended. Nothing changes for a numeric column, and removing the two `title` rules changes nothing at all, since they never applied.
   
   ### How was this patch tested?
   
   `WorkflowOperator/compile`, `WorkflowOperator/scalafmtCheckAll`, and the four operators' existing descriptor specs (24 tests, all passing).
   
   Closes #7210
   
   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] fix(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #7249:
URL: https://github.com/apache/texera/pull/7249#issuecomment-5156203117

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/7249?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 82.64%. Comparing base ([`436b37e`](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`4b1d1f5`](https://app.codecov.io/gh/apache/texera/commit/4b1d1f5dd7c60deb522671502a554a8a53035abd?dropdown=coverage&el=desc&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    #7249   +/-   ##
   =========================================
     Coverage     82.64%   82.64%           
     Complexity     4080     4080           
   =========================================
     Files          1162     1162           
     Lines         46282    46282           
     Branches       5160     5160           
   =========================================
     Hits          38250    38250           
     Misses         6341     6341           
     Partials       1691     1691           
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/7249/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/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.00% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [agent-service](https://app.codecov.io/gh/apache/texera/pull/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.65% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?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/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `79.30% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?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/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `43.60% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?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/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `65.97% <ø> (ø)` | | |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `66.80% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?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/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.55% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?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/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `78.89% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [pyamber](https://app.codecov.io/gh/apache/texera/pull/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `97.36% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?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/7249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `26.31% <ø> (ø)` | | Carriedforward from [436b37e](https://app.codecov.io/gh/apache/texera/commit/436b37e9b62e6be2ef8ea911ec30387dd7e80415?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/7249?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


Re: [PR] fix(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7249:
URL: https://github.com/apache/texera/pull/7249#issuecomment-5156188775

   <!-- texera:template-compliance -->
   👋 Thanks for opening this pull request, @kz930!
   
   It looks like the pull request description doesn't quite follow our template yet:
   
   - The **What changes were proposed in this PR?** section is missing; please keep the template's headings.
   - The **How was this PR tested?** section is missing; please keep the template's headings.
   - The **Was this PR authored or co-authored using generative AI tooling?** section is missing; please keep the template's headings.
   
   Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
   
   You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
   


-- 
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] fix(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7249:
URL: https://github.com/apache/texera/pull/7249#issuecomment-5156189609

   <!-- 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:** `@eugenegujing`, `@carloea2`
     You can notify them by mentioning `@eugenegujing`, `@carloea2` 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] feat(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "kz930 (via GitHub)" <gi...@apache.org>.
kz930 commented on PR #7249:
URL: https://github.com/apache/texera/pull/7249#issuecomment-5246643414

   @xuang7 I think this is good to merge.


-- 
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] feat(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "xuang7 (via GitHub)" <gi...@apache.org>.
xuang7 merged PR #7249:
URL: https://github.com/apache/texera/pull/7249


-- 
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] fix(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on PR #7249:
URL: https://github.com/apache/texera/pull/7249#issuecomment-5189020766

   @kz930 could you please follow PR template? thanks


-- 
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] fix(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "kz930 (via GitHub)" <gi...@apache.org>.
kz930 commented on PR #7249:
URL: https://github.com/apache/texera/pull/7249#issuecomment-5185358282

   Added `AttributeTypeRuleTargetSpec`: it sweeps every registered operator and checks each `attributeTypeRules` key against the properties declared at the same node. Against these four descriptors as they stand on main, it fails seven times.


-- 
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] fix(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7249:
URL: https://github.com/apache/texera/pull/7249#issuecomment-5156218189

   <!-- texera-benchmarks-comment -->
   ## ⚠️ Benchmark changes need a look
   
   🟢 2 better · 🔴 4 worse · ⚪ 9 noise (<±5%) · 0 without baseline
   
   > Compared against main `436b37e` 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/30737740472)
   
   | | config | throughput | MB/s | latency | max Δ latest / 7d |
   |---|---|---:|---:|---:|---:|
   | 🟢 | bs=10 sw=10 sl=64 | 407 | 0.248 | 24,102/29,964/29,964 us | 🟢 -10.4% / 🔴 +93.3% |
   | 🔴 | bs=100 sw=10 sl=64 | 906 | 0.553 | 104,530/164,203/164,203 us | 🔴 +24.3% / 🔴 +52.9% |
   | 🔴 | bs=1000 sw=10 sl=64 | 1,092 | 0.667 | 910,719/1,126,227/1,126,227 us | 🔴 +19.5% / 🔴 +9.2% |
   
   <details><summary>Baseline details</summary>
   
   Latest main `436b37e` from same runner
   
   | config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
   |---|---|---:|---:|---:|---:|---:|
   | bs=10 sw=10 sl=64 | throughput | 407 tuples/sec | 412 tuples/sec | 782.98 tuples/sec | -1.2% | -48.0% |
   | bs=10 sw=10 sl=64 | MB/s | 0.248 MB/s | 0.251 MB/s | 0.478 MB/s | -1.2% | -48.1% |
   | bs=10 sw=10 sl=64 | p50 | 24,102 us | 24,675 us | 12,467 us | -2.3% | +93.3% |
   | bs=10 sw=10 sl=64 | p95 | 29,964 us | 33,453 us | 15,695 us | -10.4% | +90.9% |
   | bs=10 sw=10 sl=64 | p99 | 29,964 us | 33,453 us | 18,950 us | -10.4% | +58.1% |
   | bs=100 sw=10 sl=64 | throughput | 906 tuples/sec | 934 tuples/sec | 996.92 tuples/sec | -3.0% | -9.1% |
   | bs=100 sw=10 sl=64 | MB/s | 0.553 MB/s | 0.57 MB/s | 0.608 MB/s | -3.0% | -9.1% |
   | bs=100 sw=10 sl=64 | p50 | 104,530 us | 103,408 us | 100,899 us | +1.1% | +3.6% |
   | bs=100 sw=10 sl=64 | p95 | 164,203 us | 132,071 us | 107,385 us | +24.3% | +52.9% |
   | bs=100 sw=10 sl=64 | p99 | 164,203 us | 132,071 us | 115,226 us | +24.3% | +42.5% |
   | bs=1000 sw=10 sl=64 | throughput | 1,092 tuples/sec | 1,104 tuples/sec | 1,024 tuples/sec | -1.1% | +6.6% |
   | bs=1000 sw=10 sl=64 | MB/s | 0.667 MB/s | 0.674 MB/s | 0.625 MB/s | -1.0% | +6.7% |
   | bs=1000 sw=10 sl=64 | p50 | 910,719 us | 913,869 us | 989,300 us | -0.3% | -7.9% |
   | bs=1000 sw=10 sl=64 | p95 | 1,126,227 us | 942,510 us | 1,031,689 us | +19.5% | +9.2% |
   | bs=1000 sw=10 sl=64 | p99 | 1,126,227 us | 942,510 us | 1,058,394 us | +19.5% | +6.4% |
   
   </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,491.90,200,128000,407,0.248,24102.01,29964.19,29964.19
   1,100,10,64,20,2206.98,2000,1280000,906,0.553,104529.84,164202.75,164202.75
   2,1000,10,64,20,18315.06,20000,12800000,1092,0.667,910718.54,1126226.96,1126226.96
   ```
   
   </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] fix(visualization): retarget attributeTypeRules at the properties they name [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7249:
URL: https://github.com/apache/texera/pull/7249#issuecomment-5156188899

   <!-- backport-auto-label-report -->
   ### Backport auto-label report
   
   This `fix:` PR was checked against each actively-supported release branch. `release/*` labels drive the post-merge backport, so add or remove one to change where this fix lands.
   
   | Release branch | Analysis |
   | --- | --- |
   | ✅ `release/v1.2` | Change detected on this branch — label added; this fix is queued to backport here. Requested review from @xuang7. |
   
   _[Auto-label run](https://github.com/apache/texera/actions/runs/30737736195)._


-- 
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