-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 native_op_trace_directory_create_config session property and setDirectoryCB in native #24156
base: master
Are you sure you want to change the base?
Conversation
|
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.
@yuandagits LGTM % minors. Thanks!
execTask.queryCtx()->queryId(), | ||
execTask.taskId(), | ||
includeNodeInSpillPath); | ||
const auto [taskSpillDirPath, taskDateStrPath] = |
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.
s/taskDateStrPath/dateSpillDirPath/?
@@ -402,8 +424,12 @@ std::unique_ptr<TaskInfo> TaskManager::createOrUpdateErrorTask( | |||
if (includeNodeInSpillPath) { | |||
folly::toAppend(fmt::format("{}_{}/", nodeIp, nodeId), &path); | |||
} | |||
|
|||
std::string dateStringPath = path; |
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.
s/dateStringPath/dateSpillDirPath/
folly::toAppend(fmt::format("{}/{}/{}/", dateString, queryId, taskId), &path); | ||
return path; | ||
return std::make_tuple(std::move(path), std::move(dateStringPath)); |
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.
s/path/taskSpillDirPath/
@@ -154,8 +154,9 @@ class TaskManager { | |||
std::vector<velox::exec::Task::OpCallInfo>& stuckOpCalls) const; | |||
|
|||
/// Build directory path for spilling for the given task. | |||
/// Always returns non-empty string. | |||
static std::string buildTaskSpillDirectoryPath( | |||
/// Always returns tuple of non-empty string containing the spill directory |
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 task spill directory and date spill directory which is parent directory of task spill directory.
Not sure if we want to return the two as the last two output parameters of buildTaskSpillDirectoryPath?
std::string& taskSpillDirPath,
std::string& dateSpillDirPath);
12d8cca
to
d5fe7d7
Compare
dcc1631
to
bd10f61
Compare
Pushed a wrong commit by mistake after rebase. After fixing, re-pushing https://github.com/yuandagits/presto/tree/directoryTtlSupport is now stuck on processing update Might abandon and recreate PR if the processing does not complete Edit: it finally finished processing... |
In native engine, add ability to set a create directory callback and add the corresponding config as a property. We also expose native_op_trace_directory_create_config as a session property. [Description] In native engine, add ability to set a create directory callback and add the corresponding config as a property. We also expose native_op_trace_directory_create_config as a session property.
a2fb2c8
to
7cf709d
Compare
Description
In native engine, add ability to set a create directory callback and add the corresponding config as a property. We also expose native_op_trace_directory_create_config as a session property.
Motivation and Context
See facebookincubator/velox#11631 for operator directory option support and API to set create directory facebookincubator/velox#11572
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.
If release note is NOT required, use: