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

partition ranges, covering indexes, smarter iterators #1116

Merged
merged 13 commits into from
Dec 16, 2020

Conversation

bheni
Copy link
Contributor

@bheni bheni commented Dec 15, 2020

No description provided.

@bheni bheni requested review from Hydrocharged and zachmu December 15, 2020 18:30
Copy link
Contributor

@Hydrocharged Hydrocharged left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

go/libraries/doltcore/sqle/dolt_map_iter.go Show resolved Hide resolved
go/libraries/doltcore/sqle/dolt_map_iter.go Outdated Show resolved Hide resolved
go/libraries/doltcore/sqle/dolt_map_iter.go Show resolved Hide resolved
go/store/store_test.go Show resolved Hide resolved
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, just a few small comments

go/store/store_test.go Show resolved Hide resolved
return nil, errors.New("unknown partition type")
}

func (t *WritableIndexedDoltTable) WithProjection(colNames []string) sql.Table {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably return a copy of the table, rather than just modifying in place

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do this in a bunch of places with the system tables. Any particular reason you think I should return a copy?

go/libraries/doltcore/sqle/dolt_map_iter.go Outdated Show resolved Hide resolved
go/libraries/doltcore/sqle/dolt_map_iter.go Outdated Show resolved Hide resolved
rowSize int
}

// NewKVToSqlRowConverterForCols returns a KVToSqlConverter instance based on the list of rows passed in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/rows/columns

@bheni bheni merged commit 602f0ae into master Dec 16, 2020
@bheni bheni deleted the bh/random-ranges-with-covering branch December 16, 2020 02:45
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.

4 participants