mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 09:00:35 +00:00
In Alternator's expression parser in alternator/expressions.g, a list can be indexed by a '[' INTEGER ']'. I had doubts whether maybe a value-reference for the index, e.g., "something[:xyz]", should also work. So this patch adds a test that checks whether "something[:xyz]" works, and confirms that both DynamoDB and Alternator don't accept it and consider it a syntax error. So Alternator's parser is correct to insist that the index be a literal integer. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20201214100302.2807647-1-nyh@scylladb.com>