Skip to content

Fix RemoveWrenPrefixRule for being executed by DataFusion #687

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

Merged
merged 7 commits into from
Jul 24, 2024

Conversation

goldmedal
Copy link
Contributor

@goldmedal goldmedal commented Jul 23, 2024

Description

  • Fix the RemoveWrenPrefixRule for the correct plan schema.
  • Provide an API for applying rules for an existing session context.
  • Make sqlloigctests tests to apply rules directly.

Fix the sqllogictests

I didn't find the sqllogictests is broken. So, many test cases are failed and skipped but I didn't know. I commented out some cases and I'll file the issues for them.

Comment on lines +22 to +24
/// Apply Wren Rules to the context for sql generation.
/// TODO: There're some issue for unparsing the datafusion optimized plans.
/// Disable all the optimize rule for sql generation temporarily.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's an issue about unparsing the optimized plans to the SQL string. I'll file the issue in Datafusion.

@goldmedal goldmedal marked this pull request as ready for review July 24, 2024 01:42
@goldmedal goldmedal requested a review from grieve54706 July 24, 2024 01:43
@grieve54706 grieve54706 merged commit 32b43b9 into Canner:main Jul 24, 2024
10 checks passed
@goldmedal goldmedal deleted the bugfix/fix-for-datafusino-execute branch July 24, 2024 10:29
grieve54706 pushed a commit that referenced this pull request Dec 13, 2024
* fix the remove fix rule

* provide api for apply wren rules

* change the tests to run datafusion directly

* throw error if failed

* disable some broken tests

* register table for wren datasets

* cargo fmt
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.

2 participants