Skip to content

[Backport] SQL: Fix post-aggregator naming logic for sort-project.#6257

Merged
fjy merged 1 commit intoapache:0.12.3from
gianm:backport-6250-to-0.12.3
Aug 29, 2018
Merged

[Backport] SQL: Fix post-aggregator naming logic for sort-project.#6257
fjy merged 1 commit intoapache:0.12.3from
gianm:backport-6250-to-0.12.3

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Aug 28, 2018

Backport of #6250 to 0.12.3.

@gianm gianm added the Backport label Aug 28, 2018
@gianm gianm added this to the 0.12.3 milestone Aug 28, 2018
@gianm gianm changed the title SQL: Fix post-aggregator naming logic for sort-project. (#6250) SQL: Fix post-aggregator naming logic for sort-project. Aug 28, 2018
@gianm gianm changed the title SQL: Fix post-aggregator naming logic for sort-project. [Backport] SQL: Fix post-aggregator naming logic for sort-project. Aug 28, 2018
The old code assumes that post-aggregator prefixes are one character
long followed by numbers. This isn't always true (we may pad with
underscores to avoid conflicts). Instead, the new code uses a different
base prefix for sort-project postaggregators ("s" instead of "p") and
uses the usual Calcites.findUnusedPrefix function to avoid conflicts.
@gianm gianm force-pushed the backport-6250-to-0.12.3 branch from 0866700 to d22eef8 Compare August 29, 2018 00:09
@gianm
Copy link
Copy Markdown
Contributor Author

gianm commented Aug 29, 2018

Had to fix a test-- repushed.

@fjy fjy merged commit 142e384 into apache:0.12.3 Aug 29, 2018
@gianm gianm deleted the backport-6250-to-0.12.3 branch August 29, 2018 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants