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

Multiple Group by errors #26

Open
vitaneyeyu opened this issue Aug 10, 2020 · 3 comments
Open

Multiple Group by errors #26

vitaneyeyu opened this issue Aug 10, 2020 · 3 comments

Comments

@vitaneyeyu
Copy link

sql like : select count(id) from A where A.id > 5 group by A.a, A.b;
because of
innerMap["terms"] = msi{ "field": colName.Name.String(), "size": 0, }
will gen the dsl like: "terms":{"field":"field2","size":0}
and then make a error: "reason":"[size] must be greater than 0
using es7.X

@cch123
Copy link
Owner

cch123 commented Aug 21, 2020

Sorry for the late reply

Does changing the SQL to 'select count(id) from A where A.id > 5 group by A.a, A.b limit 100' solves the problem?

@vitaneyeyu
Copy link
Author

I tried it and it still didn't work

@cch123
Copy link
Owner

cch123 commented Sep 21, 2020

you can consider this change by one of this lib's user, I dont know whether this is a common fix

https://github.com/amitvijayant/elasticsql

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

No branches or pull requests

2 participants