slice() method is broken for lists

Bug #1587509 reported by Konstantin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
YAQL
Fix Released
High
Konstantin

Bug Description

Steps to reproduce
* Open yaql console
* Type:
[1,2,3].slice(2)

Expected result:
[
    [
        0,
        1
    ],
    [
        2
    ]
]

Observed result:
yaql> [1,2,3].slice(2)
Execution exception: Collection length exceeds 100 elements

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to yaql (master)

Reviewed: https://review.openstack.org/323466
Committed: https://git.openstack.org/cgit/openstack/yaql/commit/?id=9a5c03a90ccb443de37de872a996d810733b55c4
Submitter: Jenkins
Branch: master

commit 9a5c03a90ccb443de37de872a996d810733b55c4
Author: Konstantin Snihyr <email address hidden>
Date: Tue May 31 18:53:13 2016 +0300

    Extend .slice() method implementation to all Iterables

    Change-Id: I599019ea11a59798d131236e89ee57097b8c196e
    Closes-bug: #1587509

Changed in yaql:
status: New → Fix Released
Changed in yaql:
importance: Undecided → High
milestone: none → 1.1.1
assignee: nobody → Konstantin (ksnihyr)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.