Skip to content

Commit 7a35a11

Browse files
committed
fix IT
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent 2cc1b8a commit 7a35a11

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/calcite/standalone/CalcitePPLCaseFunctionIT.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void testCaseWhenWithCast() {
6666
cast(response as int) >= 400 AND cast(response as int) < 500, "Client Error",
6767
cast(response as int) >= 500 AND cast(response as int) < 600, "Server Error"
6868
else concat("Incorrect HTTP status code for", url))
69-
| where status != "Success" | fields host, method, bytes, response, url, status
69+
| where status != "Success" | fields host, method, message, bytes, response, url, status
7070
""",
7171
TEST_INDEX_WEBLOGS));
7272
verifySchema(
@@ -114,7 +114,7 @@ public void testCaseWhenNoElse() {
114114
cast(response as int) >= 300 AND cast(response as int) < 400, "Redirection",
115115
cast(response as int) >= 400 AND cast(response as int) < 500, "Client Error",
116116
cast(response as int) >= 500 AND cast(response as int) < 600, "Server Error")
117-
| where isnull(status) OR status != "Success" | fields host, method, bytes, response, url, status
117+
| where isnull(status) OR status != "Success" | fields host, method, message, bytes, response, url, status
118118
""",
119119
TEST_INDEX_WEBLOGS));
120120
verifySchema(
@@ -156,7 +156,7 @@ response in ('300', '301'), "Redirection",
156156
response in ('400', '403'), "Client Error",
157157
response in ('500', '505'), "Server Error"
158158
else concat("Incorrect HTTP status code for", url))
159-
| where status != "Success" | fields host, method, bytes, response, url, status
159+
| where status != "Success" | fields host, method, message, bytes, response, url, status
160160
""",
161161
TEST_INDEX_WEBLOGS));
162162
verifySchema(
@@ -205,7 +205,7 @@ response in ('300', '301'), false,
205205
response in ('400', '403'), false,
206206
response in ('500', '505'), false
207207
else false)
208-
| fields host, method, bytes, response, url
208+
| fields host, method, message, bytes, response, url
209209
""",
210210
TEST_INDEX_WEBLOGS));
211211
verifySchema(
@@ -241,7 +241,7 @@ response in ('500', '505'), "500"
241241
else concat("Incorrect HTTP status code for", url))
242242
| fields new_response
243243
]
244-
| fields host, method, bytes, response, url
244+
| fields host, method, message, bytes, response, url
245245
""",
246246
TEST_INDEX_WEBLOGS, TEST_INDEX_WEBLOGS));
247247
verifySchema(

0 commit comments

Comments
 (0)