这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@bgivertz
Copy link
Collaborator

Adds support for parallelize with normal case violations and file input schema violations as well.

//! 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
Copy link
Contributor

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?

Copy link
Contributor

@LeonhardFS LeonhardFS left a 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]);
Copy link
Contributor

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?

if(partition->capacity() < numBytesSerialized + sizeof(double)) {
assert(_badParallelizeObjects.size() >= prevNumExceptions);
auto numNewExceptions = _badParallelizeObjects.size() - prevNumExceptions;
_inputPartitionToPythonObjectsMap[uuidToString(partition->uuid())] = ExceptionInfo(numNewExceptions, 0, 0, 0);
Copy link
Contributor

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?

Copy link
Contributor

@LeonhardFS LeonhardFS left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants