OpenSearch/sql/cli/licenses
Nik Everett 89e80e0cba Teach SQL to parse Elasticsearch's standard error responses (elastic/x-pack-elasticsearch#2764)
This teaches SQL to parse Elasticsearch's standard error responses
but doesn't change SQL to general Elasticsearch's standard error responses
in all cases. That can come in a followup. We do this parsing with
jackson-core, the same dependency Elasticsearch uses for parsing
json. We shade jackson-core in the JDBC driver so that users don't have to worry about
dependency clashes. We do not do so in the CLI because it is a standalone
application.

We get a few "bonus" changes along the way:
1. We save a copy operation. Before this change responses were spooled
into memory and then parsed. After this change they are parsed directly
from the response stream.
2. We had a few classes entirely to support the spooling operation that we
no longer need: `BytesArray`, `FastByteArrayInputStream`, and
`BasicByteArrayOutputStream`.
3. SQL's `Version` was incorrectly parsing the version from the jar manifest.
We didn't notice because the test was rigged to return `UNKNOWN` because
we *were* running the test from the compiled classes directory instead of the
jar. As part of shading jackson we moved running the tests to running against
the shaded jar. Now we can actually assert that we parse the version correctly.
It turns out we weren't. So I fixed it.

Original commit: elastic/x-pack-elasticsearch@2e8f397bf4
2017-11-14 21:31:35 -05:00
..
elasticsearch-LICENSE.txt Move sql's server stuff into :x-pack-elasticsearch:sql:server 2017-06-29 14:31:23 -04:00
elasticsearch-NOTICE.txt Move sql's server stuff into :x-pack-elasticsearch:sql:server 2017-06-29 14:31:23 -04:00
jackson-LICENSE Teach SQL to parse Elasticsearch's standard error responses (elastic/x-pack-elasticsearch#2764) 2017-11-14 21:31:35 -05:00
jackson-NOTICE Teach SQL to parse Elasticsearch's standard error responses (elastic/x-pack-elasticsearch#2764) 2017-11-14 21:31:35 -05:00
jackson-core-2.8.10.jar.sha1 Teach SQL to parse Elasticsearch's standard error responses (elastic/x-pack-elasticsearch#2764) 2017-11-14 21:31:35 -05:00
jansi-1.16.jar.sha1 More build fixes 2017-07-06 14:37:09 -04:00
jansi-LICENSE.txt More build fixes 2017-07-06 14:37:09 -04:00
jansi-NOTICE.txt More build fixes 2017-07-06 14:37:09 -04:00
jline-3.3.1.jar.sha1 More build fixes 2017-07-06 14:37:09 -04:00
jline-LICENSE.txt Move sql's server stuff into :x-pack-elasticsearch:sql:server 2017-06-29 14:31:23 -04:00
jline-NOTICE.txt Move sql's server stuff into :x-pack-elasticsearch:sql:server 2017-06-29 14:31:23 -04:00
jna-4.4.0-1.jar.sha1 More build fixes 2017-07-06 14:37:09 -04:00
jna-LICENSE.txt More build fixes 2017-07-06 14:37:09 -04:00
jna-NOTICE.txt More build fixes 2017-07-06 14:37:09 -04:00