Skip to content

1. 去掉sortMode的默认排序mode #66

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

Merged
merged 2 commits into from
Dec 28, 2021
Merged

1. 去掉sortMode的默认排序mode #66

merged 2 commits into from
Dec 28, 2021

Conversation

Cenck
Copy link
Contributor

@Cenck Cenck commented Dec 23, 2021

@io/github/iamazy/elasticsearch/dsl/sql/parser/QueryOrderByParser.java:37
  1. 使得Or 或 and 语句支持右表达式 使用in语句
    @io/github/iamazy/elasticsearch/dsl/sql/parser/query/exact/BinaryQueryParser.java:138
  2. 添加无参toDsl, toPrettyDsl
    @io.github.iamazy.elasticsearch.dsl.sql.model.ElasticSqlParseResult.toDsl()

    @io/github/iamazy/elasticsearch/dsl/sql/parser/QueryOrderByParser.java:37
2. 使得Or 或 and 语句支持右表达式 使用in语句
   @io/github/iamazy/elasticsearch/dsl/sql/parser/query/exact/BinaryQueryParser.java:138
3. 添加无参toDsl, toPrettyDsl
   @io.github.iamazy.elasticsearch.dsl.sql.model.ElasticSqlParseResult.toDsl()
@@ -266,6 +266,9 @@ private boolean binaryContextMatch(ElasticsearchParser.ExpressionContext express
if (expressionContext instanceof ElasticsearchParser.NameExprContext) {
return true;
}
if (expressionContext instanceof ElasticsearchParser.InContext) {
Copy link
Owner

Choose a reason for hiding this comment

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

可以添加个测试用例吗

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FixedHistoryTest.fixedOn20211221 添加了测试用例

Copy link
Owner

Choose a reason for hiding this comment

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

lgtm

@Cenck
Copy link
Contributor Author

Cenck commented Dec 23, 2021 via email

@iamazy iamazy merged commit c75bee0 into iamazy:master Dec 28, 2021
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