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/09/29 22:45:03 UTC

[PR] feat(operator): reject label types the ML Scorer cannot score [texera]

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

   ### What changes were proposed in this PR?
   
   The Machine Learning Scorer's schema check let any two columns of the same type through as a classification pair. For BINARY and LARGE_BINARY pairs, every metric then failed inside scikit-learn. For TIMESTAMP pairs, Precision, Recall and F1 failed the same way. The error did not name either column. The check now rejects these pairs and names the two columns and the metrics that cannot score them. A TIMESTAMP pair scored by Accuracy alone is still accepted, since scikit-learn scores it (it only counts equal rows).
   
   ### Any related issues, documentation, discussions?
   
   Closes #8756.
   
   ### How was this PR tested?
   
   Three new cases in `MachineLearningScorerOpDescSpec`:
   - BINARY and LARGE_BINARY pairs are rejected.
   - A TIMESTAMP pair is rejected for F1 and not for Accuracy.
   - A TIMESTAMP pair with Accuracy alone passes.
   
   The first two fail without the change. The runtime failures were reproduced first by running the operator's generated metric code under scikit-learn 1.7.2 on each column type.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 5.5)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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(operator): reject label types the ML Scorer cannot score [texera]

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

   <!-- texera-reviewer-suggestion -->
   ### Automated Reviewer Suggestions
   
   Based on the `git blame` history of the changed files, we recommend the following reviewers:
   
   - No candidates found from `git blame` history.
   


-- 
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(operator): reject label types the ML Scorer cannot score [texera]

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

   <!-- texera-benchmarks-comment -->
   ## ⚠️ Benchmark changes need a look
   
   🟢 2 better · 🔴 9 worse · ⚪ 4 noise (<±5%) · 0 without baseline
   
   > Compared against main `acc6dd1` 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/36641390007)
   
   | | config | throughput | MB/s | latency | max Δ latest / 7d |
   |---|---|---:|---:|---:|---:|
   | 🔴 | bs=10 sw=10 sl=64 | 489 | 0.298 | 20,246/23,622/23,622 us | 🟢 -11.2% / 🔴 +63.4% |
   | 🔴 | bs=100 sw=10 sl=64 | 971 | 0.593 | 97,426/146,742/146,742 us | 🔴 +20.0% / 🔴 +38.3% |
   | 🔴 | bs=1000 sw=10 sl=64 | 1,147 | 0.7 | 866,005/1,011,721/1,011,721 us | 🔴 +9.7% / 🟢 -10.8% |
   
   <details><summary>Baseline details</summary>
   
   Latest main `acc6dd1` from same runner
   
   | config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
   |---|---|---:|---:|---:|---:|---:|
   | bs=10 sw=10 sl=64 | throughput | 489 tuples/sec | 548 tuples/sec | 818.88 tuples/sec | -10.8% | -40.3% |
   | bs=10 sw=10 sl=64 | MB/s | 0.298 MB/s | 0.334 MB/s | 0.5 MB/s | -10.8% | -40.4% |
   | bs=10 sw=10 sl=64 | p50 | 20,246 us | 18,701 us | 12,388 us | +8.3% | +63.4% |
   | bs=10 sw=10 sl=64 | p95 | 23,622 us | 26,603 us | 15,825 us | -11.2% | +49.3% |
   | bs=10 sw=10 sl=64 | p99 | 23,622 us | 26,603 us | 18,692 us | -11.2% | +26.4% |
   | bs=100 sw=10 sl=64 | throughput | 971 tuples/sec | 1,033 tuples/sec | 1,058 tuples/sec | -6.0% | -8.2% |
   | bs=100 sw=10 sl=64 | MB/s | 0.593 MB/s | 0.631 MB/s | 0.646 MB/s | -6.0% | -8.1% |
   | bs=100 sw=10 sl=64 | p50 | 97,426 us | 94,242 us | 99,191 us | +3.4% | -1.8% |
   | bs=100 sw=10 sl=64 | p95 | 146,742 us | 122,263 us | 106,139 us | +20.0% | +38.3% |
   | bs=100 sw=10 sl=64 | p99 | 146,742 us | 122,263 us | 116,669 us | +20.0% | +25.8% |
   | bs=1000 sw=10 sl=64 | throughput | 1,147 tuples/sec | 1,170 tuples/sec | 1,087 tuples/sec | -2.0% | +5.5% |
   | bs=1000 sw=10 sl=64 | MB/s | 0.7 MB/s | 0.714 MB/s | 0.664 MB/s | -2.0% | +5.5% |
   | bs=1000 sw=10 sl=64 | p50 | 866,005 us | 849,744 us | 971,064 us | +1.9% | -10.8% |
   | bs=1000 sw=10 sl=64 | p95 | 1,011,721 us | 922,407 us | 1,013,362 us | +9.7% | -0.2% |
   | bs=1000 sw=10 sl=64 | p99 | 1,011,721 us | 922,407 us | 1,040,298 us | +9.7% | -2.7% |
   
   </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,409.30,200,128000,489,0.298,20246.31,23622.43,23622.43
   1,100,10,64,20,2059.05,2000,1280000,971,0.593,97426.19,146742.41,146742.41
   2,1000,10,64,20,17437.28,20000,12800000,1147,0.700,866005.32,1011721.37,1011721.37
   ```
   
   </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] feat(operator): reject label types the ML Scorer cannot score [texera]

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


-- 
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(operator): reject label types the ML Scorer cannot score [texera]

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

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/8765?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 92.59%. Comparing base ([`acc6dd1`](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`691ae1c`](https://app.codecov.io/gh/apache/texera/commit/691ae1cbf846fdf4c662a28dc04fb488bedd7e61?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    #8765   +/-   ##
   =========================================
     Coverage     92.59%   92.59%           
     Complexity     4962     4962           
   =========================================
     Files          1242     1242           
     Lines         52883    52883           
     Branches       6546     6546           
   =========================================
     Hits          48965    48965           
     Misses         2290     2290           
     Partials       1628     1628           
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/8765/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/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `77.38% <ø> (ø)` | | Carriedforward from [acc6dd1](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?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/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `99.16% <ø> (ø)` | | Carriedforward from [acc6dd1](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?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/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `88.06% <ø> (ø)` | | Carriedforward from [acc6dd1](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?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/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `60.41% <ø> (ø)` | | Carriedforward from [acc6dd1](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?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/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `87.37% <ø> (ø)` | | |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.53% <ø> (ø)` | | Carriedforward from [acc6dd1](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?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/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `96.55% <ø> (ø)` | | Carriedforward from [acc6dd1](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?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/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.73% <ø> (ø)` | | |
   | [pyamber](https://app.codecov.io/gh/apache/texera/pull/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `98.56% <ø> (ø)` | | Carriedforward from [acc6dd1](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?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/8765/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `74.09% <ø> (ø)` | | Carriedforward from [acc6dd1](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?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/8765?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] feat(operator): reject label types the ML Scorer cannot score [texera]

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

   @carloea2 May you take a look at this?


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