-
Notifications
You must be signed in to change notification settings - Fork 221
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
Update data::Row
to contain columns
#1026
Conversation
Replace rows type from Vec<Row> to Vec<Vec<Value> not to expose Row struct to users.
Pull Request Test Coverage Report for Build 3590202073
💛 - Coveralls |
0ce80d7
to
30b78ab
Compare
30b78ab
to
bc68a53
Compare
69fb368
to
f08fb22
Compare
e8bfddc
to
8770b53
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.
There are a few minor comments.
I'll see a bit more later(again today) to understand.
8770b53
to
d624c0d
Compare
core/src/executor/fetch.rs
Outdated
pub async fn fetch_labels<'a>( | ||
storage: &dyn GStore, | ||
relation: &'a TableFactor, | ||
joins: &'a [Join], | ||
projection: &'a [SelectItem], | ||
) -> Result<Vec<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.
pub async fn fetch_labels<'a>( | |
storage: &dyn GStore, | |
relation: &'a TableFactor, | |
joins: &'a [Join], | |
projection: &'a [SelectItem], | |
) -> Result<Vec<String>> { | |
pub async fn fetch_labels ( | |
storage: &dyn GStore, | |
relation: &TableFactor, | |
joins: &[Join], | |
projection: &[SelectItem], | |
) -> Result<Vec<String>> { |
Lifetime sharing here doesn't seem necessary.
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.
We are laying a great foundation
🚀 🚀 🚀 🚀 🚀 🚀 🚀 🚀 🚀
Remove columns field in BlendContext and FilterContext. Update Join module not to take columns as init param. Move get_labels in select/mod.rs to fetch.rs and rename to fetch_lables by merging column fetching codes.
d624c0d
to
5c37b7b
Compare
Prior steps - Make
data::Row
struct only work in execution layer, don't expose to user via neitherPayload
or Store traits.Payload::Select
rows to useVec<Value>
data::Row
toVec<Value>
in Store traitsMain
columns
into Row structcolumns
fromFilterContext
,BlendContext