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

排序项设置默认sortMode=avg时,造成非number类型排序字段,查询报错 #64

Open
Cenck opened this issue Dec 21, 2021 · 1 comment

Comments

@Cenck
Copy link
Contributor

Cenck commented Dec 21, 2021

7.9.3 io/github/iamazy/elasticsearch/dsl/sql/parser/QueryOrderByParser.java:36
不应该指定默认sortMode为avg, es sortMode=avg时仅支持number字段,但排序字段 可以是string和date.

@iamazy
Copy link
Owner

iamazy commented Dec 22, 2021

7.9.3 io/github/iamazy/elasticsearch/dsl/sql/parser/QueryOrderByParser.java:36 不应该指定默认sortMode为avg, es sortMode=avg时仅支持number字段,但排序字段 可以是string和date.

@Cenck 你愿意提交一个pr吗,可以把sortMode这块先去掉

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