amol- commented on code in PR #13281:
URL: https://github.com/apache/arrow/pull/13281#discussion_r886931281
##########
python/pyarrow/_exec_plan.pyx:
##########
@@ -259,13 +259,19 @@ def _perform_join(join_type, left_operand not None,
left_keys,
left_columns = []
elif join_type == "inner":
c_join_type = CJoinType_INNER
- right_columns = set(right_columns) - set(right_keys)
+ right_columns = [
+ col for col in right_columns if col not in set(right_keys)
Review Comment:
Given that it's not uncommon to see datasets with thousand of columns,
especially in survey analytics, I went for using sets. But It's also true that
the keys are probably going to be few even in that case.
Going for a list might introduce a slowdown in the case of very long column
names, but I think we can live with that.
I'll switch to using a list
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]