Skip to content

Conversation

@dapan1121
Copy link
Contributor

Description

Issue(s)

  • Close/close/Fix/fix/Resolve/resolve: Issue Link

Checklist

Please check the items in the checklist if applicable.

  • Is the user manual updated?
  • Are the test cases passed and automated?
  • Is there no significant decrease in test coverage?

@dapan1121 dapan1121 requested review from a team, guanshengliang and hzcheng as code owners January 29, 2026 07:15
Copilot AI review requested due to automatic review settings January 29, 2026 07:15
@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a GROUP_CONCAT initialization bug that could corrupt memory, and adds a regression query to exercise GROUP_CONCAT over non-string inputs.

Changes:

  • Fix gconcatFunctionSetup to memset the correct result-struct size (SGconcatRes), preventing buffer overwrite.
  • Extend the GROUP_CONCAT test case with a query that casts a numeric column to VARCHAR before concatenation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/cases/11-Functions/02-Aggregate/test_agg_gconcat.py Adds a regression query using GROUP_CONCAT(CAST(... AS VARCHAR), ',') to cover the reported type-related scenario.
source/libs/function/src/builtinsimpl.c Corrects memset size in gconcatFunctionSetup to match SGconcatRes, avoiding memory corruption.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@guanshengliang guanshengliang merged commit 868218b into main Jan 29, 2026
19 of 20 checks passed
@guanshengliang guanshengliang deleted the fix/6751148858.main branch January 29, 2026 08:42
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