iamazy / elasticsearch-sql

parse sql into elasticsearch dsl with antlr4
https://iamazy.github.io/elasticsearch-sql/
MIT License
340 stars 89 forks source link

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

Closed Cenck closed 2 years ago

Cenck commented 2 years ago
@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()
Cenck commented 2 years ago

@.***

发件人: iamazy 发送时间: 2021-12-23 15:12 收件人: iamazy/elasticsearch-sql 抄送: Cenck; Author 主题: Re: [iamazy/elasticsearch-sql] 1. 去掉sortMode的默认排序mode (PR #66) @iamazy commented on this pull request.

In elasticsearch-sql-core/src/main/java/io/github/iamazy/elasticsearch/dsl/sql/parser/query/exact/BinaryQueryParser.java:

@@ -266,6 +266,9 @@ private boolean binaryContextMatch(ElasticsearchParser.ExpressionContext express if (expressionContext instanceof ElasticsearchParser.NameExprContext) { return true; }

  • if (expressionContext instanceof ElasticsearchParser.InContext) {

可以添加个测试用例吗 — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>