cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7396) Allow selecting Map key, List index
Date Tue, 23 May 2017 10:51:04 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-7396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16021028#comment-16021028
] 

Robert Stupp commented on CASSANDRA-7396:
-----------------------------------------

Yes, you're right ({{[2]}} technically refers to the slice).
Does that make sense that two restrictions ({{m[1..][2]}} and {{m[1..][..2]}}) are applied
to the same map? {{m[1..][2]}} could simply be {{m[2]}} and {{m[1..][..2]}} could be {{m[1..2]}}.
Functionally, I expected that for {{m[1..][2]}} {{m[1..]}} is applied to the "outer" map and
{{[2]}} to the "inner" map (i.e. the next level).

> Allow selecting Map key, List index
> -----------------------------------
>
>                 Key: CASSANDRA-7396
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7396
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: CQL
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>              Labels: cql, docs-impacting
>             Fix For: 4.x
>
>         Attachments: 7396_unit_tests.txt
>
>
> Allow "SELECT map['key]" and "SELECT list[index]."  (Selecting a UDT subfield is already
supported.)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message