Skip to content
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

custom sort order POC (without bloom filters) #341

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions deltacat/compute/compactor_v2/compaction_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,23 +527,18 @@ def merge_input_provider(index, item):

hb_id_to_entry_indices_range = {}
file_index = 0
previous_task_index = -1

for mat_result in mat_results:
assert (
mat_result.pyarrow_write_result.files >= 1
), "Atleast one file must be materialized"
assert (
mat_result.task_index != previous_task_index
), f"Multiple materialize results found for a hash bucket: {mat_result.task_index}"

hb_id_to_entry_indices_range[str(mat_result.task_index)] = (
file_index,
file_index + mat_result.pyarrow_write_result.files,
)

file_index += mat_result.pyarrow_write_result.files
previous_task_index = mat_result.task_index

s3_utils.upload(
compaction_audit.audit_url,
Expand Down
Loading