Skip to content

Fix window to aggregate conversion with ordering expression validation#11523

Open
lgbo-ustc wants to merge 1 commit intoapache:mainfrom
bigo-sg:bug_0130
Open

Fix window to aggregate conversion with ordering expression validation#11523
lgbo-ustc wants to merge 1 commit intoapache:mainfrom
bigo-sg:bug_0130

Conversation

@lgbo-ustc
Copy link
Contributor

What changes are proposed in this pull request?

  • Add hasOrderExpression method to validate that ordering expressions are not in partition spec
  • Include additional test case for window function with row_number over multiple partition columns
  • Prevents incorrect window to aggregate conversion when order expressions don't match partition spec

How was this patch tested?

tested by UTs

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions
Copy link

Run Gluten Clickhouse CI on x86

1 similar comment
@lgbo-ustc
Copy link
Contributor Author

Run Gluten Clickhouse CI on x86

- Add hasOrderExpression method to validate that ordering expressions are not in partition spec
- Include additional test case for window function with row_number over multiple partition columns
- Prevents incorrect window to aggregate conversion when order expressions don't match partition spec
@github-actions
Copy link

Run Gluten Clickhouse CI on x86

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.

1 participant