Skip to content

[Backport] Fix an issue with passing order by and limit to realtime tasks (#15301)#15308

Merged
cryptoe merged 1 commit intoapache:28.0.0from
adarshsanjeev:backport-msq-realtime-orderby-fix
Nov 2, 2023
Merged

[Backport] Fix an issue with passing order by and limit to realtime tasks (#15301)#15308
cryptoe merged 1 commit intoapache:28.0.0from
adarshsanjeev:backport-msq-realtime-orderby-fix

Conversation

@adarshsanjeev
Copy link
Copy Markdown
Contributor

Backport of #15301

…e#15301)

While running queries on real time tasks using MSQ, there is an issue with queries with certain order by columns.

If the query specifies a non time column, the query is planned as it is supported by MSQ. However, this throws an exception when passed to real time tasks once as the native query stack does not support it. This PR resolves this by removing the ordering from the query before contacting real time tasks.

    Fixes a bug with MSQ while reading data from real time tasks with non time ordering
@github-actions github-actions Bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Nov 2, 2023
@adarshsanjeev adarshsanjeev changed the title Fix an issue with passing order by and limit to realtime tasks (#15301) [Backport] Fix an issue with passing order by and limit to realtime tasks (#15301) Nov 2, 2023
@cryptoe cryptoe merged commit 093cfb8 into apache:28.0.0 Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants