Skip to content

Commit 3537aab

Browse files
authored
add optional exception type prefix (#137125) (#137131)
I have no idea why ESQL only puts the verification_exception: prefix on this error message sometimes, but that's what regex match is for. The goal of the test is to make sure that the message itself is correct.
1 parent 247d9dc commit 3537aab

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql

1 file changed

+1
-1
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/40_tsdb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,5 +860,5 @@ error on rename timestamp:
860860
| RENAME @timestamp AS newTs
861861
| STATS max(rate(k8s.pod.network.tx)) BY tbucket = bucket(newTs, 1hour)
862862
863-
- match: { error.reason: "Found 1 problem\nline 3:13: Rate aggregation requires @timestamp field, but @timestamp was renamed or dropped" }
863+
- match: { error.reason: '/(verification_exception:\ )?Found\ 1\ problem\nline\ 3:13:\ Rate\ aggregation\ requires\ @timestamp\ field,\ but\ @timestamp\ was\ renamed\ or\ dropped/' }
864864

0 commit comments

Comments
 (0)