Skip to content

Commit

Permalink
Fix for Issue #343 (#504)
Browse files Browse the repository at this point in the history
Described nested array issue.
  • Loading branch information
daminichopra authored Aug 13, 2021
1 parent aacb375 commit 35d3b93
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/manuals/user/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,23 @@ crate.client.exceptions.ProgrammingError: SQLActionException[ColumnValidationExc
This related to the fact that CrateDB does not support 3D coordinates,
as documented in [admin documentation](../admin/crate.md).

### Crate(3.x and 4.x) does not support nested arrays

When a table is created with two columns `x` and `y` of type object
and array(object).
Inserting an object in x and y gives a below exception message:

```#!/bin/bash
create table t (x object, y array(object));
insert into t (x) values ('{ "x": [1] }');
- ok
insert into t (x) values ('{ "x": [[1, 2], [3, 4]] }');
- SQLActionException[ColumnValidationException: Validation failed for x:
-Cannot cast '{ "x": [[1, 2], [3, 4]] }' to type object]
insert into t (y) values (['{ "x": [[1, 2], [3, 4]] }']);
-SQLActionException[ElasticsearchParseException:nested arrays not supported]
```

### Sometimes it takes more than 500 msec to read the data sent to Orion in QuantumLeap

QuantumLeap is a Timeseries API that stores values forwarded by the Context Broker,
Expand Down

0 comments on commit 35d3b93

Please sign in to comment.