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 bug when completing "ON parent." clauses #42

Merged
merged 2 commits into from Feb 17, 2020

Conversation

pgr0ss
Copy link
Contributor

@pgr0ss pgr0ss commented Feb 14, 2020

Previously, the code passed the wrong arguments to identifiers.

Fixes #40.

This is my first time working in this project, so any and all feedback is welcome!

Previously, the code passed the wrong arguments to `identifiers`.

Fixes dbcli#40.
Column(tables=((None, 'tabl', 'a'),), drop_unique=None),
Table(schema='a'),
View(schema='a'),
Function(schema='a', filter=None))
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'm not super confident about this test. Did I do it correctly?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it is correct

@getaaron
Copy link
Contributor

I think we also want to add JOIN (and maybe ON?) to athenacli/packages/literals/literals.json

@pgr0ss
Copy link
Contributor Author

pgr0ss commented Feb 14, 2020

I think we also want to add JOIN (and maybe ON?) to athenacli/packages/literals/literals.json

I think that's for completing the word JOIN itself? Which we can certainly add, but doesn't seem related to the bug this PR fixes? Unless I'm misunderstanding.

@getaaron
Copy link
Contributor

I think we also want to add JOIN (and maybe ON?) to athenacli/packages/literals/literals.json

I think that's for completing the word JOIN itself? Which we can certainly add, but doesn't seem related to the bug this PR fixes? Unless I'm misunderstanding.

It's the first part:

JOIN did not auto-complete as an option (I only saw JSON)

but I can move that out to a separate issue 👍

@pgr0ss
Copy link
Contributor Author

pgr0ss commented Feb 14, 2020

Ah, sorry, I missed that part.

Copy link
Contributor

@zzl0 zzl0 left a comment

Choose a reason for hiding this comment

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

@getaaron @pgr0ss Thanks for fixing the bug, it looks good to me.

Could you please also update the changelog and add yourself to the AUTHORS.rst?

For the JOIN and ON keywords, you can decided to add them in this CR or in a separate CR. Thanks again.

Column(tables=((None, 'tabl', 'a'),), drop_unique=None),
Table(schema='a'),
View(schema='a'),
Function(schema='a', filter=None))
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it is correct

@getaaron
Copy link
Contributor

@pgr0ss I added the keywords in #44.

@zzl0
Copy link
Contributor

zzl0 commented Feb 16, 2020

@pgr0ss We appreciate your help and want to give you credit. Please take a moment to put an x in the boxes below as you complete them.

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).

@pgr0ss
Copy link
Contributor Author

pgr0ss commented Feb 16, 2020

@zzl0 I don't seem to be able to check those boxes, but I've done both.

Copy link
Contributor

@zzl0 zzl0 left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks again!

@zzl0
Copy link
Contributor

zzl0 commented Feb 17, 2020

@zzl0 I don't seem to be able to check those boxes, but I've done both.

It's fine, thanks

@zzl0 zzl0 merged commit 4759a7e into dbcli:master Feb 17, 2020
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.

Error when typing a query
3 participants