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 SHOW statements for JIRA #5936

Merged
merged 2 commits into from
Mar 20, 2020

Conversation

saifalharthi
Copy link
Contributor

This PR modifies support for SHOW statements. It adds extra support for SHOW INDEX and SHOW KEYS in particular.

@@ -830,6 +830,48 @@ func TestExecutorShow(t *testing.T) {
t.Errorf("Got: %v. Want: %v", lastQuery, wantQuery)
}

// SHOW KEYS with two different syntax
_, err = executor.Execute(context.Background(), "TestExecute", session, fmt.Sprintf("show keys from %v.unknown", KsTestUnsharded), nil)
if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: require.NoError(t, err) is nice to use

Copy link
Collaborator

@systay systay left a comment

Choose a reason for hiding this comment

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

Nice stuff! Needs to be rebased

@systay
Copy link
Collaborator

systay commented Mar 20, 2020

I took the liberty of doing the rebase. It was just a matter of doing a make parser

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