elastic / elasticsearch-sql-odbc

ODBC driver for Elasticsearch SQL
Other
0 stars 30 forks source link

Fix: support for CBOR chunked strings #236

Closed bpintea closed 4 years ago

bpintea commented 4 years ago

ES will split the large string values into chunks (of up to 3996 bytes), even though the entire set of chunks is contained within the answer (and thus chunking is unnecessary; this is similar to ES'es use of CBOR undefined length arrays, as possibly programming convenience, rather than considerations for the transport layers. HTTP/TCP layers won't benefit from this behavior).

Confusingly, the tinycbor library won't distinguish between a container of chunked string values and a container of a contiguous string value.

This PR corrects driver's handling of chunked string values: