Repository navigation
pinot: work around STRING MIN/MAX limitation in queries.sql (apache/pinot#19603) #2125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alexey-milovidov
merged 2 commits into
ClickHouse:main
from
KazukiKandaKK:fix-pinot-minmax-string-workaround
Sep 21, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,28 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # Pinot is responsive once both the controller and the broker accept queries. | ||
| RES=$(curl -sf -o /dev/null -w '%{http_code}' \ | ||
| # The QuickStart process only registers its clean-shutdown hook after | ||
| # ./start's launched process finishes starting every component AND | ||
| # bootstrapping every sample table (including waiting for each table's | ||
| # async minion segment-generation-and-push task to finish). If ./stop | ||
| # sends SIGTERM any earlier than that, either shutdown-hook registration | ||
| # itself throws (component startup still in flight) or an in-flight | ||
| # minion task gets killed (bootstrap still in flight) -- either way the | ||
| # process dies without a clean stop and corrupts the next ./start. | ||
| # | ||
| # Broker readiness alone is not a safe proxy for "fully done starting": | ||
| # it comes up long before bootstrap finishes. The only reliable signal is | ||
| # the "Quick start setup complete" line QuickStart itself prints right | ||
| # after runner.bootstrapTable() + waitForBootstrapToComplete() return | ||
| # (see pinot-tools Quickstart.java, method execute()). Since pinot.log is | ||
| # appended across restarts, only look at what was appended after the | ||
| # offset ./start recorded for this invocation. | ||
| BROKER_RES=$(curl -sf -o /dev/null -w '%{http_code}' \ | ||
| -XPOST -H'Content-Type: application/json' \ | ||
| http://localhost:8000/query/sql/ \ | ||
| -d '{"sql":"SELECT 1"}') | ||
| -d '{"sql":"SELECT 1"}' 2>/dev/null || echo "000") | ||
|
|
||
| [ "$RES" = "200" ] | ||
| OFFSET=$(cat pinot.log.offset 2>/dev/null || echo 0) | ||
| SETUP_DONE=$(tail -c +"$((OFFSET + 1))" pinot.log 2>/dev/null | grep -c 'Quick start setup complete' || true) | ||
|
|
||
| [ "$BROKER_RES" = "200" ] && [ "${SETUP_DONE:-0}" -ge 1 ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤣