Skip to content

Preserve column order in DruidSchema, SegmentMetadataQuery.#12754

Merged
gianm merged 4 commits intoapache:masterfrom
gianm:md-column-order
Jul 9, 2022
Merged

Preserve column order in DruidSchema, SegmentMetadataQuery.#12754
gianm merged 4 commits intoapache:masterfrom
gianm:md-column-order

Conversation

@gianm
Copy link
Contributor

@gianm gianm commented Jul 7, 2022

Instead of putting columns in alphabetical order. This is helpful
because it makes query order better match ingestion order. It also
allows tools, like the reindexing flow in the web console, to more
easily do follow-on ingestions using a column order that matches the
pre-existing column order.

We prefer the order from the latest segments. The logic takes all
columns from the latest segments in the order they appear, then adds
on columns from older segments after those.

gianm added 4 commits July 6, 2022 19:37
Instead of putting columns in alphabetical order. This is helpful
because it makes query order better match ingestion order. It also
allows tools, like the reindexing flow in the web console, to more
easily do follow-on ingestions using a column order that matches the
pre-existing column order.

We prefer the order from the latest segments. The logic takes all
columns from the latest segments in the order they appear, then adds
on columns from older segments after those.
Copy link
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants