Commit 0d76d1c
committed
Add integration test and trim unit-test comments for alias path fix
Add a QueryValidationIT case asserting that SELECT * over an index whose
alias field targets a text multi-field (source.keyword) returns a 400
SemanticCheckException with the descriptive message. An alias pointing at a
truly missing field is rejected by OpenSearch at index-creation time, so it
is not reachable through the SQL plugin and is covered by the unit test only.
Shorten the unit-test comments and drop inline issue references.
Signed-off-by: Jialiang Liang <jiallian@amazon.com>1 parent e533a78 commit 0d76d1c
2 files changed
Lines changed: 29 additions & 5 deletions
File tree
- integ-test/src/test/java/org/opensearch/sql/sql
- opensearch/src/test/java/org/opensearch/sql/opensearch/data/type
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
106 | 133 | | |
107 | 134 | | |
108 | 135 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
| 489 | + | |
493 | 490 | | |
494 | 491 | | |
495 | 492 | | |
| |||
505 | 502 | | |
506 | 503 | | |
507 | 504 | | |
508 | | - | |
| 505 | + | |
509 | 506 | | |
510 | 507 | | |
511 | 508 | | |
| |||
0 commit comments