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

feat: support mysql with rollup #1923

Merged

Conversation

jxnu-liguobin
Copy link
Contributor

try to closed #1907

this.mysqlWithRollup = mysqlWithRollup;
}

public GroupByElement withMysqlWithRollup(boolean mysqlWithRollup) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I know, that previously those "withMethods" have been implemented, but nobody ever gave me a reason why the "setMethod" should not return the object directly.

Feel free to avoid that redundant "withMethod" and return the object when calling the "set" method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To my knowledge, in functional programming, it is generally referred to as with. The true meaning is to create a new object and return it without modifying the object itself, but here, with modifies the object, so set and with are indeed duplicates at this point.

@manticore-projects
Copy link
Contributor

I have fixed the Test related issues not linked to this PR directly. Please re-sync, sorry for the extra step.

@jxnu-liguobin
Copy link
Contributor Author

I have fixed the Test related issues not linked to this PR directly. Please re-sync, sorry for the extra step.

Thank you, I have revised it.

Copy link
Contributor

@manticore-projects manticore-projects left a comment

Choose a reason for hiding this comment

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

looks good.

@manticore-projects manticore-projects merged commit 77f6fb8 into JSQLParser:master Dec 19, 2023
4 checks passed
@manticore-projects
Copy link
Contributor

Thank you for working on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WITH ROLLUP clause
2 participants