Skip to content

Commit

Permalink
Update docs to state array index starts from 0 (#1650)
Browse files Browse the repository at this point in the history
* Updated the docs mentioning the index starts from 0.

* Add the info to stream too.

* Minor fix.
  • Loading branch information
hjafarpour authored Jul 27, 2018
1 parent ebe0fd0 commit 789603f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/syntax-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ The supported column data types are:
- ``BIGINT``
- ``DOUBLE``
- ``VARCHAR`` (or ``STRING``)
- ``ARRAY<ArrayType>`` (JSON and AVRO only)
- ``ARRAY<ArrayType>`` (JSON and AVRO only. Index starts from 0)
- ``MAP<VARCHAR, ValueType>`` (JSON and AVRO only)
- ``STRUCT<FieldName FieldType, ...>`` (JSON and AVRO only) The STRUCT type requires you to specify a list of fields.
For each field you must specify the field name (FieldName) and field type (FieldType). The field type can be any of
Expand Down Expand Up @@ -242,7 +242,7 @@ The supported column data types are:
- ``BIGINT``
- ``DOUBLE``
- ``VARCHAR`` (or ``STRING``)
- ``ARRAY<ArrayType>`` (JSON and AVRO only)
- ``ARRAY<ArrayType>`` (JSON and AVRO only. Index starts from 0)
- ``MAP<VARCHAR, ValueType>`` (JSON and AVRO only)
- ``STRUCT<FieldName FieldType, ...>`` (JSON and AVRO only) The STRUCT type requires you to specify a list of fields.
For each field you must specify the field name (FieldName) and field type (FieldType). The field type can be any of
Expand Down Expand Up @@ -1155,4 +1155,4 @@ Example:
CREATE TABLE users_table (userid_string VARCHAR, username VARCHAR, email VARCHAR)
WITH (KAFKA_TOPIC='users-with-proper-key',
VALUE_FORMAT='JSON',
KEY='userid_string');
KEY='userid_string');

0 comments on commit 789603f

Please sign in to comment.