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

Support more SHOW ... WHERE #2649

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Support more SHOW ... WHERE #2649

merged 1 commit into from
Apr 16, 2020

Conversation

justinj
Copy link
Contributor

@justinj justinj commented Apr 14, 2020

Fixes MaterializeInc/database-issues#534.

The only remaining unsupported case is SHOW VIEWS/SOURCES, because we
don't plumb down the needed info via the catalog.

I got rid of some ordering stuff, I can add it back in the form of a
RowSetFinishing, but it doesn't seem to have been tested so I'm not sure
it was actually important.


This change is Reviewable

@justinj justinj requested a review from benesch April 14, 2020 19:40
@benesch
Copy link
Member

benesch commented Apr 15, 2020

Whoops, somehow I missed this. In my queue for the next hour.

Copy link
Member

@benesch benesch left a comment

Choose a reason for hiding this comment

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

Looks fantastic! Left you some Rust nits that you can feel free to ignore—just thought you might be interested. The one thing I do think we should add before merging, if it's not too much trouble, is a hardcoded ordering by name.

src/materialized/tests/pgwire.rs Outdated Show resolved Hide resolved
src/materialized/tests/pgwire.rs Outdated Show resolved Hide resolved
src/sql/statement.rs Outdated Show resolved Hide resolved
@justinj justinj force-pushed the show branch 3 times, most recently from 1a021ee to 699f507 Compare April 15, 2020 20:34
@benesch
Copy link
Member

benesch commented Apr 15, 2020

Triggered a rebuild. You hit a known build flakiness issue that's fixed on more recent SHAs. If the rebuild doesn't work, a rebase should.

Fixes #1529.

The only remaining unsupported case is SHOW VIEWS/SOURCES, because we
don't plumb down the needed info via the catalog.

I got rid of some ordering stuff, I can add it back in the form of a
RowSetFinishing, but it doesn't seem to have been tested so I'm not sure
it was actually important.
@justinj justinj merged commit aef5961 into MaterializeInc:master Apr 16, 2020
@justinj justinj deleted the show branch April 16, 2020 13:52
@cuongdo
Copy link
Contributor

cuongdo commented Apr 29, 2020

@justinj Could you add this to the v0.2.1 release notes?

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.

3 participants