Skip to content

28.0.0 backports#15139

Merged
LakshSingla merged 2 commits intoapache:28.0.0from
cryptoe:28.0.0_backports
Oct 12, 2023
Merged

28.0.0 backports#15139
LakshSingla merged 2 commits intoapache:28.0.0from
cryptoe:28.0.0_backports

Conversation

@cryptoe
Copy link
Copy Markdown
Contributor

@cryptoe cryptoe commented Oct 12, 2023

Backports for :
#15095 Rewrite EARLIEST/LATEST query operators to EARLIEST_BY/LATEST_BY
#14994 Limit pages size to a configurable limit

gargvishesh and others added 2 commits October 12, 2023 14:03
…che#15095)

EARLIEST and LATEST operators implicitly reference the __time column for calculation of the aggregate value. Since the reference isn't explicit, Calcite sometimes fails to update the __time column name when there's column renaming --such as in the case of nested queries -- resulting in column not found errors.

This change rewrites these operators to EARLIEST_BY and LATEST_BY during query processing to make the reference explicit to Calcite.

(cherry picked from commit c6ca990)
Adding the ability to limit the pages sizes of select queries.

    We piggyback on the same machinery that is used to control the numRowsPerSegment.
    This patch introduces a new context parameter rowsPerPage for which the default value is set to 100000 rows.
    This patch also optimizes adding the last selectResults stage only when the previous stages have sorted outputs. Currently for each select query with selectDestination=durableStorage, we used to add this extra selectResults stage.

(cherry picked from commit 61ea9e0)
@github-actions github-actions Bot added Area - Documentation Area - Batch Ingestion Area - Querying Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Oct 12, 2023
@LakshSingla
Copy link
Copy Markdown
Contributor

@cryptoe Can you please breakout out the commits in separate PRs if possible? This helps with the release management.

@abhishekagarwal87
Copy link
Copy Markdown
Contributor

We could also try rebase and merge option. If that retains individual commits, then the commit history would be clean.

@LakshSingla
Copy link
Copy Markdown
Contributor

Hmm, I think that should work. TY for the suggestion.

@LakshSingla LakshSingla merged commit 97a70df into apache:28.0.0 Oct 12, 2023
@LakshSingla
Copy link
Copy Markdown
Contributor

Thanks for the backports @cryptoe

@LakshSingla LakshSingla added this to the 28.0 milestone Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Batch Ingestion Area - Documentation Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Area - Querying Backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants