-
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
feat(canner): implement new data source canner
#823
Conversation
61f40b2
to
83629e2
Compare
71159d0
to
04faf51
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.
Thanks @grieve54706 overall looks good to me. Only some minor comments.
- The table `orders` must be with a comment `This is a table comment` | ||
- The table `orders` must have a column `o_comment` with a comment `This is a comment` |
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.
- The table `orders` must be with a comment `This is a table comment` | |
- The table `orders` must have a column `o_comment` with a comment `This is a comment` | |
- The table `orders` must be with a description `This is a table comment` | |
- The table `orders` must have a column `o_comment` with a description `This is a comment` |
In the canner side, I think it's called description
.
|
||
pytestmark = pytest.mark.canner | ||
|
||
client = TestClient(app) |
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 think we can use the with client
clause here, too.
"rls": { | ||
"name": "SESSION_STATUS", | ||
"operator": "EQUALS", | ||
}, |
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.
Unused field.
"rls": { | |
"name": "SESSION_STATUS", | |
"operator": "EQUALS", | |
}, |
* feat(canner): implement new data source `canner` * feat(canner): get type name via query and cache the result * test(canner): add test case and fix dry_run * feat(canner): implement metadata * chore(ci): not test canner * chore(poetry): update * test(canner): adjust test * chore: remove unused * chore(test): move test order * chore(canner): move comment * chore(canner): adjust method _oid_to_ibis_type to _to_ibis_type * chore(canner): improve readability * chore(comment): use description instead of comment to fit canner enterprise design * test(canner): adjust the pattern * test(canner): remove unused
Summary
Support new data source Canner Enterprise. It provides the PG wire protocol, so we can connect it by following Postgres.
Connection info
Additional information
CREATE TEMPORARY VIEW
to get the schema for ibis. We need to build schema bydry-run
.dry-run
, so we have to query with a limit of zeroGraphQL
.