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 for distinct in functions and between #22

Open
sebastian opened this issue Jan 13, 2021 · 4 comments
Open

Support for distinct in functions and between #22

sebastian opened this issue Jan 13, 2021 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sebastian
Copy link

Dear @Zaid-Ajaj, thank you for all the wonderful work you are doing for the open-source community!

I am considering using the SQL parser part of your library in a reference implementation I am building.
Currently, it is missing two features I would rely on, namely:

  • the ability to use the distinct keyword in a function (such as count(distinct column), and
  • the BETWEEN keyword for WHERE-clauses (WHERE age BETWEEN 1 and 20)

Would you welcome pull-requests to add these features?

If yes, are there any particular things I should keep in mind while adding these features? Say some non-obvious aspect of your library that doesn't immediately spring to mind but needs to be considered?

@Zaid-Ajaj
Copy link
Owner

Hi there @sebastian, sorry for the late reply. It has been a busy and hectic start of a year 😅

thank you for all the wonderful work you are doing for the open-source community!

My pleasure 😄 I really appreciate the support ❤️ 🙏

Would you welcome pull-requests to add these features?

PRs are always welcome! I can't think of anything special to consider, really. I think only the fact that the parser as a standalone thing needs to be published separately which is something I have to do at some point. Additions to the parser would be great as long as the tests keep passing 😉

@sebastian
Copy link
Author

Absolutely no problems with the late reply. I imagined you had plenty to do.
We have since made our own parser instead, but I'll try to extend your parser too when time allows. Can't promise when that will be though.

@Zaid-Ajaj
Copy link
Owner

We have since made our own parser instead, but I'll try to extend your parser too when time allows.

Glad you have found a workaround. It might be for the better because this parser really is extremely limited and works only in combination with metadata from the database.

Can't promise when that will be though.

Don't worry about it at all, if you don't need it now then just forget about 😉 if you still want the parser as a standalone library, ping me here and I will publish it 😄

@sebastian
Copy link
Author

Then I'll forget about it for now, and look for time to make some more meaningful contribution in some other projects of yours down the line instead.

@Zaid-Ajaj Zaid-Ajaj added enhancement New feature or request good first issue Good for newcomers labels Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants