Skip to content

Commit 591bba4

Browse files
authored
SQL: Add examples fo muting sql/csv integ tests (#47291)
Add examples of failures for both sql and csv integeration tests and instructions on how to mute them.
1 parent a6c517a commit 591bba4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+168
-9
lines changed

x-pack/plugin/sql/qa/src/main/resources/agg-ordering.sql-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.sql-spec
2+
13
//
24
// Custom sorting/ordering on aggregates
35
//

x-pack/plugin/sql/qa/src/main/resources/agg.csv-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.csv-spec
2+
13
//
24
// Aggs not supported by H2 / traditional SQL stores
35
//

x-pack/plugin/sql/qa/src/main/resources/agg.sql-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.sql-spec
2+
13
//
24
// Group-By
35
//

x-pack/plugin/sql/qa/src/main/resources/alias.csv-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.csv-spec
2+
13
tableAlias
24
SELECT emp_no, first_name FROM test_alias ORDER BY emp_no LIMIT 6;
35

x-pack/plugin/sql/qa/src/main/resources/arithmetic.csv-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.csv-spec
2+
13
//
24
// Arithmetic tests outside H2
35
//

x-pack/plugin/sql/qa/src/main/resources/arithmetic.sql-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.sql-spec
2+
13
//
24
// Arithmetic tests
35
//

x-pack/plugin/sql/qa/src/main/resources/case-functions.sql-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.sql-spec
2+
13
// Next 4 SELECTs in this file are related to https://github.com/elastic/elasticsearch/issues/32589
24
// H2 is Locale sensitive, while ES-SQL is not (so far)
35
selectInsertWithLcaseAndLengthWithOrderBy

x-pack/plugin/sql/qa/src/main/resources/columns.csv-spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.csv-spec
2+
13
//
24
// Test of explicit column types
35
// the columns can be specified as <ColumnName:ColumnType> or as <ColumnName>
@@ -13,4 +15,4 @@ gender:s | p1:l
1315
M | 10096
1416
F | 10099
1517
null | 10019
16-
;
18+
;

x-pack/plugin/sql/qa/src/main/resources/command.csv-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.csv-spec
2+
13
//
24
// Commands
35
//

x-pack/plugin/sql/qa/src/main/resources/conditionals.csv-spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// To mute tests follow example in file: example.csv-spec
2+
13
caseField
24
SELECT emp_no, CASE WHEN emp_no - 10000 < 10 THEN 'First 10' ELSE 'Second 10' END as "case" FROM test_emp WHERE emp_no >= 10005
35
ORDER BY emp_no LIMIT 10;

0 commit comments

Comments
 (0)