Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update vendored sources to duckdb/duckdb@2414840
Merge pull request duckdb/duckdb#10005 from Tishj/python3_7_optional_issue Merge pull request duckdb/duckdb#9974 from taniabogatsch/duplicate-lambda-parameters Merge pull request duckdb/duckdb#9999 from Mytherin/parallelcheckpoint Merge pull request duckdb/duckdb#9973 from xuke-hat/refine-iejoin Merge pull request duckdb/duckdb#9984 from hawkfish/tsns-time Merge pull request duckdb/duckdb#9977 from atacan/swift-readme
- Loading branch information
Showing
26 changed files
with
489 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/duckdb/src/include/duckdb/execution/task_error_manager.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
//===----------------------------------------------------------------------===// | ||
// DuckDB | ||
// | ||
// duckdb/execution/task_error_manager.hpp | ||
// | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#pragma once | ||
|
||
#include "duckdb/common/preserved_error.hpp" | ||
#include "duckdb/common/mutex.hpp" | ||
#include "duckdb/common/vector.hpp" | ||
|
||
namespace duckdb { | ||
|
||
class TaskErrorManager { | ||
public: | ||
void PushError(PreservedError error) { | ||
lock_guard<mutex> elock(error_lock); | ||
this->exceptions.push_back(std::move(error)); | ||
} | ||
|
||
bool HasError() { | ||
lock_guard<mutex> elock(error_lock); | ||
return !exceptions.empty(); | ||
} | ||
|
||
void ThrowException() { | ||
lock_guard<mutex> elock(error_lock); | ||
D_ASSERT(!exceptions.empty()); | ||
auto &entry = exceptions[0]; | ||
entry.Throw(); | ||
} | ||
|
||
void Reset() { | ||
lock_guard<mutex> elock(error_lock); | ||
exceptions.clear(); | ||
} | ||
|
||
private: | ||
mutex error_lock; | ||
//! Exceptions that occurred during the execution of the current query | ||
vector<PreservedError> exceptions; | ||
}; | ||
} // namespace duckdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.