You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Ali Alsuliman (Jira)" <ji...@apache.org> on 2024/08/21 23:04:00 UTC

[jira] [Created] (ASTERIXDB-3489) Array slicing support is incomplete

Ali Alsuliman created ASTERIXDB-3489:
----------------------------------------

             Summary: Array slicing support is incomplete
                 Key: ASTERIXDB-3489
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3489
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: COMP - Compiler
            Reporter: Ali Alsuliman
            Assignee: Ali Alsuliman


The syntax for array accesses is:

PathExpression ::= PrimaryExpression ( Field | Index )*
Field ::= "." Identifier
Index ::= "[" Expression (":" ( Expression )? )? "]"

It's Python-inspired but misses part of what you can do there, e.g., arr[5:] is supported but arr[:5] is not.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)