Skip to content

Commit 4c83974

Browse files
Fix test and add assert
1 parent 83cb95d commit 4c83974

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/java/org/elasticsearch/xpack/esql/CsvAssert.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ private static String pipeTable(
296296
width[c] = header(headers.get(c), types.get(c)).length();
297297
}
298298
for (int r = 0; r < rows; r++) {
299+
assertThat("Mismatched header size and values", headers.size() == values.get(r).size());
299300
for (int c = 0; c < headers.size(); c++) {
300301
printableValues[r][c] = String.valueOf(valueTransformer.apply(types.get(c), values.get(r).get(c)));
301302
width[c] = Math.max(width[c], printableValues[r][c].length());

0 commit comments

Comments
 (0)