OpenSearch/qa/sql
Nik Everett 51a6285ba1 SQL: Allow CSV tests to look more like the CLI (elastic/x-pack-elasticsearch#3640)
This allows CSV tests to include a line between the header and the
values that is ignored by the test framework. This optional line can be
added to the tests to make them a little easier to read which is useful
when they are included in the documentation. As a side effect they also
closely mimick the output of the CLI. To the point where you can copy
directly from the CLI and paste into the CSV tests.

Example:
```
constantYear
// tag::year
SELECT YEAR(CAST('2018-01-19T10:23:27Z' AS TIMESTAMP)) as year;
     year
---------------
2018
// end::year
;
```

This can be extracted with a construct like this in the docs:
```
["source","sql",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{sql-specs}/datetime.csv-spec[year]
--------------------------------------------------
```

Which makes documentation that looks like this:
```
SELECT YEAR(CAST('2018-01-19T10:23:27Z' AS TIMESTAMP)) as year;
     year
---------------
2018
```

Which is fairly nice.

Original commit: elastic/x-pack-elasticsearch@8c10b5cb10
2018-01-19 16:24:42 -05:00
..
multinode SQL: Run fewer tests against multiple nodes (elastic/x-pack-elasticsearch#3625) 2018-01-18 15:59:40 -05:00
no-security SQL: Add support for object/inner/dotted fields (elastic/x-pack-elasticsearch#3368) 2017-12-23 13:19:54 +02:00
security Fix CLI test 2018-01-18 22:33:47 +02:00
src/main SQL: Allow CSV tests to look more like the CLI (elastic/x-pack-elasticsearch#3640) 2018-01-19 16:24:42 -05:00
build.gradle SQL: Move the jdbc directory into plugin/sql (elastic/x-pack-elasticsearch#3617) 2018-01-18 09:33:16 -05:00