-
Notifications
You must be signed in to change notification settings - Fork 47
[FEATURE] Parallelize support for normal case violations #57
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
[TEST] Added a test
| //! an exception while being processed through the pipeline before | ||
| std::vector<PyObject*> _py_objects; //! all python objects who do not adhere to the general case schema ( | ||
| std::unordered_map<std::string, ExceptionInfo> _partitionToExceptionsMap; //! maps normal case partitions to corresponding general case ones | ||
| std::vector<PyObject*> _py_objects; //! all python objects who do not adhere to the general case schema |
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.
they do not need row numbers, right?
LeonhardFS
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.
I think some delete [] for the exception memory is missing
| for(int i = _currentNormalPartitionIdx + 1; i < _partitions.size(); ++i) { | ||
| _mergedRowsSink.unlock(); | ||
| _mergedRowsSink.partitions.push_back(_partitions[i]); | ||
| //_mergedPartitions.emplace_back(_normalCasePartitions[i]); |
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.
what's up with this comment? can we remove the line or should be commented back in?
tuplex/python/src/PythonContext.cc
Outdated
| if(partition->capacity() < numBytesSerialized + sizeof(double)) { | ||
| assert(_badParallelizeObjects.size() >= prevNumExceptions); | ||
| auto numNewExceptions = _badParallelizeObjects.size() - prevNumExceptions; | ||
| _inputPartitionToPythonObjectsMap[uuidToString(partition->uuid())] = ExceptionInfo(numNewExceptions, 0, 0, 0); |
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.
what's the logic for putting 0, 0, 0 here?
LeonhardFS
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.
good to merge once CI finishes/passes.
Adds support for parallelize with normal case violations and file input schema violations as well.