Skip to content

fix: create MemTable with at least one partition #109

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

waynexia
Copy link
Contributor

MemTable will use the length of input data vec as its available partition number. MemTable::try_new almost always accepts a 2d vec even if the data is empty

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@sunng87
Copy link
Member

sunng87 commented Jul 11, 2025

I confirm this fixes the issue of DataSourceExec: partitions=0, partition_sizes=[]"] does not satisfy distribution requirements: SinglePartition. Child-0 output partitioning: UnknownPartitioning(0)

@sunng87 sunng87 merged commit c2d2636 into datafusion-contrib:master Jul 11, 2025
6 checks passed
@sunng87 sunng87 mentioned this pull request Jul 11, 2025
@waynexia waynexia deleted the fix-memtable branch July 11, 2025 00:46
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