Skip to content

Align ScanQuery column order with its desired signature#17457

Closed
kgyrtkirk wants to merge 22 commits intoapache:masterfrom
kgyrtkirk:change-scan-column-order
Closed

Align ScanQuery column order with its desired signature#17457
kgyrtkirk wants to merge 22 commits intoapache:masterfrom
kgyrtkirk:change-scan-column-order

Conversation

@kgyrtkirk
Copy link
Copy Markdown
Member

ScanQuery reorders its output columns to be in alphabetical ordering; this is not necessary - and depending on the names of the columns it may be different.

This is needed for UnionQuery to avoid incorrect results

Main change is a single line alteration in DruidQuery to use a LinkedHashSet instead of TreeMap.

@github-actions github-actions Bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Nov 7, 2024
@kgyrtkirk kgyrtkirk marked this pull request as ready for review November 7, 2024 23:15
cryptoe pushed a commit that referenced this pull request Nov 12, 2024
* ScanQuery: equals/hashCode/toString
* DruidQuery: changes of Align ScanQuery column order with its desired signature #17457
* ScanQueryTest: add equalsverifer test
@cryptoe
Copy link
Copy Markdown
Contributor

cryptoe commented Nov 12, 2024

Closed in favour of #17463

@cryptoe cryptoe closed this Nov 12, 2024
jtuglu1 pushed a commit to jtuglu1/druid that referenced this pull request Nov 20, 2024
)

* ScanQuery: equals/hashCode/toString
* DruidQuery: changes of Align ScanQuery column order with its desired signature apache#17457
* ScanQueryTest: add equalsverifer test
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 Area - Querying

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants