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

fix: return Vec<Datafile> instead of HashMap #126

Merged
merged 1 commit into from
Jul 31, 2023
Merged

Conversation

ZENOTME
Copy link
Contributor

@ZENOTME ZENOTME commented Jul 31, 2023

I find that task writer don't need to return HashMap<StructValue,DataFile>.

User will use it like following and it probably don't need to know the partition details.

let table = create_table();

let task_writer = table.task_writer();

// TaskWriter partition for user, they don't need to know the details.
task_writer.writer(records);

let res = task_writer.close();

let transaction = transaction::new(&mut table);

// Just pass the result to transaction.
transaction.append_datafile(res);

transaction.commit();

@ZENOTME ZENOTME merged commit b185d86 into icelake-io:main Jul 31, 2023
3 checks passed
@ZENOTME ZENOTME deleted the close branch July 31, 2023 08:15
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.

None yet

2 participants