-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use Ray object store for shuffle exchange #28
Conversation
@@ -67,15 +73,15 @@ impl PyContext { | |||
} | |||
|
|||
pub fn plan(&self, sql: &str, py: Python) -> PyResult<PyExecutionGraph> { | |||
debug!("Planning {}", sql); |
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 is a dumb question, but how do I make debug!()
to print stuff? I tried export RUST_LOG=debug
but still can't see any debug output.
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 need to add a dependency on a logger implementation (such as https://docs.rs/env_logger/latest/env_logger/) and initialize the logger somewhere
@@ -82,6 +84,8 @@ impl QueryStage { | |||
fn collect_child_stage_ids(plan: &dyn ExecutionPlan, ids: &mut Vec<usize>) { | |||
if let Some(shuffle_reader) = plan.as_any().downcast_ref::<ShuffleReaderExec>() { | |||
ids.push(shuffle_reader.stage_id); | |||
} else if let Some(shuffle_reader) = plan.as_any().downcast_ref::<RayShuffleReaderExec>() { |
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.
Any way to do this in one statement?
raysql/context.py
Outdated
# TODO(@lsf): can there ever be more than 1 child future? | ||
inputs = child_futures[0] if len(child_futures) > 0 else [] |
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.
Yes, there can be multiple inputs for joins, unions, and some other operators
improve error handling
ResultSet
picklable