Skip to content

Commit

Permalink
Revert score and ignore failed IT
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <daichen@amazon.com>
  • Loading branch information
dai-chen committed Dec 20, 2022
1 parent 1df8bc3 commit e78e5ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public void hasGroupKeyMaxAddLiteralShouldPass() {
rows("f", 1));
}

@Ignore("Handled by v2 engine which returns 'name': 'Log(MAX(age) + MIN(age))' instead")
@Test
public void noGroupKeyLogMaxAddMinShouldPass() {
JSONObject response = executeJdbcRequest(String.format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public void functionWithoutAliasShouldHaveEntireFunctionAsNameInSchema() {
);
}

@Ignore("Handled by v2 engine which returns 'name': 'substring(lastname, 1, 2)' instead")
@Test
public void functionWithAliasShouldHaveAliasAsNameInSchema() {
assertThat(
Expand Down
1 change: 1 addition & 0 deletions sql/src/main/antlr/OpenSearchSQLLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ REGEXP_QUERY: 'REGEXP_QUERY';
REVERSE_NESTED: 'REVERSE_NESTED';
QUERY: 'QUERY';
RANGE: 'RANGE';
SCORE: 'SCORE';
SECOND_OF_MINUTE: 'SECOND_OF_MINUTE';
STATS: 'STATS';
TERM: 'TERM';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ public void canBuildQualifiedIdentifier() {

@Test
public void commonKeywordCanBeUsedAsIdentifier() {
String[] keywords = {"score", "type"};
for (String keyword : keywords) {
buildFromIdentifier(keyword).expectQualifiedName(keyword);
}
buildFromIdentifier("type").expectQualifiedName("type");
}

@Test
Expand Down

0 comments on commit e78e5ec

Please sign in to comment.