You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "vrajat (via GitHub)" <gi...@apache.org> on 2025/04/16 17:08:58 UTC

[PR] Add TableSegmentsInfo to thrift specification [pinot]

vrajat opened a new pull request, #15573:
URL: https://github.com/apache/pinot/pull/15573

   The InstanceRequest thrift object is used to send query execution information to the server by the broker. The object can only store information for a single table. For Logical Table support, the object needs to store information for a list of tables.
   
    Add a new thrift spec TableSegmentsInfo that stores that table name and list of segment names that have to be queried. Add a TableSegmentsInfo list to the the InstanceRequest spec.
   
    Closes #15558


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add TableSegmentsInfo to Thrift and Proto to broker/server messages [pinot]

Posted by "vrajat (via GitHub)" <gi...@apache.org>.
vrajat commented on code in PR #15573:
URL: https://github.com/apache/pinot/pull/15573#discussion_r2055259012


##########
pinot-common/src/main/proto/server.proto:
##########
@@ -25,11 +25,18 @@ service PinotQueryServer {
   rpc Submit(ServerRequest) returns (stream ServerResponse);
 }
 
+message TableSegmentsInfo {
+  string tableName = 1;
+  repeated string segments = 2;
+  repeated string optionalSegments = 3;
+}
+
 message ServerRequest {
   map<string, string> metadata = 1;
   string sql = 2;
   repeated string segments = 3;
   bytes payload = 4;
+  repeated TableSegmentsInfo tableSegmentsInfo = 5;

Review Comment:
   I've added a field for optional segments as well.



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add TableSegmentsInfo to thrift specification [pinot]

Posted by "vrajat (via GitHub)" <gi...@apache.org>.
vrajat commented on PR #15573:
URL: https://github.com/apache/pinot/pull/15573#issuecomment-2810201827

   cc @abhishekbafna 


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add TableSegmentsInfo to thrift specification [pinot]

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

   ## [Codecov](https://app.codecov.io/gh/apache/pinot/pull/15573?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 55.77%. Comparing base [(`41c37ec`)](https://app.codecov.io/gh/apache/pinot/commit/41c37ec68eee17697a2887b01eb16fa6012185cd?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`43af130`)](https://app.codecov.io/gh/apache/pinot/commit/43af1300308697750116b5b757e6c8784d7066b8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   
   > :exclamation:  There is a different number of reports uploaded between BASE (41c37ec) and HEAD (43af130). Click for more details.
   > 
   > <details><summary>HEAD has 62 uploads less than BASE</summary>
   >
   >| Flag | BASE (41c37ec) | HEAD (43af130) |
   >|------|------|------|
   >|unittests|5|1|
   >|unittests1|2|1|
   >|java-21|9|1|
   >|skip-bytebuffers-false|8|0|
   >|temurin|14|1|
   >|unittests2|3|0|
   >|skip-bytebuffers-true|3|1|
   >|java-11|5|0|
   >|integration|9|0|
   >|integration2|3|0|
   >|integration1|3|0|
   >|custom-integration1|3|0|
   ></details>
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #15573      +/-   ##
   ============================================
   - Coverage     62.82%   55.77%   -7.06%     
   + Complexity     1381      675     -706     
   ============================================
     Files          2863     2238     -625     
     Lines        162447   120891   -41556     
     Branches      24881    19305    -5576     
   ============================================
   - Hits         102065    67431   -34634     
   + Misses        52699    47930    -4769     
   + Partials       7683     5530    -2153     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [custom-integration1](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration1](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration2](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [java-11](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [java-21](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.77% <ø> (-7.03%)` | :arrow_down: |
   | [skip-bytebuffers-false](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [skip-bytebuffers-true](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.77% <ø> (+22.26%)` | :arrow_up: |
   | [temurin](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.77% <ø> (-7.06%)` | :arrow_down: |
   | [unittests](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.77% <ø> (-7.05%)` | :arrow_down: |
   | [unittests1](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.77% <ø> (-0.04%)` | :arrow_down: |
   | [unittests2](https://app.codecov.io/gh/apache/pinot/pull/15573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   
   Flags with carried forward coverage won't be shown. [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#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/pinot/pull/15573?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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add TableSegmentsInfo to Thrift and Proto to broker/server messages [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on code in PR #15573:
URL: https://github.com/apache/pinot/pull/15573#discussion_r2055052401


##########
pinot-common/src/main/proto/server.proto:
##########
@@ -25,11 +25,18 @@ service PinotQueryServer {
   rpc Submit(ServerRequest) returns (stream ServerResponse);
 }
 
+message TableSegmentsInfo {
+  string tableName = 1;
+  repeated string segments = 2;
+  repeated string optionalSegments = 3;
+}
+
 message ServerRequest {
   map<string, string> metadata = 1;
   string sql = 2;
   repeated string segments = 3;
   bytes payload = 4;
+  repeated TableSegmentsInfo tableSegmentsInfo = 5;

Review Comment:
   Not introduced in this PR, but should we also allow optional segments for regular query?



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add TableSegmentsInfo to Thrift and Proto broker/server messages [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang merged PR #15573:
URL: https://github.com/apache/pinot/pull/15573


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org