You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "Akanksha-kedia (via GitHub)" <gi...@apache.org> on 2025/10/25 11:57:09 UTC
[PR] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Akanksha-kedia opened a new pull request, #17079:
URL: https://github.com/apache/pinot/pull/17079
The TODO comment in JsonUtils.java suggests changing the datetime format notation from colon-based (`1:HOURS:EPOCH`) to pipe-based (`EPOCH|HOURS`). After thorough code analysis, we can confirm this change is __completely safe__ with __no risk of code breakage__ since Apache Pinot version 0.11.0 has been released and the codebase already supports both notations transparently.
## Background
- The TODO comment appears in multiple files including JsonUtils.java:
```java
// TODO: Switch to new format after releasing 0.11.0
// "EPOCH|" + timeUnit.name()
```
- The project has already progressed past version 0.11.0 (currently at 1.5.0-SNAPSHOT)
## Key Findings
1. __Both Formats Supported__: The DateTimeFormatSpec and DateTimeGranularitySpec classes handle both colon and pipe formats seamlessly.
2. __No Direct String Dependencies__: The codebase doesn't perform direct string manipulation on format strings outside the proper parsing classes.
3. __Mixed Format Support__: Using pipe format for `format` while keeping colon format for `granularity` works perfectly fine since they're parsed independently.
4. __Backward Compatibility__: Existing data stored with the old format will continue to be read correctly with no issues.
5. __No Code Breakage__: The parsing logic properly detects and handles both formats, ensuring no runtime failures or unexpected behavior.
## Recommendation
Proceed with updating the format string from `1:timeUnit:EPOCH` to `EPOCH|timeUnit` while keeping granularity as `1:timeUnit`. This change aligns with the project's evolution toward the pipe format and poses no risk to system stability.
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "Akanksha-kedia (via GitHub)" <gi...@apache.org>.
Akanksha-kedia commented on PR #17079:
URL: https://github.com/apache/pinot/pull/17079#issuecomment-3449546956
@yashmayya
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "xiangfu0 (via GitHub)" <gi...@apache.org>.
xiangfu0 commented on code in PR #17079:
URL: https://github.com/apache/pinot/pull/17079#discussion_r2489273608
##########
pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/SSBQueryIntegrationTest.java:
##########
@@ -139,6 +141,20 @@ protected void testQueriesValidateAgainstH2(String query)
+ numRows + " rows!");
}
+ /**
+ * Wait for all documents to be loaded for a specific table.
+ */
+ private void waitForAllDocsLoaded(long timeoutMs, String tableName) {
Review Comment:
this is not needed
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "xiangfu0 (via GitHub)" <gi...@apache.org>.
xiangfu0 commented on code in PR #17079:
URL: https://github.com/apache/pinot/pull/17079#discussion_r2489271496
##########
pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/SSBQueryIntegrationTest.java:
##########
@@ -91,6 +91,8 @@ public void setUp()
ClusterIntegrationTestUtils.buildSegmentsFromAvro(Collections.singletonList(dataFile), tableConfig, schema, 0,
_segmentDir, _tarDir);
uploadSegments(tableName, _tarDir);
+ // Wait for segments to be loaded and available
+ waitForAllDocsLoaded(60_000L, tableName);
Review Comment:
```suggestion
waitForDocsLoaded(60000L, true, tableName);
```
##########
pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/SSBQueryIntegrationTest.java:
##########
@@ -91,6 +91,8 @@ public void setUp()
ClusterIntegrationTestUtils.buildSegmentsFromAvro(Collections.singletonList(dataFile), tableConfig, schema, 0,
_segmentDir, _tarDir);
uploadSegments(tableName, _tarDir);
+ // Wait for segments to be loaded and available
+ waitForAllDocsLoaded(60_000L, tableName);
Review Comment:
```suggestion
waitForDocsLoaded(60_000L, true, tableName);
```
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "Akanksha-kedia (via GitHub)" <gi...@apache.org>.
Akanksha-kedia commented on PR #17079:
URL: https://github.com/apache/pinot/pull/17079#issuecomment-3467241976
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.730 s -- in org.apache.pinot.plugin.inputformat.protobuf.ProtoBufRecordExtractorTest
[INFO] org.apache.pinot.plugin.inputformat.protobuf.ProtoBufRecordExtractorTest.testRecordExtractor -- Time elapsed: 0.021 s
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 195, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.727 s
[INFO] Finished at: 2025-10-30T15:59:24+05:30
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "xiangfu0 (via GitHub)" <gi...@apache.org>.
xiangfu0 merged PR #17079:
URL: https://github.com/apache/pinot/pull/17079
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "xiangfu0 (via GitHub)" <gi...@apache.org>.
xiangfu0 commented on PR #17079:
URL: https://github.com/apache/pinot/pull/17079#issuecomment-3454499130
Please failed the error tests
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #17079:
URL: https://github.com/apache/pinot/pull/17079#issuecomment-3467520956
## [Codecov](https://app.codecov.io/gh/apache/pinot/pull/17079?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 `50.00000%` with `1 line` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 56.17%. Comparing base ([`eb4c342`](https://app.codecov.io/gh/apache/pinot/commit/eb4c34299834ede4203e57cac717e68be8bc8ae9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`ce2fb14`](https://app.codecov.io/gh/apache/pinot/commit/ce2fb14944574112690633058de6fa5ffab5adb7?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
| [Files with missing lines](https://app.codecov.io/gh/apache/pinot/pull/17079?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...pache/pinot/plugin/inputformat/avro/AvroUtils.java](https://app.codecov.io/gh/apache/pinot/pull/17079?src=pr&el=tree&filepath=pinot-plugins%2Fpinot-input-format%2Fpinot-avro-base%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fpinot%2Fplugin%2Finputformat%2Favro%2FAvroUtils.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cGlub3QtcGx1Z2lucy9waW5vdC1pbnB1dC1mb3JtYXQvcGlub3QtYXZyby1iYXNlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9waW5vdC9wbHVnaW4vaW5wdXRmb3JtYXQvYXZyby9BdnJvVXRpbHMuamF2YQ==) | 0.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/pinot/pull/17079?src=pr&el=tree&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 (eb4c342) and HEAD (ce2fb14). Click for more details.
>
> <details><summary>HEAD has 36 uploads less than BASE</summary>
>
>| Flag | BASE (eb4c342) | HEAD (ce2fb14) |
>|------|------|------|
>|unittests1|2|1|
>|unittests|4|1|
>|java-11|5|0|
>|temurin|10|1|
>|java-21|5|1|
>|unittests2|2|0|
>|integration|6|0|
>|integration2|2|0|
>|integration1|2|0|
>|custom-integration1|2|0|
></details>
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #17079 +/- ##
============================================
- Coverage 63.24% 56.17% -7.07%
+ Complexity 1428 701 -727
============================================
Files 3104 2420 -684
Lines 183423 135367 -48056
Branches 28112 21630 -6482
============================================
- Hits 116010 76047 -39963
+ Misses 58442 52923 -5519
+ Partials 8971 6397 -2574
```
| [Flag](https://app.codecov.io/gh/apache/pinot/pull/17079/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/17079/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/17079/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/17079/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/17079/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/17079/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/17079/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.17% <50.00%> (-7.02%)` | :arrow_down: |
| [temurin](https://app.codecov.io/gh/apache/pinot/pull/17079/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.17% <50.00%> (-7.07%)` | :arrow_down: |
| [unittests](https://app.codecov.io/gh/apache/pinot/pull/17079/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.17% <50.00%> (-7.07%)` | :arrow_down: |
| [unittests1](https://app.codecov.io/gh/apache/pinot/pull/17079/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.17% <50.00%> (-0.05%)` | :arrow_down: |
| [unittests2](https://app.codecov.io/gh/apache/pinot/pull/17079/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/17079?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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "Akanksha-kedia (via GitHub)" <gi...@apache.org>.
Akanksha-kedia commented on PR #17079:
URL: https://github.com/apache/pinot/pull/17079#issuecomment-3446591784
succesfully able to build the project and run ut
![Uploading Screenshot 2025-10-25 at 5.27.16 PM.png…]()
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "Akanksha-kedia (via GitHub)" <gi...@apache.org>.
Akanksha-kedia commented on PR #17079:
URL: https://github.com/apache/pinot/pull/17079#issuecomment-3486015538
done @xiangfu0
--
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] Safe Format Change in Apache Pinot: From Colon to Pipe Notation [pinot]
Posted by "Akanksha-kedia (via GitHub)" <gi...@apache.org>.
Akanksha-kedia commented on PR #17079:
URL: https://github.com/apache/pinot/pull/17079#issuecomment-3479081760
@xiangfu0
--
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