-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add sqllogictest for modeling-rs end-to-end test #604
Add sqllogictest for modeling-rs end-to-end test #604
Conversation
} | ||
} | ||
|
||
pub async fn register_ecommerce_table(test_ctx: &TestContext) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created and registered the ecommerce case here.
ctx.state().with_analyzer_rules(vec![ | ||
Arc::new(ModelAnalyzeRule::new(Arc::clone(&analyzed_mdl))), | ||
Arc::new(ModelGenerationRule::new(Arc::clone(&analyzed_mdl))), | ||
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I registered the wren analysis rule here.
@@ -0,0 +1,2 @@ | |||
statement ok | |||
SELECT * from orders |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test should be SELECT * from wrenai.default.orders
actually.
There is an issue about analyzing a qualified table name. I'll address this in next PR.
12d7d28
to
86be1cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Basically, I copied the sqllogictest in DataFusion as our testing framework. Just remove the postgres test and the test cases.
The e2e test uses DataFusion as the query runner. So I also registered the MDL dataset before running tests.
You can run this e2e test by the command
Follow-up issues