Commit f1bc872
committed
Merge upstream/main into feature/mustang-ppl-integration
Brings the branch up to current upstream/main (54 commits since the last
catch-up at #5397, divergence point 513e1b2). Preserves both parents
so commit lineage from main is retained on the feature branch.
### Main commits absorbed (54 since divergence)
Highlights:
- #5419 Register LENGTH/REGEXP_REPLACE/DATE_TRUNC in unified function spec
- #5408 Normalize datetime types for unified query API
- #5414 Gradle wrapper 9.4.1 bump + exclude @ignore classes
- #5399 [BugFix] Scope SQL cursor continuation to original query indices under FGAC
- #5394 [Feature] Support SQL Vector Search
- #5361 Version bump to OpenSearch 3.7 (Jackson 2 → 3 parser API)
- #5360 Define unified SQL language spec with composable extensions
- #5240 [FEATURE] Union command in PPL
- #5266 Initial implementation of report-builder interface
- #5278 isnotnull condition support
- #3922, #4659, #4800, #5099, #5169, #5172, #5175, #5185, #5347, #5370
and other bugfixes
- 34 others (bugfixes, doc updates, infra)
### Conflict resolutions
Seven content conflicts resolved during the merge. Resolution kept the
feature branch's analytics-engine-path semantics where main's changes
would have regressed them.
- api/.../UnifiedQueryContext.java
Blank-line-only conflict in Builder.build(); took main's tighter
formatting (no extra blank).
- core/.../executor/QueryService.java
Main reformatted executeWithCalcite without the
CalciteClassLoaderHelper.withCalciteClassLoader() wrapper. Kept the
feature-branch wrapping — required for analytics-engine classloader
isolation — and the matching import. Same shape applies to
explainWithCalcite which git auto-merged correctly.
- integ-test/build.gradle
Both sides added @Ignore-class exclusions to work around the Gradle
9.4.1 TestEventReporterAsListener ClassCastException. Took the
feature-branch's detailed root-cause comment, kept ASCII ordering of
the JSONRequestIT/JoinIT and SQLFunctionsIT/ShowIT/SourceFieldIT
entries.
- integ-test/.../CalciteEvalCommandIT.java
Feature branch wraps test-data PUTs in
if (!TestUtils.isIndexExist(...)) for idempotency on the
helper-managed-index analytics-engine compatibility run; main has the
unguarded PUTs. Kept feature's idempotency guards for both test_eval
and test_eval_agent.
- legacy/.../RestSqlAction.java
Feature branch added delegateToV2Engine(...) (extracted from the
analytics-engine routing path) and ALSO has handleException /
getRestStatus / getRawErrorCode; main added the latter three in the
same position. Kept feature's delegateToV2Engine, kept one copy of
the helpers, removed the duplicate set that git produced.
- plugin/.../SQLPlugin.java
Both sides expanded the executor import block. Kept the union:
ExecutionEngine + ExecutionEngine.ExplainResponse + QueryType (all
three are referenced in this file).
- plugin/.../transport/TransportPPLQueryAction.java
Main now passes engine extensions to OpenSearchPluginModule via
extensionsHolder.engines(). Feature creates a local pluginSettings
for the unified-query handler. Combined both — kept the
extensions-aware module construction *and* the pluginSettings /
pluginSettingsRef wiring.
EngineExtensionsHolder is a new file from main (#5298) preserved as-is.
### Verification
- ./gradlew :api:compileJava :core:compileJava :legacy:compileJava
:opensearch-sql-plugin:compileJava :integ-test:compileTestJava
passes locally
Signed-off-by: Kai Huang <ahkcs@amazon.com>5 files changed
Lines changed: 52 additions & 8 deletions
File tree
- api/src/main/java/org/opensearch/sql/api
- integ-test
- plugin/src/main/java/org/opensearch/sql/plugin
- config
- transport
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
| 604 | + | |
| 605 | + | |
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
| |||
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| |||
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
143 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| |||
162 | 170 | | |
163 | 171 | | |
164 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
165 | 185 | | |
166 | 186 | | |
167 | 187 | | |
| |||
348 | 368 | | |
349 | 369 | | |
350 | 370 | | |
351 | | - | |
| 371 | + | |
352 | 372 | | |
353 | 373 | | |
354 | 374 | | |
| |||
383 | 403 | | |
384 | 404 | | |
385 | 405 | | |
| 406 | + | |
| 407 | + | |
386 | 408 | | |
387 | 409 | | |
388 | 410 | | |
389 | 411 | | |
390 | 412 | | |
391 | | - | |
| 413 | + | |
| 414 | + | |
392 | 415 | | |
393 | 416 | | |
394 | 417 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
0 commit comments