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

fix(core): disable CountWildcardRule for BigQuery source #883

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

goldmedal
Copy link
Contributor

Description

Close #876
DataFusion CountWildcardRule will try to rewrite Count(Expr:Wildcard) to Count(Expr:Literal). It will generate an alias name count(*) which isn't allowed by BigQuery. Disable this rule for BigQuery.

@github-actions github-actions bot added core rust Pull requests that update Rust code labels Nov 4, 2024
@goldmedal goldmedal marked this pull request as ready for review November 4, 2024 10:12
@goldmedal goldmedal requested a review from grieve54706 November 4, 2024 10:12
Copy link
Contributor

@grieve54706 grieve54706 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank @goldmedal.

@grieve54706 grieve54706 merged commit 60a595d into Canner:main Nov 4, 2024
13 checks passed
@goldmedal goldmedal deleted the fix/disable-count-wildcard-rule branch November 4, 2024 10:29
gagan-bhullar-tech pushed a commit to gagan-bhullar-tech/wren-engine that referenced this pull request Nov 6, 2024
@grieve54706 grieve54706 added this to the 0.11.3 milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wren Core return SQL with invalid alias name
2 participants