-
Notifications
You must be signed in to change notification settings - Fork 0
Add more CREATE FOREIGN TABLE options #21
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
Conversation
Add new options `prefix,keys_only,revision,range` with `CREATE FOREIGN TABLE`.
if-loop69420
left 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.
Looks good. LGTM, if you've tested that everything works
if-loop69420
left 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.
Please address these
src/lib.rs
Outdated
| columns: &[Column], | ||
| _sorts: &[Sort], | ||
| limit: &Option<Limit>, | ||
| _options: &std::collections::HashMap<String, String>, |
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.
Could we change this to not have an '' before it? We're using the value and '' as a prefix suggests, that a value is not used
if-loop69420
left 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 prefix option still doesn't work for me. It still yields things not in the prefix.
etcd_fdw=# CREATE FOREIGN TABLE t_etcd_table (key text, value text) SERVER etcd_server OPTIONS (prefix '/foo');
CREATE FOREIGN TABLE
etcd_fdw=# SELECT * FROM t_etcd_table ;
key | value
-----------+-------
/foo/bar | baz
bar_new | baz
foo_new | abc
Please fix these. Other than that LGTM
|
@if-loop69420 I am not able to reproduce the error you mentioned |
if-loop69420
left 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.
Looks good. Thank you. LGTM
New options