Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi stage hashagg for groupingsets with unsortable refs #810

Merged
merged 8 commits into from
Dec 25, 2024

Conversation

avamingli
Copy link
Contributor

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


QingMa and others added 6 commits December 24, 2024 15:04
…4056)

We already support multi stage hashagg for groupingset by this commit 9a790f8.
There is no need to bail out if there are any unsortable refs.
Note that lc_monetary and lc_time are related to formatting
output data. Besides, formatting functions will be pushed down
to QEs in some common cases. So to keep the output data consistent
with the locale value set in QD, we need to sync these GUCs
between QD and QEs.

Co-authored-by: wuchengwen <wcw190496@alibaba-inc.com>
"ini" is the filename extension of configuration files, use "initfile"
instead.

This commit also fixes some typos.
GlobalShellExecutor checks `o.endswith(GlobalShellExecutor.BASH_PS1)`
before, there is a possibility that the current `o` only has several
ending characters of the `GlobalShellExecutor.BASH_PS1`, in that case it
never terminates but times out.

This commit checks the whole output instead.
Currently, the gpinitsystem Behave tests fail because of environment
variables being set in the tests not being unset/reset. Subsequent
tests after an environment variable is set are affected and could fail
if related (e.g. the locale tests). It didn't help that our Behave
steps relating to environment variables were not working cohesively as
well. The step to set the environment variable was not storing the
original into the context for the other two steps to use. The step to
unset the environment variable was not being used properly in our
Behave tests because the step format did not have double quotes
whereas all step references were double-quoting the environment
variable. The previously unused step to restore the environment
variable did not properly check for None values and would have also
been confused with the double quotes if used. Fix the gpinitsystem
Behave tests by fixing the mgmt_utils steps relating to environment
variables and make sure to unset environment variables at the end of
relevant Behave tests.
Removed as there is no functional difference after removing the older
query. No reg is found from 6x to 7x.
@avamingli avamingli added the cherry-pick cherry-pick upstream commts label Dec 24, 2024
Authored-by: Zhang Mingli avamingli@gmail.com
my-ship-it
my-ship-it previously approved these changes Dec 24, 2024
Authored-by: Zhang Mingli avamingli@gmail.com
@my-ship-it my-ship-it requested a review from yjhjstz December 25, 2024 09:49
@avamingli avamingli merged commit 64cfb48 into apache:main Dec 25, 2024
16 checks passed
@avamingli avamingli deleted the cp_1224 branch December 25, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick cherry-pick upstream commts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants