-
Notifications
You must be signed in to change notification settings - Fork 25.6k
SQL: Extract common parts into a separate QL project #50049
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
Conversation
|
Pinging @elastic/es-search (:Search/SQL) |
matriv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, but looks good!
.../src/main/java/org/elasticsearch/xpack/ql/execution/search/extractor/ComputingExtractor.java
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/ql/expression/function/aggregate/CompoundAggregate.java
Show resolved
Hide resolved
...in/java/org/elasticsearch/xpack/ql/expression/predicate/operator/comparison/InProcessor.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/index/IndexResolver.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/type/DataType.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/type/DateUtils.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/util/DateUtils.java
Show resolved
Hide resolved
matriv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with a few more comments.
...c/test/java/org/elasticsearch/xpack/ql/expression/predicate/fulltext/FullTextUtilsTests.java
Show resolved
Hide resolved
x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/tree/SqlNodeSubclassTests.java
Show resolved
Hide resolved
x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/querydsl/agg/TopHitsAgg.java
Show resolved
Hide resolved
astefan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments. LGTM.
.../plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/function/aggregate/Count.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/predicate/Predicates.java
Show resolved
Hide resolved
| * Marker interface indicating that a function accepts one optional argument (typically the last one). | ||
| * This is used by the {@link FunctionRegistry} to perform validation of function declaration. | ||
| */ | ||
| public interface OptionalArgument { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change needs to go into SQL's function classes as well, at one point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean? It's used by classes both in ql (Iif) and sql (TopHits).
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/type/StringUtils.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/util/Check.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/test/java/org/elasticsearch/xpack/ql/expression/ExpressionIdTests.java
Show resolved
Hide resolved
.../plugin/ql/src/test/java/org/elasticsearch/xpack/ql/expression/UnresolvedAttributeTests.java
Show resolved
Hide resolved
...ql/src/test/java/org/elasticsearch/xpack/ql/expression/function/UnresolvedFunctionTests.java
Show resolved
Hide resolved
...g/elasticsearch/xpack/ql/expression/predicate/operator/arithmetic/BinaryArithmeticTests.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/test/java/org/elasticsearch/xpack/ql/tree/AbstractNodeTestCase.java
Show resolved
Hide resolved
|
Superseded by #50815 |
First draft for extracting reusable components from SQL into their own project.
It is wip mainly to double check the tests